diff --git a/B4A/B4XMainPage.bas b/B4A/B4XMainPage.bas index fee4fa2..b0bb6a7 100644 --- a/B4A/B4XMainPage.bas +++ b/B4A/B4XMainPage.bas @@ -7,7 +7,6 @@ Version=9.85 #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 - 'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip '########################################################################################################### '###################### PULL ############################################################# 'Ctrl + click ide://run?file=%WINDIR%\System32\cmd.exe&Args=/c&Args=git&Args=pull @@ -18,9 +17,6 @@ Version=9.85 '###################### 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 '########################################################################################################### - '###################### PUSH TORTOISE GIT CON TAG ################################################## - 'Ctrl + clic para Git: ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=-ExecutionPolicy&Args=Bypass&Args=-File&Args=..\_git_tag.ps1&Args=%22%PROJECT%%22&Args=%22%PROJECT_NAME%%22 - '########################################################################################################### #End Region 'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip @@ -172,6 +168,8 @@ Private Sub B4XPage_Created (Root1 As B4XView) Subs.agregaColumna("PLAN_LEALTAD", "DESCARGADO", "TEXT") Subs.agregaColumna("PEDIDO_CLIENTE", "PC_FACTURA", "INTEGER") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS GPS (HABILITADO)") + skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GIRO(GIRO TEXT)") + skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CLIENTES_NUEVOS(CN_ID TEXT, CN_FECHA TEXT, CN_USER TEXT, CN_LAT TEXT, CN_LON TEXT, CN_NOMBRE TEXT, CN_DIRECCION TEXT, CN_FOTO TEXT, CN_ALMACEN TEXT, CN_RUTA TEXT,CN_GIRO TEXT)") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_PROMOS_DESCUENTOS (CAT_PD_ALMACEN TEXT, CAT_PD_COD_PROMO TEXT, CAT_PD_RANGO INT, CAT_PD_VIGENCIA TEXT, CAT_PD_DESCUENTO TEXT, CAT_PD_PRODUCTO TEXT, CAT_PD_TIER TEXT)") Subs.agregaColumna("CAT_PROMOS_DESCUENTOS", "CAT_PD_RANGO2", "INT") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD2 (CAT_GP_CODPROMO TEXT, CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUM, 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 )") @@ -204,6 +202,9 @@ Private Sub B4XPage_Created (Root1 As B4XView) skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS kmt_info3(CAT_CL_FOTO BLOB, CAT_CL_NUM_SERIEFISICO TEXT, CAT_CL_MTOCOMPRA TEXT, CAT_CL_CEDIS TEXT, CAT_CL_LAT TEXT, CAT_CL_LONG TEXT, CAT_CL_FBAJA TEXT, CAT_CL_FALTA TEXT, CAT_CL_CP TEXT, CAT_CL_EDO TEXT, CAT_CL_MUNI TEXT, CAT_CL_COLONIA TEXT, CAT_CL_CALLE2 TEXT, CAT_CL_CALLE1 TEXT, CAT_CL_NOINT TEXT, CAT_CL_NOEXT TEXT, CAT_CL_CALLE TEXT, CAT_CL_EMAIL TEXT, CAT_CL_TELEFONO TEXT, CAT_CL_ATIENTE2 TEXT, CAT_CL_ATIENDE1 TEXT, CAT_CL_NOMBRE TEXT, CAT_CL_GIRO TEXT, CAT_CL_DIAS_VISITA TEXT, CAT_CL_TIPO_RUTA TEXT, CAT_CL_RUTA TEXT, CAT_CL_CODIGO TEXT, gestion NUMERIC)") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO2265(H_IDCLIENTE TEXT)") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ATIENDE(ATIENDE TEXT, CLIENTE TEXT)") + + skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CODIGOS_CREDITO(CODIGO TEXT, BANDERA TEXT)") + skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS TELEFONO(TELEFONO TEXT, CLIENTE TEXT)") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO3054(H_IDCLIENTE TEXT)") skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO3055(H_IDCLIENTE TEXT)") @@ -215,6 +216,7 @@ Private Sub B4XPage_Created (Root1 As B4XView) Subs.agregaColumna("kmt_info3", "foto", "BLOB") Subs.agregaColumna("PEDIDO", "PE_RECALCULO", "TEXT") Subs.agregaColumna("PEDIDO", "PE_RECALCULADO", "TEXT") + Subs.agregaColumna("CODIGOS_CREDITO", "CLIENTE", "TEXT") Subs.agregaColumna("PEDIDO", "PE_RECCEDIS", "TEXT") Subs.agregaColumna("PEDIDO", "PE_FUTURO", "TEXT") Subs.agregaColumna("PEDIDO", "PE_RECALCULOTOT", "TEXT") @@ -222,11 +224,14 @@ Private Sub B4XPage_Created (Root1 As B4XView) Subs.agregaColumna("HIST_VENTAS", "HVD_FECHA", "TEXT") Subs.agregaColumna("kmt_info3", "encuesta", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_CLASIFICADOR4", "TEXT") + Subs.agregaColumna("CAT_GUNAPROD", "CAT_GP_CONVERSION3", "TEXT") + Subs.agregaColumna("CAT_GUNAPROD", "CAT_GP_CONVERSION2", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_CLASIFICADOR3", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_CLASIFICADOR2", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_TIPOCLIENTE", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_LIMITECREDITO", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_DIASCREDITO", "TEXT") + Subs.agregaColumna("kmt_info3", "CONFIRMADO", "TEXT") Subs.agregaColumna("kmt_info3", "CAT_CL_BCREDITO", "TEXT") '########################## CODIGO PARA CREDITOS #################### Subs.agregaColumna("CAT_GUNAPROD", "CAT_GP_DEV", "TEXT") Subs.agregaColumna("CAT_GUNAPROD", "CAT_PA_BSEGMENTA", "TEXT") @@ -234,6 +239,11 @@ Private Sub B4XPage_Created (Root1 As B4XView) Subs.agregaColumna("CAT_GUNAPROD", "CAT_PA_SEGMENTAV", "TEXT") Subs.agregaColumna("CAT_GUNAPROD2", "CAT_PA_BSEGMENTA", "TEXT") Subs.agregaColumna("CAT_GUNAPROD2", "CAT_PA_SEGMENTAV", "TEXT") + + Subs.agregaColumna("CLIENTES_NUEVOS", "CN_SOLICITA", "TEXT") + Subs.agregaColumna("CLIENTES_NUEVOS", "CN_COLONIA", "TEXT") + Subs.agregaColumna("CLIENTES_NUEVOS", "CN_TELEFONO", "TEXT") + Subs.agregaColumna("CLIENTES_NUEVOS", "CN_CP", "TEXT") Subs.agregaColumna("PEDIDO", "PE_RECCANT", "TEXT") Subs.agregaColumna("FOTOS", "FECHA", "TEXT") Try 'Intentamos usar "pragma_table_info" para revisar si existe la columna "P10" en la tabla diff --git a/B4A/C_Bitacora.bas b/B4A/C_Bitacora.bas index 03a6fa8..c72871f 100644 --- a/B4A/C_Bitacora.bas +++ b/B4A/C_Bitacora.bas @@ -17,7 +17,7 @@ Sub Class_Globals Dim banderaGeoCerca As String Private reqManager As DBRequestManager End Sub - + 'You can add more parameters here. Public Sub Initialize (vCallback As Object, vEventName As String, vRoot As B4XView, db1 As SQL, DBReq As DBRequestManager) As Object db = db1 diff --git a/B4A/C_Cliente.bas b/B4A/C_Cliente.bas index ebd7039..e24e477 100644 --- a/B4A/C_Cliente.bas +++ b/B4A/C_Cliente.bas @@ -630,7 +630,7 @@ Sub B4XPage_Appear Else Tels.Enabled = True End If - + If Not(Starter.gps.GPSEnabled) Then ToastMessageShow("Es necesario tener el GPS encendido", True) StartActivity(Starter.gps.LocationSettingsIntent) @@ -638,11 +638,35 @@ Sub B4XPage_Appear skmt.Initialize(ruta,"kmt.db", True) reqManager.Initialize(Me, Starter.server) - Dim fotomostrar As Cursor = Starter.skmt.ExecQuery("SELECT FOTO FROM FOTOS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)") - If fotomostrar.RowCount > 0 Then +' Dim fotomostrar As Cursor = Starter.skmt.ExecQuery("SELECT foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") +' If fotomostrar.RowCount > 0 Then +' Dim fotomostrar1 As Cursor = Starter.skmt.ExecQuery("SELECT foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) AND foto IS NULL") +' If fotomostrar1.RowCount > 0 Then +' ImageView4.Bitmap = LoadBitmap(File.DirAssets,"images.png") +' Log("aqui no hay foto") +' Else +' fotomostrar.Position = 0 +' Private fotomostrarfinal() As Byte = fotomostrar.GetBlob("foto") +' Dim InputStream1 As InputStream +' InputStream1.InitializeFromBytesArray(fotomostrarfinal, 0, fotomostrarfinal.Length) +' Dim Bitmap1 As Bitmap +' Bitmap1.Initialize2(InputStream1) +' InputStream1.Close +' ImageView4.Bitmap = Bitmap1 +' Log("aqui si hay foto") +' End If +' End If + + + + Dim fotomostrar1 As Cursor = Starter.skmt.ExecQuery("SELECT foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) AND foto IS NOT NULL") + If fotomostrar1.RowCount = 0 Then + + Dim fotomostrar As Cursor = Starter.skmt.ExecQuery("SELECT FOTO FROM FOTOS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + If fotomostrar.RowCount > 0 Then fotomostrar.Position = 0 - Private fotomostrarfinal() As Byte = fotomostrar.GetBlob("foto") + Private fotomostrarfinal() As Byte = fotomostrar.GetBlob("FOTO") Dim InputStream1 As InputStream InputStream1.InitializeFromBytesArray(fotomostrarfinal, 0, fotomostrarfinal.Length) Dim Bitmap1 As Bitmap @@ -650,12 +674,28 @@ Sub B4XPage_Appear InputStream1.Close ImageView4.Bitmap = Bitmap1 Log("aqui si hay foto") - Else - + Else ImageView4.Bitmap = LoadBitmap(File.DirAssets,"images.png") Log("aqui no hay foto") - + End If + + Else + fotomostrar1.Position = 0 + Private fotomostrarfinal() As Byte = fotomostrar1.GetBlob("foto") + Dim InputStream1 As InputStream + InputStream1.InitializeFromBytesArray(fotomostrarfinal, 0, fotomostrarfinal.Length) + Dim Bitmap1 As Bitmap + Bitmap1.Initialize2(InputStream1) + InputStream1.Close + ImageView4.Bitmap = Bitmap1 + Log("aqui si hay foto") End If + +' ImageView4.Bitmap = LoadBitmap(File.DirAssets,"images.png") +' Log("aqui no hay foto") + + + l_tipocliente.Text = Subs.traeTipoCliente p_camara.Width = Root.Width p_camara.Height = Root.Height @@ -1970,6 +2010,8 @@ Sub JobDone(Job As HttpJob) p_transparenteTicketImpreso.Visible = False et_codigoAutorizacion.Text = "" teclado.HideKeyboard + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") ToastMessageShow("Listo, ya se puede modificar la venta.", True) Else ToastMessageShow("El codigo es incorrecto, por favor revise y vuelva a intentar!!", True) @@ -2110,7 +2152,37 @@ Sub gestionar compra End If Else - p_transparenteTicketImpreso.Visible = True + If Subs.traeAlmacen = 94 Then + c=B4XPages.MainPage.skmt.ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + c.Position = 0 + If c.GetString("encuesta") = "0" Then + Dim Intent1 As Intent + Dim enviorutas As String = "guna://tienda360/config?clienteId="&la_cuenta.Text&"&almacen="&ALMACEN&"&ruta="&Subs.traeRuta + Log(enviorutas) + Intent1.Initialize(Intent1.ACTION_VIEW, enviorutas) + Try + Starter.encuesta = 1 + Dim cmd As DBCommand + skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",Array As Object(1)) + StartActivity(Intent1) + compra + Catch + Starter.encuesta = 0 +' Dim cmd As DBCommand +' skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",Array As Object(2)) +' ToastMessageShow("La aplicación Tienda 360 no está instalada o no puede manejar la URL.", True) + compra + End Try +' cmd.Initialize +' cmd.Name = "SELECT_TMP_DROP_ENCUESTA_GUNA" +' cmd.Parameters = Array As Object(usuario, B4XPages.MainPage.principal.e_ruta.text, ALMACEN, "ENCUESTA") +' B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "CHECAENCUESTA") + Else + compra + End If + Else + p_transparenteTicketImpreso.Visible = True + End If End If Else c=B4XPages.MainPage.skmt.ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") @@ -3084,9 +3156,58 @@ Sub B_IMP_Click Else If ALMACEN = 88 Then Impresion4 - Else If ALMACEN = 81 Or ALMACEN = 102 Or ALMACEN = 6 Then + Else If ALMACEN = 81 Or ALMACEN = 102 Or ALMACEN = 94 Then + + c=B4XPages.MainPage.skmt.ExecQuery("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO, IFNULL(CONFIRMADO,0) AS CONFIRMADO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)") + c.Position = 0 + + If c.GetString("CAT_CL_BCREDITO") = 0 Then + Impresion4 + + Else If c.GetString("CAT_CL_BCREDITO") = 1 Then + If c.GetString("CONFIRMADO") = 0 Then + + Msgbox2Async("La entrega sera a credito o de contado?" , "Atención", "Credito", "Contado", "", LoadBitmap(File.DirAssets,"alert2.png"), False) + Wait For Msgbox_Result (resultado As Int) + If resultado = DialogResponse.POSITIVE Then + Dim creditocod As Cursor = Starter.skmt.ExecQuery("SELECT CODIGO FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + If creditocod.RowCount > 0 Then + creditocod.Position = 0 + Dim cs As CSBuilder + cs.Initialize + + ' 1. Iniciamos el constructor y definimos el tamaño general más grande (ej. 20) + cs.Size(16).Append("Proporciona el siguiente codigo al cliente '") + + ' 2. Activamos Negrita (Bold) para el código + cs.Bold.Append(creditocod.GetString("CODIGO")).Pop ' .Pop cierra la negrita + + ' 3. Continuamos con el texto normal y cerramos todo + cs.Append("' para su entrega").PopAll + + ' 4. Pasamos el objeto 'cs' en lugar del texto plano + Msgbox2Async(cs, "Atención", "Ok", "", "", LoadBitmap(File.DirAssets,"alert2.png"), False) + Wait For Msgbox_Result (resultado As Int) + If resultado = DialogResponse.POSITIVE Then + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 1 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 1 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + + Impresion4 + End If + Else + Impresion4 + End If + + + Else If resultado = DialogResponse.CANCEL Then + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 1 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Impresion4 + End If + Else + Impresion4 + End If + End If - Impresion4 Else Impresion End If @@ -3217,9 +3338,11 @@ Sub Impresion4 Dim descpro As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '${s.GetString("PE_PRONOMBRE")}') AND INSTR(',' || CAT_PD_TIER || ',' , ',${Subs.traeTipoCliente},') > 0 "$) descpro.Position = 0 - + Printer1.WriteString(BLANCO & s.GETSTRING("PE_CANT") & " X $" & s.GETSTRING("PE_RECALCULO") & " $" & s.GETSTRING("PE_COSTO_TOTREC") & eLINEFEED & eLINEFEED ) + Log(s.GetString("PE_PRONOMBRE")) + Log(descpro.GetDouble("CAT_PD_DESCUENTO")) Printer1.WriteString(BLANCO & "PL $" & s.GETSTRING("PE_COSTOU") & " Desc.: " & descpro.GetDouble("CAT_PD_DESCUENTO")&"%" & eLINEFEED & eLINEFEED) TAMANO = 0 ESPACIO = 21 @@ -3296,8 +3419,12 @@ Sub Impresion4 Printer1.WriteString(BLANCO & s.GETSTRING("PE_CANT") & " X $" & s.GETSTRING("PE_COSTOU") & " $" & s.GETSTRING("PE_COSTO_TOT") & eLINEFEED ) + If Subs.traeTipoCliente= 5 Then + Dim precioprom As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_LISTAPRECIO AS CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '${s.GetString("PE_PRONOMBRE")}' "$) + Else + Dim precioprom As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '${s.GetString("PE_PRONOMBRE")}' "$) + End If - Dim precioprom As Cursor = Starter.skmt.ExecQuery($"SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '${s.GetString("PE_PRONOMBRE")}' "$) If precioprom.RowCount > 0 Then precioprom.Position = 0 Log (precioprom.GETSTRING("CAT_GP_PRECIO")) @@ -3351,16 +3478,27 @@ Sub Impresion4 ' Printer1.WriteString("Descuento %: " & NumberFormat2( (((Subs.calculaTotalConPromoXRango3(Subs.traeCliente) - Subs.calculaTotalConPromoXRango2(Subs.traeCliente))*100)/NumberFormat2(Subs.calculaTotalConPromoXRango3(Subs.traeCliente),0,2,2,False)),0,2,2,False)& eLINEFEED) End If Printer1.WriteString("Total Preventa: $" & NumberFormat2(Subs.calculaTotalConPromoXRango2(Subs.traeCliente),0,2,2,False)& eLINEFEED) - - Printer1.WriteString(" " & eLINEFEED) - Printer1.WriteString("------------------------------------------------" & eLINEFEED) - Printer1.WriteString("ENTREGA EN :" & eLINEFEED) - Printer1.WriteString(la_Calle.Text & eLINEFEED) - Printer1.WriteString("--------------ESTE TICKET NO ES UN--------------" & eLINEFEED) - Printer1.WriteString("----------COMPROBANTE FISCAL, SOLO ES-----------" & eLINEFEED) - Printer1.WriteString("------------------INFORMATIVO-------------------" & eLINEFEED) - Printer1.WriteString("------------------------------------------------" & eLINEFEED) - Printer1.WriteString(" " & eLINEFEED) + Printer1.WriteString(" " & eLINEFEED) + + Private contadocredito As Cursor = Starter.skmt.ExecQuery($"SELECT BANDERA FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA) "$) + If contadocredito.RowCount > 0 Then + contadocredito.Position = 0 + If contadocredito.getstring("BANDERA") = "1" Then + Printer1.WriteString("Tipo de entrega: CREDITO"&eLINEFEED) + Else + Printer1.WriteString("Tipo de entrega: CONTADO"& eLINEFEED) + End If + End If + + Printer1.WriteString(" " & eLINEFEED) + Printer1.WriteString("------------------------------------------------" & eLINEFEED) + Printer1.WriteString("ENTREGA EN :" & eLINEFEED) + Printer1.WriteString(la_Calle.Text & eLINEFEED) + Printer1.WriteString("--------------ESTE TICKET NO ES UN--------------" & eLINEFEED) + Printer1.WriteString("----------COMPROBANTE FISCAL, SOLO ES-----------" & eLINEFEED) + Printer1.WriteString("------------------INFORMATIVO-------------------" & eLINEFEED) + Printer1.WriteString("------------------------------------------------" & eLINEFEED) + Printer1.WriteString(" " & eLINEFEED) Sleep(1000) Printer1.DisConnect @@ -6613,6 +6751,8 @@ Private Sub b_codigoAutorizacion_Click Starter.skmt.ExecNonQuery("delete from ticket_impreso where idCliente in (select cuenta from cuentaa)") p_transparenteTicketImpreso.Visible = False et_codigoAutorizacion.Text = "" + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") End If teclado.HideKeyboard ' p_transparenteTicketImpreso.Visible = False @@ -7789,7 +7929,7 @@ Private Sub b_acepatiende_Click If coord.RowCount = 0 Then skmt.ExecNonQuery2("INSERT INTO ATIENDE(ATIENDE,CLIENTE) VALUES (?,?)", Array As String (et_atiende.Text,Subs.traeCliente)) - B4XPages.MainPage.skmt.ExecNonQuery($"UPDATE kmt_info set CAT_CL_ATIENDE1 = '${et_atiende.Text}' where CAT_CL_CODIGO In (select cuenta from cuentaa)"$) + B4XPages.MainPage.skmt.ExecNonQuery($"UPDATE kmt_info3 set CAT_CL_ATIENDE1 = '${et_atiende.Text}' where CAT_CL_CODIGO In (select cuenta from cuentaa)"$) MsgboxAsync("Datos actualizados.","Atención") l_atiende.Text = et_atiende.Text ime.HideKeyboard @@ -7797,7 +7937,7 @@ Private Sub b_acepatiende_Click et_atiende.Text = "" Else skmt.ExecNonQuery2("UPDATE ATIENDE SET ATIENDE = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)", Array As String (et_atiende.Text)) - B4XPages.MainPage.skmt.ExecNonQuery($"UPDATE kmt_info set CAT_CL_ATIENDE1 = '${et_atiende.Text}' where CAT_CL_CODIGO In (select cuenta from cuentaa)"$) + B4XPages.MainPage.skmt.ExecNonQuery($"UPDATE kmt_info3 set CAT_CL_ATIENDE1 = '${et_atiende.Text}' where CAT_CL_CODIGO In (select cuenta from cuentaa)"$) MsgboxAsync("Datos actualizados.","Atención") l_atiende.Text = et_atiende.Text ime.HideKeyboard @@ -7870,5 +8010,4 @@ End Sub Private Sub p_telefono_Click -End Sub - +End Sub \ No newline at end of file diff --git a/B4A/C_NoVenta.bas b/B4A/C_NoVenta.bas index 4aa537b..a8eda6e 100644 --- a/B4A/C_NoVenta.bas +++ b/B4A/C_NoVenta.bas @@ -12,6 +12,7 @@ Sub Class_Globals Dim ruta As String Dim skmt As SQL Dim c As Cursor + Dim CANCELA As Button Dim GUARDA As Button Dim r_1 As RadioButton diff --git a/B4A/C_Nota.bas b/B4A/C_Nota.bas index 9568b59..69fa30b 100644 --- a/B4A/C_Nota.bas +++ b/B4A/C_Nota.bas @@ -421,31 +421,59 @@ Sub borra_Click ' If c.RowCount > 0 Then ' c.Position = 0 ' If c.GetString("HABILITADA") = 1 Then - If Not(Subs.revisaImpreso) Then - If folio <> "" Then - result = Msgbox2("Seguro que desa borrar el pedido?","Cancelar pedido", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore - If result = DialogResponse.POSITIVE Then - c=B4XPages.MainPage.skmt.ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'") - If c.RowCount>0 Then - For i=0 To c.RowCount -1 - c.Position=i - B4XPages.MainPage.skmt.ExecNonQuery2($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?"$, Array As Object(c.GetString("PE_CANT"),c.GetString("PE_PROID"))) - B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ", Array As Object (almacen,c.GetString("PE_PROID"),c.GetString("PE_CANT")* -1)) - Next - End If - B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)") - B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)") - B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)") - B4XPage_Appear - End If - Else - Msgbox("CLIENTE YA SE TRANSMITIO, FAVOR DE LLAMAR A SOPORTE PARA ASISTENCIA","AVISO") 'ignore + If Not(Subs.revisaImpreso) Then +' If folio <> "" Then + result = Msgbox2("Seguro que desa borrar el pedido?","Cancelar pedido", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore + If result = DialogResponse.POSITIVE Then + c=B4XPages.MainPage.skmt.ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'") + If c.RowCount>0 Then + For i=0 To c.RowCount -1 + c.Position=i + B4XPages.MainPage.skmt.ExecNonQuery2($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?"$, Array As Object(c.GetString("PE_CANT"),c.GetString("PE_PROID"))) + B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ", Array As Object (almacen,c.GetString("PE_PROID"),c.GetString("PE_CANT")* -1)) + Next End If - Else - ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) - B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True - B4XPages.ShowPage("cliente") + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + B4XPage_Appear End If +' Else +' Msgbox("CLIENTE YA SE TRANSMITIO, FAVOR DE LLAMAR A SOPORTE PARA ASISTENCIA","AVISO") 'ignore +' End If + Else + Log("Aqui") + Log(Subs.traeAlmacen) + If Subs.traeAlmacen = 94 Then + Log("Aqui") +' If folio <> "" Then + result = Msgbox2("Seguro que desa borrar el pedido?","Cancelar pedido", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore + If result = DialogResponse.POSITIVE Then + c=B4XPages.MainPage.skmt.ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'") + If c.RowCount>0 Then + For i=0 To c.RowCount -1 + c.Position=i + B4XPages.MainPage.skmt.ExecNonQuery2($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?"$, Array As Object(c.GetString("PE_CANT"),c.GetString("PE_PROID"))) + B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ", Array As Object (almacen,c.GetString("PE_PROID"),c.GetString("PE_CANT")* -1)) + Next + End If + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + B4XPage_Appear + End If +' Else +' Msgbox("CLIENTE YA SE TRANSMITIO, FAVOR DE LLAMAR A SOPORTE PARA ASISTENCIA","AVISO") 'ignore +' End If + Else + Log("aqui") + ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True + B4XPages.ShowPage("cliente") + End If + End If ' Else If c.GetString("HABILITADA") = 0 Then ' If folio <> "" Then ' result = Msgbox2("Seguro que desa borrar el pedido?","Cancelar pedido", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore @@ -604,9 +632,84 @@ Sub ListView1_ItemLongClick (Position As Int, Value As Object) B4XPage_Appear End If Else - B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True - B4XPages.ShowPage("cliente") - ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + + If Subs.traeAlmacen = 94 Then + result = Msgbox2("Seguro que desea borrar este articulo?","Borrar Articulo", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore + If result = DialogResponse.POSITIVE Then + c=B4XPages.MainPage.skmt.ExecQuery($"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '${nom}' or pe_pronombre = '${nom} ') AND PE_CEDIS = '${cedis}' AND PE_FOLIO = '${foliu}' and pe_cliente in (Select CUENTA from cuentaa)"$) + Log($"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '${nom}' or pe_pronombre = '${nom}') AND PE_CEDIS = '${cedis}' AND PE_FOLIO = '${foliu}' and pe_cliente in (Select CUENTA from cuentaa)"$) + Log(c.RowCount) + Log("AQUI ESTOY") + Log(cedis) + Log(foliu) + Log(nom) +' If c.RowCount > 0 Then + c.Position=0 + ' If c.RowCount > 0 Then + ' B4XPages.MainPage.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?", Array As Object(c.GetString("PE_CANT"),c.GetString("PE_PROID"))) + B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ", Array As Object (almacen,c.GetString("PE_PROID"),c.GetString("PE_CANT")* -1)) + ' c2=B4XPages.MainPage.skmt.ExecQuery($"select count(*) AS CUANTOS from CAT_GUNAPROD where CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'"$)'Con esto revisamos si el nombre es de una promo + ' c2=B4XPages.MainPage.skmt.ExecQuery($"select ISNUMERIC(pe_cedis) AS noEsPromo from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa) and pe_cedis = '${cedis}'"$)'Con esto revisamos si el nombre es de una promo + ' Log($"select count(*) AS CUANTOS from CAT_GUNAPROD where CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'"$) + ' Log($"select ISNUMERIC(pe_cedis) AS noEsPromo from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa) and pe_cedis = '${cedis}'"$) + ' c2.Position=0 + ' Log("Algo "&c2.GetString("noEsPromo")) + If Not(IsNumber(cedis)) Then + j3 = B4XPages.MainPage.skmt.ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",Array As String(cedis)) + Log(j3.RowCount) + If j3.RowCount > 0 Then + Log("Soy promo") + For j = 0 To j3.RowCount -1 + Log("aqui tronare?") + j3.Position = j + + Log(nom) + If cedis <> "DUR" Then + + B4XPages.MainPage.skmt.ExecNonQuery($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ${j3.GetString("PE_CANT")} where cat_gp_id = '${j3.GetString("PE_PROID")}'"$) + B4XPages.MainPage.skmt.ExecNonQuery($"delete from pedido where pe_cedis= '${cedis}' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '${foliu}' AND PE_PROID = '${j3.GetString("PE_PROID")}'"$)', Array As Object(cedis, c.GetString("PE_FOLIO"))) + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(cedis, foliu)) + Else + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(cedis, foliu)) + End If + Next + End If + j3.Close + Else + B4XPages.MainPage.skmt.ExecNonQuery($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ${c.GetString("PE_CANT")} where cat_gp_id = '${c.Getstring("PE_PROID")}'"$) + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(nom, cedis, foliu)) + End If + c.Close +' c2.Close + DateTime.DateFormat = "MM/dd/yyyy" + sDate=DateTime.Date(DateTime.Now) + sTime=DateTime.Time(DateTime.Now) + c=B4XPages.MainPage.skmt.ExecQuery("Select CUENTA from cuentaa") + c.Position=0 + clie_id = c.GetString("CUENTA") + c=B4XPages.MainPage.skmt.ExecQuery("select USUARIO from usuarioa") + c.Position=0 + usuario = c.GetString("USUARIO") + c=B4XPages.MainPage.skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)") + c.Position=0 + If c.GetString("CUANTOS") > 0 Then + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)", Array As Object(clie_id, sDate & sTime, usuario, c.GetString("CANT_CLIE"),c.GetString("TOTAL_CLIE"), B4XPages.MainPage.lon_gps, B4XPages.MainPage.lat_gps)) + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + Else + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + End If + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + B4XPage_Appear + End If + Else + Log("aqui") + B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True + B4XPages.ShowPage("cliente") + ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + End If End If Else If c.GetString("HABILITADA") = 0 Then If Not(Subs.revisaImpreso) Then @@ -697,9 +800,101 @@ Sub ListView1_ItemLongClick (Position As Int, Value As Object) B4XPage_Appear End If Else - B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True - B4XPages.ShowPage("cliente") - ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + If Subs.traeAlmacen = 94 Then + result = Msgbox2("Seguro que desea borrar este articulo?","Borrar Articulo", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore + If result = DialogResponse.POSITIVE Then + Private X() As String = Regex.Split(" ", Value) + Log(X) + Log(X.Length) + Private nom As String = "" + For i = 0 To X.Length -1 +' Log(X(i)) + If X(i).Contains(CRLF) Then +' Log("Retorno") + End If + If Not(X(i).Contains(CRLF)) Then + nom = nom & " " & X(i) + Else + Exit + End If +' Log(nom) + Next +' Log(nom) + nom = nom.Trim + If X(X.Length-1) <> ".01" Then + Private cedis As String = X(X.Length-1) + Else + Private cedis As String = (X(X.Length-2) &" " & X(X.Length-1)) + End If + Log(nom) + Log(cedis) + c=B4XPages.MainPage.skmt.ExecQuery($"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '${nom}' or pe_pronombre = '${nom} ') AND PE_CEDIS = '${cedis}' and pe_cliente in (Select CUENTA from cuentaa)"$) ' Se agregó el "pe_pronombre = '${nom} '" porque al nombre de los productos de promo se les agrega un "espacio al final" para que cuando exiiste en el pedido un mismo producto fuera de promocion, el "quitaduplicados" no los elimine. + Log($"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '${nom}' or pe_pronombre = '${nom} ') AND PE_CEDIS = '${cedis}' and pe_cliente in (Select CUENTA from cuentaa)"$) + Log(c.RowCount) + c.Position=0 +' If c.RowCount > 0 Then +' B4XPages.MainPage.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?", Array As Object(c.GetString("PE_CANT"),c.GetString("PE_PROID"))) +' B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ", Array As Object (almacen,c.GetString("PE_PROID"),c.GetString("PE_CANT")* -1)) +' c2=B4XPages.MainPage.skmt.ExecQuery($"select count(*) AS CUANTOS from CAT_GUNAPROD where CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'"$)'Con esto revisamos si el nombre es de una promo +' c2=B4XPages.MainPage.skmt.ExecQuery($"select ISNUMERIC(pe_cedis) AS noEsPromo from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa) and pe_cedis = '${cedis}'"$)'Con esto revisamos si el nombre es de una promo +' Log($"select count(*) AS CUANTOS from CAT_GUNAPROD where CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'"$) +' Log($"select ISNUMERIC(pe_cedis) AS noEsPromo from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa) and pe_cedis = '${cedis}'"$) +' c2.Position=0 +' Log("Algo "&c2.GetString("noEsPromo")) + If Not(IsNumber(cedis)) Then + j3 = B4XPages.MainPage.skmt.ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",Array As String(cedis)) + Log(j3.RowCount) + If j3.RowCount > 0 Then + Log("Soy promo") + For j = 0 To j3.RowCount -1 + Log("aqui tronare?") + j3.Position = j + + If cedis <> "DUR" Then + B4XPages.MainPage.skmt.ExecNonQuery($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ${j3.GetString("PE_CANT")} where cat_gp_id = '${j3.GetString("PE_PROID")}'"$) + B4XPages.MainPage.skmt.ExecNonQuery($"delete from pedido where pe_cedis= '${cedis}' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '${foliu}' AND PE_PROID = '${j3.GetString("PE_PROID")}'"$)', Array As Object(cedis, c.GetString("PE_FOLIO"))) + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(cedis, foliu)) + Else + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(cedis, foliu)) + End If + Next + End If + j3.Close + Else + B4XPages.MainPage.skmt.ExecNonQuery($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ${c.GetString("PE_CANT")} where cat_gp_id = '${c.Getstring("PE_PROID")}'"$) + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(nom, cedis, foliu)) + End If + c.Close +' c2.Close + DateTime.DateFormat = "MM/dd/yyyy" + sDate=DateTime.Date(DateTime.Now) + sTime=DateTime.Time(DateTime.Now) + c=B4XPages.MainPage.skmt.ExecQuery("Select CUENTA from cuentaa") + c.Position=0 + clie_id = c.GetString("CUENTA") + c=B4XPages.MainPage.skmt.ExecQuery("select USUARIO from usuarioa") + c.Position=0 + usuario = c.GetString("USUARIO") + c=B4XPages.MainPage.skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)") + c.Position=0 + If c.GetString("CUANTOS") > 0 Then + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)", Array As Object(clie_id, sDate & sTime, usuario, c.GetString("CANT_CLIE"),c.GetString("TOTAL_CLIE"), B4XPages.MainPage.lon_gps, B4XPages.MainPage.lat_gps)) + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + Else + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + End If + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + B4XPage_Appear + End If + Else + Log("aqui") + B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True + B4XPages.ShowPage("cliente") + ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + End If End If End If Else If c.RowCount = 0 Then @@ -780,9 +975,90 @@ Sub ListView1_ItemLongClick (Position As Int, Value As Object) B4XPage_Appear End If Else - B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True - B4XPages.ShowPage("cliente") - ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + If Subs.traeAlmacen = 94 Then + result = Msgbox2("Seguro que desea borrar este articulo?","Borrar Articulo", "Si", "", "No",LoadBitmap(File.DirAssets,"alert2.png")) 'ignore + If result = DialogResponse.POSITIVE Then + Private X() As String = Regex.Split(" ", Value) + Log(X) + Log(X.Length) + Private nom As String = "" + For i = 0 To X.Length -1 +' Log(X(i)) + If X(i).Contains(CRLF) Then +' Log("Retorno") + End If + If Not(X(i).Contains(CRLF)) Then + nom = nom & " " & X(i) + Else + Exit + End If +' Log(nom) + Next +' Log(nom) + nom = nom.Trim + Private cedis As String = X(X.Length-1) + c=B4XPages.MainPage.skmt.ExecQuery($"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '${nom}' or pe_pronombre = '${nom} ') AND PE_CEDIS = '${cedis}' and pe_cliente in (Select CUENTA from cuentaa)"$) + Log($"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '${nom}' AND PE_CEDIS = '${cedis}' and pe_cliente in (Select CUENTA from cuentaa)"$) + Log(c.RowCount) + c.Position=0 + ' If c.RowCount > 0 Then + ' B4XPages.MainPage.skmt.ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?", Array As Object(c.GetString("PE_CANT"),c.GetString("PE_PROID"))) + B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ", Array As Object (almacen,c.GetString("PE_PROID"),c.GetString("PE_CANT")* -1)) + ' c2=B4XPages.MainPage.skmt.ExecQuery($"select count(*) AS CUANTOS from CAT_GUNAPROD where CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'"$)'Con esto revisamos si el nombre es de una promo + ' c2=B4XPages.MainPage.skmt.ExecQuery($"select ISNUMERIC(pe_cedis) AS noEsPromo from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa) and pe_cedis = '${cedis}'"$)'Con esto revisamos si el nombre es de una promo + ' Log($"select count(*) AS CUANTOS from CAT_GUNAPROD where CAT_GP_ID in (select pe_cedis from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa)) and CAT_GP_CLASIF = 'PROMOS' AND CAT_GP_TIPO = 'PROMOS' AND CAT_GP_SUBTIPO = 'PROMOS'"$) + ' Log($"select ISNUMERIC(pe_cedis) AS noEsPromo from pedido where pe_pronombre = '${nom}' and pe_cliente in (Select CUENTA from cuentaa) and pe_cedis = '${cedis}'"$) + ' c2.Position=0 + ' Log("Algo "&c2.GetString("noEsPromo")) + If Not(IsNumber(cedis)) Then + j3 = B4XPages.MainPage.skmt.ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",Array As String(cedis)) + Log(j3.RowCount) + If j3.RowCount > 0 Then + Log("Soy promo") + For j = 0 To j3.RowCount -1 + Log("aqui tronare?") + j3.Position = j + B4XPages.MainPage.skmt.ExecNonQuery($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ${j3.GetString("PE_CANT")} where cat_gp_id = '${j3.GetString("PE_PROID")}'"$) + B4XPages.MainPage.skmt.ExecNonQuery($"delete from pedido where pe_cedis= '${cedis}' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '${foliu}' AND PE_PROID = '${j3.GetString("PE_PROID")}'"$)', Array As Object(cedis, c.GetString("PE_FOLIO"))) +' B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(cedis, c.GetString("PE_FOLIO"))) + Next + End If + j3.Close + Else + B4XPages.MainPage.skmt.ExecNonQuery($"update ${Subs.traeTablaProds(tipo_venta)} set cat_gp_almacen = cat_gp_almacen + ${c.GetString("PE_CANT")} where cat_gp_id = '${c.Getstring("PE_PROID")}'"$) + B4XPages.MainPage.skmt.ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?", Array As Object(nom, cedis, foliu)) + End If + c.Close +' c2.Close + DateTime.DateFormat = "MM/dd/yyyy" + sDate=DateTime.Date(DateTime.Now) + sTime=DateTime.Time(DateTime.Now) + c=B4XPages.MainPage.skmt.ExecQuery("Select CUENTA from cuentaa") + c.Position=0 + clie_id = c.GetString("CUENTA") + c=B4XPages.MainPage.skmt.ExecQuery("select USUARIO from usuarioa") + c.Position=0 + usuario = c.GetString("USUARIO") + c=B4XPages.MainPage.skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)") + c.Position=0 + If c.GetString("CUANTOS") > 0 Then + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)", Array As Object(clie_id, sDate & sTime, usuario, c.GetString("CANT_CLIE"),c.GetString("TOTAL_CLIE"), B4XPages.MainPage.lon_gps, B4XPages.MainPage.lat_gps)) + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + Else + B4XPages.MainPage.skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)") + B4XPages.MainPage.skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)") + End If + Starter.skmt.ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)") + Starter.skmt.ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)") + B4XPage_Appear + End If + Else + Log("aqui") + B4XPages.MainPage.cliente.p_transparenteTicketImpreso.Visible = True + B4XPages.ShowPage("cliente") + ToastMessageShow("La venta ya esta impresa, no se puede modificar!!", True) + End If End If End If End Sub diff --git a/B4A/C_NuevoCliente.bas b/B4A/C_NuevoCliente.bas index 35ad4c0..1b029e9 100644 --- a/B4A/C_NuevoCliente.bas +++ b/B4A/C_NuevoCliente.bas @@ -4,6 +4,145 @@ 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 ruta As String +' Dim c As Cursor +' +' Dim CANCELA As Button +' Dim GUARDA As Button +' Dim cuenta As String +' Dim usuario As String +' Dim sDate,sTime As String +' Dim no_cliente As String +' Dim no_ruta As String +' +' Dim lat As Double = 0 +' Dim lon As Double = 0 +' +' Dim r_4 As RadioButton +' Dim E_NOMBRE As EditText +' Dim tgl As Toggle +' Private l_sinUbicacion As Label +' Private p_nuevoCliente As Panel +' Private Label1 As Label +' Private p_botones 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("nuevocliente") +' ruta = File.DirInternal +' If File.Exists(ruta, "kmt.db") = False Then +' File.Copy(File.DirAssets, "kmt.db", ruta, "kmt.db") +' End If +'' skmt.Initialize(ruta,"kmt.db", True) +'End Sub +' +''You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage. +' +'Sub B4XPage_Appear +' E_NOMBRE.Text = "" +' If Not(Starter.gps.GPSEnabled) Then +' ToastMessageShow("Es necesario tener el GPS encendido", True) +' StartActivity(Starter.gps.LocationSettingsIntent) +' End If +' GUARDA.Visible = False +' +' CallSubDelayed(Tracker, "Track") +' CallSubDelayed(Tracker, "StartFLPSmall") +' If Tracker.FLP.IsInitialized And Tracker.FLP.GetLastKnownLocation.IsInitialized Then 'Si tenemos "UltimaUbicaccionConocida" la usamos. +' B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastKnownLocation.Latitude +' B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastKnownLocation.Longitude +'' Log($"Tenemos UUC: ${Tracker.FLP.GetLastKnownLocation.Latitude},${Tracker.FLP.GetLastKnownLocation.Longitude}"$) +' GPS_LocationChanged(Tracker.FLP.GetLastKnownLocation) +' End If +' +' +'' Subs.panelVisible(p_nuevoCliente,, 0) +'' p_nuevoCliente.Height = Root.Height +'' p_nuevoCliente.Width = Root.Width +'' Subs.centraEtiqueta(Label1, Root.Width) +'' Subs.centraEtiqueta(l_sinUbicacion, Root.Width) +'' Subs.centraPanel(p_botones, Root.Width) +' Subs.centraPanel(p_nuevoCliente, Root.Width) +'' E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Width/2) +' If B4XPages.MainPage.lat_gps <> "0.0" Then +' GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. +' l_sinUbicacion.Visible = True +' End If +' Starter.skmt.ExecNonQuery("delete from cuentaa") +'End Sub +' +'Sub GPS_LocationChanged (Location1 As Location) +' Log("NC GPS_LocationChanged") +' If B4XPages.MainPage.lat_gps <> "0.0" Then +' If GUARDA.IsInitialized Then +' GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. +' l_sinUbicacion.Visible = True +' End If +' End If +' If B4XPages.MainPage.lat_gps <> "0.0" Then +' If GUARDA.IsInitialized Then +' GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. +' l_sinUbicacion.Visible = True +' lat = Location1.Latitude +' lon = Location1.Longitude +' l_sinUbicacion.Text = ("Latitud: " & lat & ", Longotud: "& lon) +' End If +' End If +'End Sub +' +'Sub CANCELA_Click +' B4XPages.ShowPage("Principal") +'End Sub +' +'Sub GUARDA_Click +' If E_NOMBRE.Text = "" Then +' ToastMessageShow("Se tiene que nombrar la tienda para continuar" , True) +' Else +' DateTime.DateFormat = "MM/dd/yyyy" +' DateTime.Timeformat = "HHmmss" +' sDate=DateTime.Date(DateTime.Now) +' sTime=DateTime.Time(DateTime.Now) +' Log($" //////////// Date: ${sDate} - Time: ${sTime} ////////////////"$) +' 'Aqui creamos manualmete la hora con el separador de los 2 puntos porque en algunas versiones de android no respeta el formato "Timeformat = 'HH:mm:ss'" +' Private hora As String = sTime.SubString2(0,2) +' Private mins As String = sTime.SubString2(2,4) +' Private segs As String = sTime.SubString(4) +' sTime = hora&":"&mins&":"&segs +' Log("////////////// sTime: "&sTime&" ////////////////") +'' c=B4XPages.MainPage.skmt.ExecQuery("select CAT_CL_RUTA FROM kmt_info3") +'' c.Position=0 +' no_ruta= Subs.traeRuta +' no_cliente= "N" & sTime & no_ruta +' Log("++ ++ no_cliente = "&no_cliente) +'' c.Close +' B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0) ",Array As Object (no_cliente,no_ruta, E_NOMBRE.Text,"null","null","null","null","null","null","null","null","null","null","null","null","null",lon,lat)) +' B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)", Array As Object (no_cliente)) +' B4XPages.MainPage.skmt.ExecNonQuery("delete from CUENTAA") +' B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object(no_cliente)) +' B4XPages.ShowPage("Cliente") +' End If +'End Sub +' +' +'Private Sub p_nuevoCliente_Click +' +'End Sub + + + Sub Class_Globals Private Root As B4XView 'ignore Private xui As XUI 'ignore @@ -17,12 +156,10 @@ Sub Class_Globals Dim cuenta As String Dim usuario As String Dim sDate,sTime As String + Dim sDate2,sTime2 As String Dim no_cliente As String Dim no_ruta As String - - Dim lat As Double = 0 - Dim lon As Double = 0 - + Dim lista_punta As List Dim r_4 As RadioButton Dim E_NOMBRE As EditText Dim tgl As Toggle @@ -30,6 +167,29 @@ Sub Class_Globals Private p_nuevoCliente As Panel Private Label1 As Label Private p_botones As Panel + Private p_cam As Panel + Private p_camara As Panel + Private b_foto_inci As Button +' Private camEx2 As CameraExClass2 + Dim frontCamera As Boolean = False + Dim fototomada As String = "0" + Dim ALMACEN As String + Private et_direccion As EditText + Private Label2 As Label + Dim lat As Double = 0 + Dim lon As Double = 0 + Private b_ubicacion As Label + Private Label3 As Label + Private cb_giro As B4XComboBox + Dim giros As String + Private L_Atiende As Label + Private ET_Atiende As EditText + Private Label5 As Label + Private et_colonia As EditText + Private et_telefono As EditText + Private et_cp As EditText + Private Label6 As Label + Private Panel1 As Panel End Sub 'You can add more parameters here. @@ -39,6 +199,7 @@ End Sub 'This event will be called once, before the page becomes visible. Private Sub B4XPage_Created (Root1 As B4XView) +' B4XPages.SetTitle(Me, $"${Subs.capitalizar(B4XPages.GetPageId(Me))} - ${Application.VersionName}"$) Root = Root1 'load the layout to Root Root.LoadLayout("nuevocliente") @@ -47,17 +208,70 @@ Private Sub B4XPage_Created (Root1 As B4XView) File.Copy(File.DirAssets, "kmt.db", ruta, "kmt.db") End If ' skmt.Initialize(ruta,"kmt.db", True) +' p_camara.Height = Root.Height +' p_camara.Width = Root.Width +' Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_CAMERA) +' Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) +' If Result Then + '' camEx2.Initialize(p_cam, frontCamera, Me, "Camera1") + '' frontCamera = camEx2.Front +' Log("inicializamos Camara") +' Else +' ToastMessageShow("Sin permisos de camara!!!", True) +' End If + 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 para escritura") + Else + ToastMessageShow("Sin permisos de 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("Con permisos para escritura") + Else + ToastMessageShow("Sin permisos de lectura!!!", True) + 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 + et_direccion.Text = "" E_NOMBRE.Text = "" + ET_Atiende.Text = "" + et_colonia.Text = "" + et_telefono.Text = "" + et_cp.Text = "" If Not(Starter.gps.GPSEnabled) Then ToastMessageShow("Es necesario tener el GPS encendido", True) StartActivity(Starter.gps.LocationSettingsIntent) End If GUARDA.Visible = False + Subs.panelVisible(p_nuevoCliente, 0, 0) + Subs.panelVisible(Panel1, 0, 0) + p_nuevoCliente.Height = Root.Height + p_nuevoCliente.Width = Root.Width + Panel1.Width = Root.Width + Panel1.Height = Root.Height + Subs.centraEtiqueta(Label1, Root.Width) + Subs.centraEtiqueta(Label5, Root.Width) + Subs.centraEtiqueta(Label6, Root.Width) + Subs.centraEtiqueta(Label2, Root.Width) + Subs.centraEtiqueta(Label3, Root.Width) + Subs.centraEtiqueta(l_sinUbicacion, Root.Width) + Subs.centraEtiqueta(b_ubicacion, Root.Width) + Subs.centraPanel(p_botones, Root.Width) + E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Width/2) + et_cp.Left = Round(Root.Width/2)-(E_NOMBRE.Width/2) + et_colonia.Left = Round(Root.Width/2)-(et_colonia.Width/2) + et_direccion.Left = Round(Root.Width/2)-(et_direccion.Width/2) + If B4XPages.MainPage.lat_gps <> "0.0" Then + GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. + l_sinUbicacion.Visible = True + End If CallSubDelayed(Tracker, "Track") CallSubDelayed(Tracker, "StartFLPSmall") @@ -68,75 +282,323 @@ Sub B4XPage_Appear GPS_LocationChanged(Tracker.FLP.GetLastKnownLocation) End If +' lista_punta.Initialize +' Dim pol As Cursor = Starter.skmt.ExecQuery("SELECT LAT, LONG FROM POLIGONO") +' If pol.RowCount > 0 Then +' +' For poli = 0 To pol.RowCount -1 +' pol.Position = poli +' Dim coords As LatLng +' coords.Initialize(pol.GetString("LAT"), pol.GetString("LONG")) +' lista_punta.Add(coords) +' Next +' End If -' Subs.panelVisible(p_nuevoCliente,, 0) -' p_nuevoCliente.Height = Root.Height -' p_nuevoCliente.Width = Root.Width -' Subs.centraEtiqueta(Label1, Root.Width) -' Subs.centraEtiqueta(l_sinUbicacion, Root.Width) -' Subs.centraPanel(p_botones, Root.Width) - Subs.centraPanel(p_nuevoCliente, Root.Width) -' E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Width/2) - If B4XPages.MainPage.lat_gps <> "0.0" Then - GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. - l_sinUbicacion.Visible = True + If Not(Starter.GPS.GPSEnabled) Then + ToastMessageShow("Debe Activar el GPS del Equipo.", True) + StartActivity(Starter.GPS.LocationSettingsIntent) + Else + Starter.GPS.Start(0, 0) +' If Starter.ubicacionActual.Latitude <> 0 Then GPS_LocationChanged(Starter.ubicacionActual) End If - Starter.skmt.ExecNonQuery("delete from cuentaa") + CallSubDelayed(Tracker, "StartFLPSmall") + + c = Starter.skmt.ExecQuery("SELECT GIRO FROM CAT_GIRO order by 1") + Dim Items As List + Items.Initialize + Items.Add("SELECCIONA UNA OPCIÓN") + If c.RowCount > 0 Then + For i = 0 To c.RowCount-1 + c.Position = i + Items.Add(c.GetString("GIRO")) + Next + cb_giro.SetItems(Items) + End If + giros = "SELECCIONA UNA OPCIÓN" + c.Close End Sub Sub GPS_LocationChanged (Location1 As Location) - Log("NC GPS_LocationChanged") - If B4XPages.MainPage.lat_gps <> "0.0" Then - If GUARDA.IsInitialized Then - GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. - l_sinUbicacion.Visible = True - End If - End If If B4XPages.MainPage.lat_gps <> "0.0" Then If GUARDA.IsInitialized Then GUARDA.Visible = True 'Si hay ubicaccion, mostramos el boton de guardar. l_sinUbicacion.Visible = True + lat = Location1.Latitude lon = Location1.Longitude l_sinUbicacion.Text = ("Latitud: " & lat & ", Longotud: "& lon) End If End If + + If b_ubicacion.IsInitialized Then + b_ubicacion.TextSize = 13 + b_ubicacion.Text = $"Precisión GPS $1.0{Location1.Accuracy} m"$ + If Location1.Accuracy > 200 Then + b_ubicacion.TextColor = Colors.Red + b_ubicacion.TextSize = 16 + b_ubicacion.Text = $"Mala señal $1.0{Location1.Accuracy} m"$ + End If + End If + End Sub Sub CANCELA_Click B4XPages.ShowPage("Principal") + CallSubDelayed(Tracker, "StartFLP") +End Sub + +Sub PointInPolygon(point As LatLng, polygon As List) As Boolean + Dim x As Double = point.Longitude + Dim y As Double = point.Latitude + + Dim inside As Boolean = False + For i = 0 To polygon.Size - 1 + Dim j As Int = (i + 1) Mod polygon.Size + Dim p1_1 As LatLng = polygon.Get(i) + Dim p2_1 As LatLng = polygon.Get(j) + + Dim xi As Double = p1_1.Longitude + Dim yi As Double = p1_1.Latitude + Dim xj As Double = p2_1.Longitude + Dim yj As Double = p2_1.Latitude + + Dim intersect As Boolean = ((yi > y) <> (yj > y)) And (x < (xj - xi) * (y - yi) / (yj - yi) + xi) + If intersect Then + inside = Not(inside) + End If + Next + + Return inside + + End Sub Sub GUARDA_Click - If E_NOMBRE.Text = "" Then - ToastMessageShow("Se tiene que nombrar la tienda para continuar" , True) + +' Dim mPoint As LatLng +' mPoint.Initialize(B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps) +' + '' If lista_punta.Size > 0 Then + '' Dim dentro As Boolean = PointInPolygon(mPoint, lista_punta) + '' + '' If dentro Then +' ToastMessageShow("El punto está DENTRO del polígono", True) + B4XPages.ShowPage("NuevoCliente") + + + ' Verifica si el nombre de la tienda está vacío + If E_NOMBRE.Text = "" Then + MsgboxAsync("Por favor captura el nombre de la Tienda","Atención") + ' Verifica si la dirección tiene más de 3 caracteres + Else If et_direccion.Text.Length > 3 Then + ' Verifica si la latitud es diferente de 0 + If lat <> 0 Then + ' Verifica si el giro del cliente está seleccionado + If giros <> "SELECCIONA UNA OPCIÓN" Or cb_giro.SelectedItem <> "SELECCIONA UNA OPCIÓN" Then + ' Verifica si el encargado que atiende el negocio está capturado + If ET_Atiende.Text <> "" Then + If et_telefono.Text <> "" Then + If et_colonia.Text <> "" Then + If et_cp.Text <> "" Then + + DateTime.DateFormat = "MM/dd/yyyy" + DateTime.Timeformat = "HHmmss" + sDate = DateTime.Date(DateTime.Now) + sTime = DateTime.Time(DateTime.Now) + Log($" //////////// Date: ${sDate} - Time: ${sTime} ////////////////"$) + ' Aquí creamos manualmente la hora con el separador de los 2 puntos porque en algunas versiones de Android no respeta el formato "Timeformat = 'HH:mm:ss'" + Private hora As String = sTime.SubString2(0,2) + Private mins As String = sTime.SubString2(2,4) + Private segs As String = sTime.SubString(4) + sTime = hora & ":" & mins & ":" & segs + Dim Fechacliente() As String = Regex.Split("/",sDate) + Log("////////////// sTime: "&sTime&" ////////////////") + c = Starter.skmt.ExecQuery("select CAT_CL_RUTA FROM kmt_info3") + c.Position = 0 + no_ruta = c.GetString("CAT_CL_RUTA") + no_cliente = "N" & sTime & no_ruta + Log("++ ++ no_cliente = "&no_cliente) + c.Close + + Starter.skmt.ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)", Array As Object (no_cliente)) + Starter.skmt.ExecNonQuery("delete from CUENTAA") + Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object(no_cliente)) + c = Starter.skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN") + If c.RowCount > 0 Then + c.Position = 0 + ALMACEN = c.GetString("ID_ALMACEN") + End If + c.Close + c = Starter.skmt.ExecQuery("select usuario from usuarioa") + c.Position = 0 + usuario = c.GetString("USUARIO") + c.Close + ' Starter.skmt.ExecNonQuery2("INSERT INTO HIST_FOTO_CLIENTE(CODIGO, ALMACEN, RUTA) VALUES(?,?,?)", Array As Object(no_cliente, ALMACEN, no_ruta)) + ' Starter.skmt.ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_LAT,NV_LON,NV_NOMBRE,NV_DIRECCION) VALUES(?,?,?,?,?,?,?,?) ", Array As Object (no_cliente,sDate & sTime, usuario, "NUEVO CLIENTE", lat, lon, E_NOMBRE.Text,et_direccion.Text)) + + DateTime.DateFormat = "dd/MM/yyyy" + DateTime.Timeformat = "HH:mm:ss" + sDate2 = DateTime.Date(DateTime.Now) + sTime2 = DateTime.Time(DateTime.Now) + + Starter.skmt.ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO,CAT_CL_CP) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?,?) ", Array As Object (no_cliente,no_ruta, E_NOMBRE.Text,"null","null","null","null","null","null","null","null","null","null","null","null","null",B4XPages.MainPage.lon_gps,B4XPages.MainPage.lat_gps, cb_giro.SelectedItem,et_cp.Text)) + Starter.skmt.ExecNonQuery2("INSERT INTO CLIENTES_NUEVOS(CN_ID, CN_FECHA, CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA,CN_COLONIA, CN_TELEFONO,CN_CP) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)", Array As String(no_cliente, sDate2 &" "&sTime2, usuario, lat, lon, E_NOMBRE.Text, et_direccion.Text, ALMACEN, no_ruta, cb_giro.SelectedItem, ET_Atiende.Text,et_colonia.Text,et_telefono.Text,et_cp.Text)) + ' fototomada = "0" + B4XPages.ShowPage("Cliente") + CallSubDelayed(Tracker, "StartFLP") + Else + MsgboxAsync("Por favor, debe capturar el C.P. el negocio.","Atención") + End If + Else + MsgboxAsync("Por favor, debe capturar la colonia el negocio.","Atención") + End If + Else + MsgboxAsync("Por favor, debe capturar el telefono.","Atención") + End If + Else + ' Mensaje de advertencia si ET_Atiende.Text está vacío + MsgboxAsync("Por favor, debe capturar al encargado que atiende el negocio.","Atención") + End If + Else + MsgboxAsync("Por favor captura el giro del cliente","Atención") + End If + Else + MsgboxAsync("Por favor revisa que tengas señal GPS","Atención") + End If Else - DateTime.DateFormat = "MM/dd/yyyy" - DateTime.Timeformat = "HHmmss" - sDate=DateTime.Date(DateTime.Now) - sTime=DateTime.Time(DateTime.Now) - Log($" //////////// Date: ${sDate} - Time: ${sTime} ////////////////"$) - 'Aqui creamos manualmete la hora con el separador de los 2 puntos porque en algunas versiones de android no respeta el formato "Timeformat = 'HH:mm:ss'" - Private hora As String = sTime.SubString2(0,2) - Private mins As String = sTime.SubString2(2,4) - Private segs As String = sTime.SubString(4) - sTime = hora&":"&mins&":"&segs - Log("////////////// sTime: "&sTime&" ////////////////") -' c=B4XPages.MainPage.skmt.ExecQuery("select CAT_CL_RUTA FROM kmt_info3") -' c.Position=0 - no_ruta= Subs.traeRuta - no_cliente= "N" & sTime & no_ruta - Log("++ ++ no_cliente = "&no_cliente) -' c.Close - B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0) ",Array As Object (no_cliente,no_ruta, E_NOMBRE.Text,"null","null","null","null","null","null","null","null","null","null","null","null","null",lon,lat)) - B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)", Array As Object (no_cliente)) - B4XPages.MainPage.skmt.ExecNonQuery("delete from CUENTAA") - B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object(no_cliente)) - B4XPages.ShowPage("Cliente") + MsgboxAsync("Por favor captura la dirección del cliente","Atención") End If + +' Else +' ToastMessageShow("El punto está FUERA del polígono", True) +' End If +' End If End Sub + + Private Sub p_nuevoCliente_Click +End Sub + +'Private Sub b_foto_inci_Click +' camEx2.TakePicture +' p_camara.Visible = False +'' StopCamera2 +'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 +' camEx2.Initialize(p_cam, frontCamera, Me, "Camera1") +' frontCamera = camEx2.Front +' Log("inicializamos Camara") +' Else +' ToastMessageShow("Sin permisos de camara!!!", True) +' End If +' 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 para escritura") +' Else +' ToastMessageShow("Sin permisos de 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("con permisos para escritura") +' Else +' ToastMessageShow("Sin permisos de lectura!!!", True) +' End If +'End Sub +' +'Sub Camera1_Ready (Success As Boolean) +' Log("Camara ready") +' If Success Then +' camEx2.SetJpegQuality(90) +' camEx2.SetContinuousAutoFocus +' camEx2.CommitParameters +' camEx2.StartPreview +' Log(camEx2.GetPreviewSize) +' Else +' ToastMessageShow("Cannot open camera.", True) +' Log("Cannot open camera") +' End If +'End Sub +' +'Sub Camera1_PictureTaken (Data()As Byte) +' 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,"/promotoriakmts") +' Dir = "/promotoriakmts" +' 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 +' +' camEx2.SavePictureToFile(Data, Dirp&Dir, filename) +' camEx2.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 +' StopCamera2 +' +'End Sub +' +'Private Sub StopCamera2 +'' Capturing = False +' If camEx2.IsInitialized Then +' camEx2.Release +' End If +'End Sub +' +' +'Private Sub B_FOTO_Click +' DateTime.DateFormat="ddMMyyyyHHmmss" +' InitializeCamera2 +' Subs.panelVisible(p_camara, 0, 0) +' fototomada = DateTime.Now & "_cliente.jpg" +'End Sub + +Private Sub cb_giro_SelectedIndexChanged (Index As Int) + giros = cb_giro.SelectedItem +End Sub + +Private Sub et_cp_TextChanged (Old As String, New As String) + If New.Length > 5 Then + et_cp.Text = Old + Else If New.Length > 1 And New.Length <= 5 Then + If New.Contains(Chr(10)) Or New.Contains(Chr(13)) Or New.Contains(Chr(34)) Then + et_cp.Text = Old + End If + End If + +End Sub + +Private Sub et_telefono_TextChanged (Old As String, New As String) + If New.Length > 10 Then + et_telefono.Text = Old + Else If New.Length > 1 And New.Length <= 10 Then + If New.Contains(Chr(10)) Or New.Contains(Chr(13)) Or New.Contains(Chr(34)) Then + et_telefono.Text = Old + End If + End If + End Sub \ No newline at end of file diff --git a/B4A/C_Principal.bas b/B4A/C_Principal.bas index 90b2d9c..72104ed 100644 --- a/B4A/C_Principal.bas +++ b/B4A/C_Principal.bas @@ -251,6 +251,17 @@ Sub Class_Globals Private l_preventa As Label Private l_preacordada As Label Private l_prevtotal As Label + Private Label13 As Label + Private Label19 As Label + Private Label21 As Label + Private Label33 As Label + Private Label35 As Label + Private Label43 As Label + Private Label51 As Label + Private l_faltan As Label + Private l_visitas As Label + Private l_visitartotal As Label + Private de As Label End Sub 'You can add more parameters here. @@ -439,11 +450,20 @@ Sub B4XPage_Appear f.Close If l_ruta.Text = 0 Then l_ruta.Text =0 + l_visitas.Text = 0 + l_faltan.Text = 0 Else f=B4XPages.MainPage.skmt.ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)") f.Position=0 l_ruta.Text = f.GetString("CAT_CL_RUTA") f.Close + + Dim totalcisitas As Cursor = Starter.skmt.ExecQuery("SELECT COUNT(*) AS CUENTA FROM KMT_INFO3 where cat_cl_codigo <> 0") + totalcisitas.Position = 0 + l_visitas.Text = totalcisitas.GetInt("CUENTA") + Dim visitasfaltantes As Cursor = Starter.skmt.ExecQuery("SELECT COUNT(*) AS CUENTA FROM KMT_INFO3 WHERE gestion = 0 and cat_cl_codigo <> 0") + visitasfaltantes.Position = 0 + l_faltan.Text = visitasfaltantes.GetInt("CUENTA") End If If Cuantos = 0 Then L_MONTOD.Text =0 @@ -635,6 +655,10 @@ Sub Subir_Click S_CH.Visible = False PB1.Visible = False Resumen.Visible= False + l_visitartotal.Visible = False + de.Visible = False + l_faltan.Visible = False + l_visitas.Visible = False p_principal.Visible = False Subs.panelVisible(P1, 0, 0) @@ -736,6 +760,34 @@ Sub Subir_Click End If c.Close + c=Starter.skmt.ExecQuery("SELECT CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS") + If c.RowCount>0 Then + For i = 0 To c.RowCount - 1 + c.Position = i + Dim dia As Int = DateTime.GetDayOfWeek(DateTime.Now) + If dia = 2 Then + Dim dialetra As String = "LUNES" + Else If dia = 3 Then + Dim dialetra As String = "MARTES" + Else If dia = 4 Then + Dim dialetra As String = "MIERCOLES" + Else If dia = 5 Then + Dim dialetra As String = "JUEVES" + Else If dia = 6 Then + Dim dialetra As String = "VIERNES" + Else If dia = 7 Then + Dim dialetra As String = "SABADO" + End If + Dim cmd As DBCommand + cmd.Initialize + cmd.Name = "insert_clientesnuevos_GUNA" + Log(c.GetString("CN_ID")&" ,"& c.GetString("CN_FECHA")&" ,"& c.GetString("CN_USER")&" ,"& c.GetString("CN_LAT")&" ,"& c.GetString("CN_LON")&" ,"& c.GetString("CN_NOMBRE")&" ,"& c.GetString("CN_DIRECCION")&" ,"&ALMACEN& c.GetString("CN_RUTA")&" ,"& "En espera"&c.GetString("CN_GIRO")&" ,"&dialetra& c.GetString("CN_SOLICITA")&" ,"& c.GetString("CN_COLONIA")&" ,"& c.GetString("CN_TELEFONO")) + cmd.Parameters = Array As Object(c.GetString("CN_ID"), c.GetString("CN_FECHA"), c.GetString("CN_USER"), c.GetString("CN_LAT"), c.GetString("CN_LON"), c.GetString("CN_NOMBRE"), c.GetString("CN_DIRECCION"),ALMACEN, c.GetString("CN_RUTA"), "En espera",c.GetString("CN_GIRO"),dialetra, c.GetString("CN_SOLICITA"), c.GetString("CN_COLONIA"), c.GetString("CN_TELEFONO"), c.GetString("CN_CP")) + B4XPages.MainPage.reqManager.ExecuteCommand(cmd , "inst_clientesn") + Next + End If + c.Close + Dim fotomostrar1 As Cursor = Starter.skmt.ExecQuery("SELECT * FROM kmt_info3 where foto is not NULL") If fotomostrar1.RowCount>0 Then For i=0 To fotomostrar1.RowCount -1 @@ -780,6 +832,21 @@ Sub Subir_Click End If c.Close + ' UPDATE VENTA CREDITO + '' UPDATE GUNA.CAT_CLIENTES SET CAT_CL_CTA = (?) WHERE cat_cl_codigo = (?) AND CAT_CL_IDALMACEN = (?) AND CAT_CL_RUTA = (?) + c=B4XPages.MainPage.skmt.ExecQuery("Select * from CODIGOS_CREDITO where BANDERA = 1") + If c.RowCount>0 Then + For i=0 To c.RowCount -1 + c.Position=i + Dim cmd As DBCommand + cmd.Initialize + cmd.Name = "update_ventacredito_guna" + cmd.Parameters = Array As Object(C.GetString("BANDERA"),C.GetString("CLIENTE"),ALMACEN,Subs.traeRuta2(C.GetString("CLIENTE"))) + B4XPages.MainPage.reqManager.ExecuteCommand(cmd , "up_coordenadas") + Next + End If + c.Close + ' Cambio TELEFONO c=B4XPages.MainPage.skmt.ExecQuery("Select CAT_CL_TELEFONO, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)") If c.RowCount>0 Then @@ -1081,10 +1148,31 @@ Sub cargar_Click cp.Position = 0 Private fecha As String = cp.GetString("PE_FECHA") Dim fecha2() As String = Regex.Split("/",fecha) - Dim dia As String = fecha2(1) + Dim fecha5() As String = Regex.Split("\:",fecha2(2)) + Dim dia As String = fecha5(0).SubString2(0,4)&fecha2(0)&fecha2(1) + Log(fecha5(0)) Log(dia) - Dim dia2 As String = DateTime.GetDayOfMonth(DateTime.Now) + Dim mescom As String = DateTime.GetMonth(DateTime.Now) + Dim mescom2 As String + If mescom.Length = 1 Then + mescom2 = "0"&DateTime.GetMonth(DateTime.Now) + Else + mescom2 = DateTime.GetMonth(DateTime.Now) + End If + + Dim diacom As String = DateTime.GetDayOfMonth(DateTime.Now) + Log(DateTime.GetMonth(DateTime.Now)) + Dim diacom2 As String + If diacom.Length = 1 Then + diacom2 = "0"&DateTime.GetDayOfMonth(DateTime.Now) + Else + diacom2 = DateTime.GetDayOfMonth(DateTime.Now) + End If + + + Dim dia2 As String = DateTime.GetYear(DateTime.Now)&mescom2&diacom2 Log(dia & " , " & dia2) + Log("SI PASO") If dia < dia2 Then pedidodiaanterior = True End If @@ -1132,7 +1220,10 @@ Sub cargar_Click l_ruta.Visible = False Label22.Visible = False l_rutasuplencia.Visible = False - + l_visitartotal.Visible = False + de.Visible = False + l_faltan.Visible = False + l_visitas.Visible = False ' trabajar.Visible = False NUEVO.Visible =False BUSCA.Visible=False @@ -1217,6 +1308,10 @@ Sub cargar_Click cmd.Parameters = Array As Object(ALMACEN, e_ruta.text) B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "tipoVenta") + cmd.Initialize + cmd.Name = "select_cat_GIRO_GUNA" + B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "giro") + cmd.Initialize cmd.Name = "select_coments_GUNA" cmd.Parameters = Array As Object(ALMACEN, e_ruta.text) @@ -1226,11 +1321,17 @@ Sub cargar_Click ' cmd.Name = "select_fotos_guna" ' cmd.Parameters = Array As Object(e_ruta.text,ALMACEN) ' B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "FOTO") - + cmd.Initialize cmd.Name = "traeFechaFotosGuna" cmd.Parameters = Array As Object(ALMACEN, e_ruta.text) B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "traeFechaFotosGuna") + + cmd.Initialize + cmd.Name = "traecodigosGUNA" + cmd.Parameters = Array As Object(e_ruta.text, ALMACEN) + B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "traecodigos") + cmd.Initialize cmd.Name = "select_cat_gunaprod_GV2" @@ -1293,22 +1394,22 @@ Sub cargar_Click B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "promoesp") End If - + cmd.Initialize cmd.Name = "select_cat_paquetess_GV2" cmd.Parameters = Array As Object(ALMACEN) B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "gunaprodp") - + cmd.Initialize cmd.Name = "select_cat_detallepa_GV2" cmd.Parameters = Array As Object(ALMACEN) B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "detallepaq") - + cmd.Initialize cmd.Name = "select_cat_clientes2_guna_GV2" '########################## CODIGO PARA CREDITOS #################### cmd.Parameters = Array As Object(e_ruta.text, ALMACEN) B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "kmt_datos") - + cmd.Initialize cmd.Name = "select_preventa_futura" cmd.Parameters = Array As Object(e_ruta.text, ALMACEN) @@ -1318,7 +1419,7 @@ Sub cargar_Click cmd.Name = "select_hist_datos_GV2_3" cmd.Parameters = Array As Object(e_ruta.text, ALMACEN,e_ruta.text, ALMACEN) B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, "hist_datos") - + cmd.Initialize cmd.Name = "select_hist_promos_GV2" cmd.Parameters = Array As Object(e_ruta.text, ALMACEN) @@ -1528,77 +1629,38 @@ Sub JobDone(Job As HttpJob) If RESULT.Tag = "FOTO" Then 'query tag ' B4XPages.MainPage.skmt.ExecNonQuery("delete from ABONOSP") For Each records() As Object In RESULT.Rows - Dim CODIGO As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) - Dim FOTO() As Byte = records(RESULT.Columns.Get("CAT_CL_FOTO")) + + + Dim CODIGO As String = records(RESULT.Columns.Get("CAT_CL_FOTO")) + Dim FOTOS As String = records(RESULT.Columns.Get("CAT_CL_CLIENTE")) Dim BANDERA As String = records(RESULT.Columns.Get("CAT_CL_BFOTO")) - Dim FECHA1 As String = records(RESULT.Columns.Get("CAT_CL_FOTO_FECHA")) + Dim fot As Cursor = Starter.skmt.ExecQuery($"SELECT * FROM FOTOS WHERE CLIENTE = '${CODIGO}'"$) If fot.RowCount = 0 Then - Starter.skmt.ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,MOVIMIENTO, FECHA) VALUES (?,?,?,?)", Array As Object (CODIGO, FOTO, BANDERA, FECHA1)) + Starter.skmt.ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,MOVIMIENTO) VALUES (?,?,?)", Array As Object (CODIGO, FOTOS,BANDERA)) Else fot.Position = 0 If fot.GetString("MOVIMIENTO") > BANDERA Then - Starter.skmt.ExecNonQuery2("UPDATE FOTOS SET FOTO = ?, MOVIMIENTO = ? IN (SELECT CUENTA FROM CUENTAA)",Array As Object(FOTO, BANDERA)) + Starter.skmt.ExecNonQuery2("UPDATE FOTOS SET FOTO = ?, MOVIMIENTO = ? IN (SELECT CUENTA FROM CUENTAA)",Array As Object(FOTOS, BANDERA)) End If End If - - 'Si la fecha de la foto en web es diferente a la fecha de la foto en movil, la descargamos -' Private tf As Cursor = Starter.skmt.ExecQuery($"select fecha from FOTOS where cliente = '${CODIGO}'"$) -' Log($"FECHA FOTO WEB: ${FECHA1}"$) -' If tf.RowCount > 0 Then -' cmd.Initialize -' Log(tf.GetString("FECHA")) -' tf.Position = 0 -' cmd.Name = "traeFotoGuna" -' cmd.Parameters = Array As Object(ALMACEN, Subs.traeRuta, CODIGO) -'' B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, $"traeFotoGuna_${CAT_CL_CODIGO}"$) -' Log($"==>> traeFotoGuna_${CODIGO}"$) -' Else -' cmd.Name = "traeFotoGuna" -' cmd.Parameters = Array As Object(ALMACEN, Subs.traeRuta, CODIGO) -'' B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, $"traeFotoGuna_${CAT_CL_CODIGO}"$) -' Log($"==>> traeFotoGuna_${CODIGO}"$) -' End If Next End If End If - + If Job.JobName = "DBRequest" Then Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) - If RESULT.Tag = "traeFechaFotosGuna" Then 'query tag - Subs.logJobDoneResultados(RESULT) -' B4XPages.MainPage.skmt.ExecNonQuery("delete from ABONOSP") + If RESULT.Tag = "giro" Then 'query tag For Each records() As Object In RESULT.Rows - Private fecha As String = records(RESULT.Columns.Get("CAT_CL_FOTO_FECHA")) - Private CLIENTE As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) - Private f As Cursor = Starter.skmt.ExecQuery($"select * from fotos where cliente = '${CLIENTE}' and fecha = '${fecha}'"$) - Log("==> EXISTE LA FOTO:" & f.RowCount) - If f.RowCount = 0 Then - cmd.Initialize - cmd.Name = "traeFotoGuna" - cmd.Parameters = Array As Object(ALMACEN, e_ruta.text, CLIENTE) - Log("BUSCAMOS FOTO: " & ALMACEN &"|" & e_ruta.text & "|" & CLIENTE) - B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, $"traeFotoGuna_${CLIENTE}"$) - Log($"==>> traeFotoGuna_${CLIENTE}"$) - End If + Dim giro As String = records(RESULT.Columns.Get("CAT_GR_DESCRIPCION")) + + Starter.skmt.ExecNonQuery2("INSERT INTO CAT_GIRO(GIRO) VALUES (?)", Array As Object (giro)) Next + End If End If - - If Job.JobName = "DBRequest" Then - Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) - If RESULT.Tag.As(String).Contains("traeFotoGuna_") Then 'query tag - For Each records() As Object In RESULT.Rows - Private FOTO() As Byte = records(RESULT.Columns.get("CAT_CL_FOTO")) - Private CLIENTE As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) - Private fecha As String = records(RESULT.Columns.Get("CAT_CL_FOTO_FECHA")) - Starter.skmt.ExecNonQuery($"DELETE from FOTOS where CLIENTE = '${CLIENTE}'"$) - Starter.skmt.ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,FECHA) VALUES (?,?,?)", Array As Object (CLIENTE,FOTO,fecha)) - Next - End If - End If - + If Job.JobName = "DBRequest" Then Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) If RESULT.Tag = "select_abonosp" Then 'query tag @@ -1634,6 +1696,102 @@ Sub JobDone(Job As HttpJob) End If End If + If Job.JobName = "DBRequest" Then + Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) + If RESULT.Tag = "traeFechaFotosGuna" Then 'query tag + Subs.logJobDoneResultados(RESULT) +' B4XPages.MainPage.skmt.ExecNonQuery("delete from ABONOSP") + For Each records() As Object In RESULT.Rows + Private fecha As String = records(RESULT.Columns.Get("CAT_CL_FOTO_FECHA")) + Private CLIENTE As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) + Private f As Cursor = Starter.skmt.ExecQuery($"select * from fotos where cliente = '${CLIENTE}' and fecha = '${fecha}'"$) + Log("==> EXISTE LA FOTO:" & f.RowCount) + If f.RowCount = 0 Then + cmd.Initialize + cmd.Name = "traeFotoGuna" + cmd.Parameters = Array As Object(ALMACEN, e_ruta.text, CLIENTE) + Log("BUSCAMOS FOTO: " & ALMACEN &"|" & e_ruta.text & "|" & CLIENTE) + B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0, $"traeFotoGuna_${CLIENTE}"$) + Log($"==>> traeFotoGuna_${CLIENTE}"$) + End If + Next + End If + End If + + ' CLIENTES NUEVOS +' Dim fotocn() As Byte +' Dim Dirp As String = File.DirInternal +' Dim Dir As String +' Dim Dir2 As String +' Dir = "/promotoriakmts" + + c=Starter.skmt.ExecQuery("SELECT CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS") + If c.RowCount>0 Then + For i = 0 To c.RowCount - 1 + c.Position = i + Dim dia As Int = DateTime.GetDayOfWeek(DateTime.Now) + If dia = 2 Then + Dim dialetra As String = "LUNES" + Else If dia = 3 Then + Dim dialetra As String = "MARTES" + Else If dia = 4 Then + Dim dialetra As String = "MIERCOLES" + Else If dia = 5 Then + Dim dialetra As String = "JUEVES" + Else If dia = 6 Then + Dim dialetra As String = "VIERNES" + Else If dia = 7 Then + Dim dialetra As String = "SABADO" + End If + Dim cmd As DBCommand + cmd.Initialize + cmd.Name = "insert_clientesnuevos_GUNA" + Log(c.GetString("CN_ID")&" ,"& c.GetString("CN_FECHA")&" ,"& c.GetString("CN_USER")&" ,"& c.GetString("CN_LAT")&" ,"& c.GetString("CN_LON")&" ,"& c.GetString("CN_NOMBRE")&" ,"& c.GetString("CN_DIRECCION")&" ,"&ALMACEN& c.GetString("CN_RUTA")&" ,"& "En espera"&c.GetString("CN_GIRO")&" ,"&dialetra& c.GetString("CN_SOLICITA")&" ,"& c.GetString("CN_COLONIA")&" ,"& c.GetString("CN_TELEFONO")) + cmd.Parameters = Array As Object(c.GetString("CN_ID"), c.GetString("CN_FECHA"), c.GetString("CN_USER"), c.GetString("CN_LAT"), c.GetString("CN_LON"), c.GetString("CN_NOMBRE"), c.GetString("CN_DIRECCION"),ALMACEN, c.GetString("CN_RUTA"), "En espera",c.GetString("CN_GIRO"),dialetra, c.GetString("CN_SOLICITA"), c.GetString("CN_COLONIA"), c.GetString("CN_TELEFONO"), c.GetString("CN_CP")) + B4XPages.MainPage.reqManager.ExecuteCommand(cmd , "inst_clientesn") + Next + End If + c.Close + + + If Job.JobName = "DBRequest" Then + Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) + If RESULT.Tag.As(String).Contains("traeFotoGuna_") Then 'query tag + For Each records() As Object In RESULT.Rows + Private FOTO() As Byte = records(RESULT.Columns.get("CAT_CL_FOTO")) + Private CLIENTE As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) + Private fecha As String = records(RESULT.Columns.Get("CAT_CL_FOTO_FECHA")) + Starter.skmt.ExecNonQuery($"DELETE from FOTOS where CLIENTE = '${CLIENTE}'"$) + Starter.skmt.ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,FECHA) VALUES (?,?,?)", Array As Object (CLIENTE,FOTO,fecha)) + Next + End If + End If + + If Job.JobName = "DBRequest" Then + Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) + If RESULT.Tag.As(String).Contains("traecodigos") Then 'query tag + For Each records() As Object In RESULT.Rows + Private CODIGOCREDITO As String = records(RESULT.Columns.get("CAT_CL_CLABE")) + Private BANDERACREDITO As String = records(RESULT.Columns.Get("CAT_CL_CTA")) + Private CLIENTECREDITO As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) + + If l_ruta.Text = "0" Then + Starter.skmt.ExecNonQuery2("INSERT INTO CODIGOS_CREDITO(CODIGO,BANDERA,CLIENTE) VALUES (?,?,?)", Array As Object (CODIGOCREDITO,BANDERACREDITO,CLIENTECREDITO)) + Else + Private hdsgf As Cursor = Starter.skmt.ExecQuery($"SELECT * FROM CODIGOS_CREDITO where CODIGO = '${CODIGOCREDITO}' and BANDERA = '${BANDERACREDITO}' and CLIENTE = '${CLIENTECREDITO}' "$$) + If hdsgf.RowCount = 0 Then + Starter.skmt.ExecNonQuery2("INSERT INTO CODIGOS_CREDITO(CODIGO,BANDERA,CLIENTE) VALUES (?,?)", Array As Object (CODIGOCREDITO,BANDERACREDITO,CLIENTECREDITO)) + Else + Log("NO ENTRO") + End If + End If + + Next + End If + End If + + + If Job.JobName = "DBRequest" Then Dim RESULT As DBResult = B4XPages.MainPage.reqManager.HandleJob(Job) If RESULT.Tag = "kmt_datos" Then 'query tag @@ -1666,7 +1824,7 @@ Sub JobDone(Job As HttpJob) Dim CAT_CL_CLASIFICADOR4 As String = records(RESULT.Columns.Get("CAT_CL_CLASIFICADOR4")) Dim CAT_CL_CLASIFICADOR3 As String = records(RESULT.Columns.Get("CAT_CL_CLASIFICADOR3")) Dim CAT_CL_CLASIFICADOR2 As String = records(RESULT.Columns.Get("CAT_CL_CLASIFICADOR2")) -' Dim CAT_CL_FOTO_FECHA As String = records(RESULT.Columns.Get("CAT_CL_FOTO_FECHA")) + '########################## INICIA CODIGO PARA CREDITOS #################### Dim CAT_CL_BCREDITO As String = records(RESULT.Columns.Get("CAT_CL_BCREDITO")) @@ -2065,10 +2223,12 @@ Sub JobDone(Job As HttpJob) 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_LISTAPRECIO As String = records(RESULT.Columns.Get("CAT_LISTAPRECIO")) + Dim CAT_GP_CONVERSION3 As String = records(RESULT.Columns.Get("CAT_GP_CONVERSION3")) + Dim CAT_GP_CONVERSION2 As String = records(RESULT.Columns.Get("CAT_GP_CONVERSION2")) ' Dim CAT_LISTAPRECIO As Int = 10 ' 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)) - B4XPages.MainPage.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_TIPOPROD,CAT_GP_INICIATIVA,CAT_LISTAPRECIO, 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_TIPOPROD, CAT_GP_INICIATIVA,CAT_LISTAPRECIO,CAT_GP_DEV)) + B4XPages.MainPage.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_TIPOPROD,CAT_GP_INICIATIVA,CAT_LISTAPRECIO, CAT_GP_DEV, CAT_GP_CONVERSION3,CAT_GP_CONVERSION2) 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_LISTAPRECIO,CAT_GP_DEV,CAT_GP_CONVERSION3,CAT_GP_CONVERSION2)) Next Listo2=1 If PB2.Progress = 0 Then @@ -2553,6 +2713,43 @@ Sub JobDone(Job As HttpJob) Job.Release End Sub +Private Sub connecta_LongClick + ' CLIENTES NUEVOS +' Dim fotocn() As Byte +' Dim Dirp As String = File.DirInternal +' Dim Dir As String +' Dim Dir2 As String +' Dir = "/promotoriakmts" + + c=Starter.skmt.ExecQuery("SELECT CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS") + If c.RowCount>0 Then + For i = 0 To c.RowCount - 1 + c.Position = i + Dim dia As Int = DateTime.GetDayOfWeek(DateTime.Now) + If dia = 2 Then + Dim dialetra As String = "LUNES" + Else If dia = 3 Then + Dim dialetra As String = "MARTES" + Else If dia = 4 Then + Dim dialetra As String = "MIERCOLES" + Else If dia = 5 Then + Dim dialetra As String = "JUEVES" + Else If dia = 6 Then + Dim dialetra As String = "VIERNES" + Else If dia = 7 Then + Dim dialetra As String = "SABADO" + End If + Dim cmd As DBCommand + cmd.Initialize + cmd.Name = "insert_clientesnuevos_GUNA" + Log(c.GetString("CN_ID")&" ,"& c.GetString("CN_FECHA")&" ,"& c.GetString("CN_USER")&" ,"& c.GetString("CN_LAT")&" ,"& c.GetString("CN_LON")&" ,"& c.GetString("CN_NOMBRE")&" ,"& c.GetString("CN_DIRECCION")&" ,"&ALMACEN& c.GetString("CN_RUTA")&" ,"& "En espera"&c.GetString("CN_GIRO")&" ,"&dialetra& c.GetString("CN_SOLICITA")&" ,"& c.GetString("CN_COLONIA")&" ,"& c.GetString("CN_TELEFONO")) + cmd.Parameters = Array As Object(c.GetString("CN_ID"), c.GetString("CN_FECHA"), c.GetString("CN_USER"), c.GetString("CN_LAT"), c.GetString("CN_LON"), c.GetString("CN_NOMBRE"), c.GetString("CN_DIRECCION"),ALMACEN, c.GetString("CN_RUTA"), "En espera",c.GetString("CN_GIRO"),dialetra, c.GetString("CN_SOLICITA"), c.GetString("CN_COLONIA"), c.GetString("CN_TELEFONO"), c.GetString("CN_CP")) + B4XPages.MainPage.reqManager.ExecuteCommand(cmd , "inst_clientesn") + Next + End If + c.Close +End Sub + Private Sub B4XPage_CloseRequest As ResumableSub 'Return True to close, False to cancel If SCROLL_RESDIA.Visible Then @@ -2681,6 +2878,8 @@ Log("--------> BORRAMOS") B4XPages.MainPage.skmt.ExecNonQuery("delete from PLAN_LEALTAD") B4XPages.MainPage.skmt.ExecNonQuery("delete from clie_act") B4XPages.MainPage.skmt.ExecNonQuery("delete from kmt_info3") + B4XPages.MainPage.skmt.ExecNonQuery("DELETE FROM CLIENTES_NUEVOS") + Starter.skmt.ExecNonQuery("delete from CAT_GIRO") B4XPages.MainPage.skmt.ExecNonQuery("delete from cat_gunaprod") B4XPages.MainPage.skmt.ExecNonQuery("delete from cat_gunaprod2") B4XPages.MainPage.skmt.ExecNonQuery("delete from CAT_DETALLES_PAQ") @@ -2690,6 +2889,7 @@ Log("--------> BORRAMOS") B4XPages.MainPage.skmt.ExecNonQuery("DELETE FROM HIST_ENCUESTA2") B4XPages.MainPage.skmt.ExecNonQuery("DELETE FROM HIST_STAY_OUT") B4XPages.MainPage.skmt.ExecNonQuery("DELETE FROM HIST_GPS") + B4XPages.MainPage.skmt.ExecNonQuery("DELETE from CODIGOS_CREDITO") B4XPages.MainPage.skmt.ExecNonQuery("DELETE FROM HIST_FACE") B4XPages.MainPage.skmt.ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)") B4XPages.MainPage.skmt.ExecNonQuery("DELETE FROM HIST_CODIGO_BARRAS") @@ -2859,6 +3059,10 @@ Sub B_OK_PAS_Click connecta.Visible=True Resumen.Visible= True img2.Visible=False + l_visitartotal.Visible = True + de.Visible = True + l_faltan.Visible = True + l_visitas.Visible = True ' Subs.panelVisible(p_principal, 0, 0) ExitApplication End If @@ -2875,8 +3079,20 @@ Sub B_OK_PAS_Click Label4.Visible = True l_ruta.Visible = True + l_visitartotal.Visible = True + de.Visible = True + l_faltan.Visible = True + l_visitas.Visible = True B4XPage_Appear ' Subs.panelVisible(p_principal, 0, 0) + Dim cn As Cursor = Starter.skmt.ExecQuery("SELECT * FROM CLIENTES_NUEVOS") + If cn.RowCount > 0 Then + For gh = 0 To cn.RowCount -1 + cn.Position = gh + Starter.skmt.ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?) ", Array As Object (cn.GetString("CN_ID"),cn.GetString("CN_RUTA"), cn.GetString("CN_NOMBRE"),"null","null","null","null","null","null","null","null","null","null","null","null","null",cn.GetString("CN_LON"),cn.GetString("CN_LAT"), cn.GetString("CN_GIRO"))) + Next + End If + B4XPages.MainPage.skmt.ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?", Array As String("CARGA_DIA")) B4XPages.MainPage.skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)", Array As Object ("CARGA_DIA",1)) If E_RUTA2.Visible = True Then @@ -3272,6 +3488,152 @@ Sub resdia_Click l_monto_c3.Text = 1000 End If d.Close + + + ''INICIO NUEVO RES DIA + + Private s3 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select distinct(pe_cliente) FROM PEDIDO") + + If s3.RowCount > 0 Then + Private total1 As String = 0 + For i = 0 To s3.RowCount - 1 + s3.Position = i +' LogColor($"Total antes ${total1}"$, Colors.blue) + total1 = total1 + Subs.calculaTotalConPromoXRango(s3.GetString("PE_CLIENTE")) +' LogColor(Subs.calculaTotalConPromoXRango(s3.GetString("PE_CLIENTE")), Colors.Magenta) +' LogColor($"Total despues ${total1}"$, Colors.blue) + Next + L_REAL.Text = NumberFormat2( total1,0,2,2,False) + Else + L_REAL.Text = 0 + End If + + + Private s5 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select distinct(pe_cliente) FROM PEDIDO") + + If s5.RowCount > 0 Then + Private total4 As String = 0 + For i = 0 To s5.RowCount - 1 + s5.Position = i +' LogColor($"Total antes ${total1}"$, Colors.blue) + total4 = total4 + Subs.calculaTotalConPromoXRango1(s5.GetString("PE_CLIENTE")) +' LogColor(Subs.calculaTotalConPromoXRango(s5.GetString("PE_CLIENTE")), Colors.Magenta) +' LogColor($"Total despues ${total1}"$, Colors.blue) + Next + l_preacordada.Text = NumberFormat2(total4,0,2,2,False) + Else + l_preacordada.Text = 0 + End If + + Private s6 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select distinct(pe_cliente) FROM PEDIDO") + + If s6.RowCount > 0 Then + Private total3 As String = 0 + For i = 0 To s6.RowCount - 1 + s6.Position = i +' LogColor($"Total antes ${total1}"$, Colors.blue) + total3 = total3 + Subs.calculaTotalConPromoXRango2(s6.GetString("PE_CLIENTE")) +' LogColor(Subs.calculaTotalConPromoXRango(s6.GetString("PE_CLIENTE")), Colors.Magenta) +' LogColor($"Total despues ${total1}"$, Colors.blue) + Next + l_prevtotal.Text = NumberFormat2(total3,0,2,2,False) + Else + l_prevtotal.Text = 0 + End If + + + Private s7 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select Ifnull(SUM(PE_CANT),0) AS PE_CANT, PE_PROID FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO') GROUP BY PE_PROID") + If s7.RowCount > 0 Then + Dim totalstick As Int = 0 + For sfsdf = 0 To s7.RowCount -1 + s7.Position= sfsdf + Log("ENTRE AQUI") + Dim s8 As Cursor = B4XPages.MainPage.skmt.ExecQuery($"SELECT CAT_GP_CONVERSION3 FROM CAT_GUNAPROD WHERE CAT_GP_ID = '${s7.GetString("PE_PROID")}'"$) + s8.Position = 0 + totalstick = totalstick + (s7.GetString("PE_CANT")* s8.GetString("CAT_GP_CONVERSION3")) + Next + Dim totaltotaltot As Int = totalstick/200 + l_ru_pri.Text = totaltotaltot + Else + l_ru_pri.Text = 0 + End If + + Private s0 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP')") + If s0.RowCount > 0 Then + + s0.Position = 0 + Log(s0.GetString("PE_CANT")) + L_REAL.Text = s0.GetString("PE_CANT") + Else + L_REAL.Text = 0 + End If + + L_NES.Text = 0 + l_ru_sup.Text = 0 + L_ALCANCE.Text = 0 + L_VPLAN.Text = 0 + L_VREAL.Text = 0 + L_EFEC_VIS.Text = 0 + L_VISITCC.Text = 0 + L_EFEC_PV.Text = 0 + L_EFEC_PURA.Text = 0 + l_preventa.Text = 0 + l_futura.Text = 0 + Label13.Text = 0 + Label19.Text = 0 + Label21.Text = 0 + + + Private s0 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select count(distinct(PE_CLIENTE)) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO')") + If s0.RowCount > 0 Then + s0.Position = 0 + Log(s0.GetString("PE_CANT")) + Label33.Text = s0.GetString("PE_CANT") + Else + Label33.Text = 0 + End If + + Private s5 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select distinct(pe_cliente) FROM PEDIDO") + + If s5.RowCount > 0 Then + Private total4 As String = 0 + For i = 0 To s5.RowCount - 1 + s5.Position = i +' LogColor($"Total antes ${total1}"$, Colors.blue) + total4 = total4 + Subs.calculaTotalConPromoXRango5(s5.GetString("PE_CLIENTE")) +' LogColor(Subs.calculaTotalConPromoXRango(s5.GetString("PE_CLIENTE")), Colors.Magenta) +' LogColor($"Total despues ${total1}"$, Colors.blue) + Next + Label35.Text = NumberFormat2(total4,0,2,2,False) + Else + Label35.Text = 0 + End If + + Private s0 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select count(distinct(PE_CLIENTE)) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP')") + If s0.RowCount > 0 Then + s0.Position = 0 + Log(s0.GetString("PE_CANT")) + Label43.Text = s0.GetString("PE_CANT") + Else + Label43.Text = 0 + End If + + Private s5 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select distinct(pe_cliente) FROM PEDIDO") + + If s5.RowCount > 0 Then + Private total4 As String = 0 + For i = 0 To s5.RowCount - 1 + s5.Position = i +' LogColor($"Total antes ${total1}"$, Colors.blue) + total4 = total4 + Subs.calculaTotalConPromoXRango6(s5.GetString("PE_CLIENTE")) +' LogColor(Subs.calculaTotalConPromoXRango(s5.GetString("PE_CLIENTE")), Colors.Magenta) +' LogColor($"Total despues ${total1}"$, Colors.blue) + Next + Label51.Text = NumberFormat2(total4,0,2,2,False) + Else + Label51.Text = 0 + End If + End Sub Sub hacer_ped_Click @@ -3550,4 +3912,21 @@ Sub checaPedido Next End If -End Sub \ No newline at end of file +End Sub + +'Private Sub connecta_LongClick +' ' UPDATE VENTA CREDITO +' '' UPDATE GUNA.CAT_CLIENTES SET CAT_CL_CTA = (?) WHERE cat_cl_codigo = (?) AND CAT_CL_IDALMACEN = (?) AND CAT_CL_RUTA = (?) +' c=B4XPages.MainPage.skmt.ExecQuery("Select * from CODIGOS_CREDITO where BANDERA = 1") +' If c.RowCount>0 Then +' For i=0 To c.RowCount -1 +' c.Position=i +' Dim cmd As DBCommand +' cmd.Initialize +' cmd.Name = "update_ventacredito_guna" +' cmd.Parameters = Array As Object(C.GetString("BANDERA"),C.GetString("CLIENTE"),ALMACEN,Subs.traeRuta2(C.GetString("CLIENTE"))) +' B4XPages.MainPage.reqManager.ExecuteCommand(cmd , "up_CREDITO") +' Next +' End If +' c.Close +'End Sub \ No newline at end of file diff --git a/B4A/C_Productos.bas b/B4A/C_Productos.bas index 574ca7d..472b5e7 100644 --- a/B4A/C_Productos.bas +++ b/B4A/C_Productos.bas @@ -9,7 +9,7 @@ Sub Class_Globals Private xui As XUI 'ignore Dim ruta As String Dim q_buscar As String - Dim forzarBusqueda As Boolean = False + Dim forzarBusqueda As Boolean = False Dim skmt As SQL Dim c As Cursor Dim c2 As Cursor @@ -1761,7 +1761,11 @@ Sub Busca_TextChanged (Old As String, New As String) listaHints.Initialize Sleep(0) ' Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD from ${Starter.tabla} where CAT_GP_NOMBRE like '%${New}%' and CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_CLASIF <> 'PROMOS' order by CAT_GP_NOMBRE"$) - Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%${New}%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' AND CAT_GP_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"$) +' If Subs.traeTipoCliente = 4 Then +' Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_LISTAPRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%${New}%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' AND CAT_GP_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"$) +' Else + Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%${New}%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' AND CAT_GP_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"$) +' End If Log("Llamamos LlenaProdsLL") LlenaProdsLL(p) ' Do While p.NextRow @@ -1820,8 +1824,27 @@ Sub LlenaProdsLL(p As ResultSet) ' Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' union all select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD from ${Starter.tabla} LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2"$) - If Subs.traeTipoCliente = 4 Then - Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from ${Subs.traeTablaProds(tipo_venta)} where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION' +' If Subs.traeTipoCliente = 4 Then +' Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from ${Subs.traeTablaProds(tipo_venta)} where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION' +' order by +' Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0 +' WHEN 'ESTRATEGICO' THEN 1 +' WHEN 'COMPLEMENTARIO' then 2 +' Else 3 +' End, CAT_GP_NOMBRE"$) +' Else +' Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from ${Subs.traeTablaProds(tipo_venta)} where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION' +' order by +' Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0 +' WHEN 'ESTRATEGICO' THEN 1 +' WHEN 'COMPLEMENTARIO' then 2 +' Else 3 +' End, CAT_GP_NOMBRE"$) +' End If + + + If Subs.traeTipoCliente = 5 Then + Dim p As ResultSet = B4XPages.MainPage.skmt.ExecQuery($"select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_LISTAPRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from ${Subs.traeTablaProds(tipo_venta)} where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION' order by Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0 WHEN 'ESTRATEGICO' THEN 1 @@ -1862,13 +1885,13 @@ Sub LlenaProdsLL(p As ResultSet) Log(p.GetString("CAT_GP_ID")) cant = cantsMap.Get(p.GetString("CAT_GP_ID")) End If - If Subs.traeTipoCliente = 4 Then + If Subs.traeTipoCliente = 5 Then If p.GetString("CAT_GP_ID") <> "GUN141" And p.GetString("CAT_GP_ID") <> "GUN142" Then ' Log(p.GetString("CAT_GP_NOMBRE")) ' ¡Importante! Crear un NUEVO mapa en cada iteración. Dim tempMap As Map = CreateMap( _ "prod": p.GetString("CAT_GP_NOMBRE"), _ - "precio": p.GetString("CAT_GP_PRECIO"), _ + "precio": p.GetString("CAT_LISTAPRECIO"), _ "prioridad": p.GetString("CAT_GP_TIPOPROD"), _ "almacen": p.GetString("CAT_GP_ALMACEN"), _ "id": p.GetString("CAT_GP_ID"), _ diff --git a/B4A/C_TicketsDia.bas b/B4A/C_TicketsDia.bas index c72b4e3..bb658f8 100644 --- a/B4A/C_TicketsDia.bas +++ b/B4A/C_TicketsDia.bas @@ -8,6 +8,7 @@ Sub Class_Globals Private Root As B4XView 'ignore Private xui As XUI 'ignore Private p_ticketsdia As Panel + Dim c As Cursor Dim S As Cursor Dim ruta As String diff --git a/B4A/Files/cliente.bal b/B4A/Files/cliente.bal index 9a8f426..cea610f 100644 Binary files a/B4A/Files/cliente.bal and b/B4A/Files/cliente.bal differ diff --git a/B4A/Files/nuevocliente.bal b/B4A/Files/nuevocliente.bal index e351d0b..f6e8bf1 100644 Binary files a/B4A/Files/nuevocliente.bal and b/B4A/Files/nuevocliente.bal differ diff --git a/B4A/Files/nuevocliente__.bal b/B4A/Files/nuevocliente__.bal new file mode 100644 index 0000000..e351d0b Binary files /dev/null and b/B4A/Files/nuevocliente__.bal differ diff --git a/B4A/Files/principal.bal b/B4A/Files/principal.bal index d935fb0..bb78c38 100644 Binary files a/B4A/Files/principal.bal and b/B4A/Files/principal.bal differ diff --git a/B4A/Files/resdia.bal b/B4A/Files/resdia.bal index 865313a..b178abb 100644 Binary files a/B4A/Files/resdia.bal and b/B4A/Files/resdia.bal differ diff --git a/B4A/Guna Vistas V3.1.b4a b/B4A/Guna Vistas V3.1.b4a index ec3e98d..f74ab0b 100644 --- a/B4A/Guna Vistas V3.1.b4a +++ b/B4A/Guna Vistas V3.1.b4a @@ -294,7 +294,7 @@ Version=12.8 #Region Project Attributes #ApplicationLabel: Guna Preventa #VersionCode: 1 - #VersionName: 6.01.25 + #VersionName: 6.02.10 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: portrait #CanInstallToExternalStorage: False diff --git a/B4A/Guna Vistas V3.1.b4a.meta b/B4A/Guna Vistas V3.1.b4a.meta index e3d2efc..a98e18b 100644 --- a/B4A/Guna Vistas V3.1.b4a.meta +++ b/B4A/Guna Vistas V3.1.b4a.meta @@ -23,7 +23,7 @@ ModuleBookmarks28= ModuleBookmarks29= ModuleBookmarks3= ModuleBookmarks4= -ModuleBookmarks5= +ModuleBookmarks5=7747 ModuleBookmarks6= ModuleBookmarks7= ModuleBookmarks8= @@ -83,11 +83,11 @@ ModuleClosedNodes28= ModuleClosedNodes29=20 ModuleClosedNodes3= ModuleClosedNodes4= -ModuleClosedNodes5=3 +ModuleClosedNodes5= ModuleClosedNodes6= ModuleClosedNodes7=6,8,9,10,11 ModuleClosedNodes8= ModuleClosedNodes9= -NavigationStack=C_NuevoCliente,Class_Globals,0,0,C_Pedidos,Class_Globals,0,0,C_Principal,JobDone,1472,0,C_Principal,NUEVO_Click,2946,0,C_Principal,nvo_cliente_Click,3274,0,C_Principal,p_marcasRes_Click,3475,0,C_Productos,Class_Globals,5,0,C_TicketsDia,Class_Globals,3,0,C_UpdateAvailable,Class_Globals,0,0,Subs,logJobDoneResultados,2423,0,B4XMainPage,Class_Globals,17,0 +NavigationStack=C_Cliente,B_IMP_Click,3187,0,C_Principal,Class_Globals,0,0,Diseñador Visual,principal.bal,-100,3,Diseñador Visual,cliente.bal,-100,1,C_Principal,checaPedido,3865,0,C_Principal,connecta_LongClick,2743,0,C_Cliente,p_telefono_Click,7995,0,C_Cliente,Mandap,3510,0,C_Cliente,Impresion4,3215,6,C_Cliente,Impresion5,3666,0 SelectedBuild=0 -VisibleModules=27,2,16,28,5,13,17,19,4,1,3,6,7,8,9,10,11,12,14,15,18,20,21,22,23,24,25,26,29 +VisibleModules=27,2,16,28,5,13,17,19,4,1 diff --git a/B4A/Objects/AndroidManifest.xml b/B4A/Objects/AndroidManifest.xml new file mode 100644 index 0000000..c30ab2d --- /dev/null +++ b/B4A/Objects/AndroidManifest.xml @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/B4A/Objects/AppGunaBat.apk b/B4A/Objects/AppGunaBat.apk new file mode 100644 index 0000000..2c566ad Binary files /dev/null and b/B4A/Objects/AppGunaBat.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/pclvseekbar.bal b/B4A/Objects/b4xlibs/Files/pclvseekbar.bal new file mode 100644 index 0000000..0dac6e1 Binary files /dev/null and b/B4A/Objects/b4xlibs/Files/pclvseekbar.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..f75788e 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..7f120f2 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..2b466f4 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..15677e8 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..d78eba4 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..fb09322 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..e46c2f4 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..77fa95a 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..5c6ea24 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..760bfcc 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..42e8bdc 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..70c339c 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..88928f2 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..5dbb871 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..e93cc8d 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..5682326 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..1128a50 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..d73d281 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..113228f 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..526d71c 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..73a2d81 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..7f5da05 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..2fe1ea3 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..0f3fdb4 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..faf752b 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..35749fa 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..1476872 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..03e3fa6 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..7094392 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..0d0a449 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..c71601e 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..0644676 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..e01920b 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..07f6e66 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..89f9121 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..242ce41 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..d4cb35f 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..7f4f7e5 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..1d1baba 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..aa80ed7 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..e0552c0 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..5210548 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..65fcde2 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..6ae1e0a 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..7c6272d 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..4c031c2 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..28476ae 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..cbb89d0 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..dd750b5 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..e49a841 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..7dc09b1 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..3e53485 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..421ca7d 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..9a0bffa 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..f1d75a9 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..88dddac 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..7f3bcb4 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..7678665 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..2656f3b 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..39ae3d5 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..407b73f 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..5c66629 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..716d6bc 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..7461c2c 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..fa0d328 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..920e8c7 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..bca8290 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..cdbd779 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..ebf3a67 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..11b9495 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..f2f630b 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..a69702d 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..626766e 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..45410d5 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..3dc72f1 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..9dc4654 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..67f1e44 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..e77d9ec 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..81038d4 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..d54f7aa 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..35849df 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..3a723ec 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..f26f18d 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..5659c09 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..dfea870 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..72a6718 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..c36c9f9 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..39ce918 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..b63612e 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..dc88892 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..89963cf 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..e95de95 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..443b6a8 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..afa976f 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..586e005 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..73189b3 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..d918e1f 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..913e740 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..d7c590b 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..b844214 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..3271ea2 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..ab82139 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..6dd5cdb 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..3d49e52 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..53feaf7 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..65473b5 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..37d784a 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..7bb1c1f 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..aabb976 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..1874012 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..14b01c6 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..c489c89 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..97bc3ea 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..d6eceb1 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..889d297 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..4bf17aa 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..9f6e34b 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/com/google/firebase/messaging/R$anim.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$anim.class new file mode 100644 index 0000000..150f18f Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$anim.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$attr.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$attr.class new file mode 100644 index 0000000..f842106 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$attr.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$color.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$color.class new file mode 100644 index 0000000..cca0ea9 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$color.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$dimen.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$dimen.class new file mode 100644 index 0000000..a43c428 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$dimen.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$drawable.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$drawable.class new file mode 100644 index 0000000..ae992a0 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$drawable.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$id.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$id.class new file mode 100644 index 0000000..e99eeb2 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$id.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$integer.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$integer.class new file mode 100644 index 0000000..b371e09 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$integer.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$layout.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$layout.class new file mode 100644 index 0000000..296eb51 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$layout.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$string.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$string.class new file mode 100644 index 0000000..8593d4f Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$string.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$style.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$style.class new file mode 100644 index 0000000..1a5faf1 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$style.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$styleable.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$styleable.class new file mode 100644 index 0000000..8c880b8 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$styleable.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R$xml.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$xml.class new file mode 100644 index 0000000..1d6f6c7 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R$xml.class differ diff --git a/B4A/Objects/bin/classes/com/google/firebase/messaging/R.class b/B4A/Objects/bin/classes/com/google/firebase/messaging/R.class new file mode 100644 index 0000000..adfe979 Binary files /dev/null and b/B4A/Objects/bin/classes/com/google/firebase/messaging/R.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/Manifest$permission.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/Manifest$permission.class new file mode 100644 index 0000000..01ffadc Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/Manifest$permission.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/Manifest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/Manifest.class new file mode 100644 index 0000000..a2788b4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/Manifest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$anim.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$anim.class new file mode 100644 index 0000000..d638975 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$anim.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$attr.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$attr.class new file mode 100644 index 0000000..7158618 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$attr.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$color.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$color.class new file mode 100644 index 0000000..c60ace0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$color.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$dimen.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$dimen.class new file mode 100644 index 0000000..0233c5e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$dimen.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$drawable.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$drawable.class new file mode 100644 index 0000000..2389f29 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$drawable.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$id.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$id.class new file mode 100644 index 0000000..41885ee Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$id.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$integer.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$integer.class new file mode 100644 index 0000000..05ec6b0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$integer.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$layout.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$layout.class new file mode 100644 index 0000000..b71eb5c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$layout.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$string.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$string.class new file mode 100644 index 0000000..538ab5e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$string.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$style.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$style.class new file mode 100644 index 0000000..0381ba3 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$style.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$styleable.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$styleable.class new file mode 100644 index 0000000..6221a3d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$styleable.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$xml.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$xml.class new file mode 100644 index 0000000..b544e41 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R$xml.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R.class new file mode 100644 index 0000000..253a3cc Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/R.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/animatedcounter.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/animatedcounter.class new file mode 100644 index 0000000..2027a44 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/animatedcounter.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/anotherprogressbar$ResumableSub_BusyLoop.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/anotherprogressbar$ResumableSub_BusyLoop.class new file mode 100644 index 0000000..033c1c6 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/anotherprogressbar$ResumableSub_BusyLoop.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/anotherprogressbar.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/anotherprogressbar.class new file mode 100644 index 0000000..e7bcca8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/anotherprogressbar.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$1.class new file mode 100644 index 0000000..234c826 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$2.class new file mode 100644 index 0000000..bbe4a86 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$ResumableSub_Service_Start.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$ResumableSub_Service_Start.class new file mode 100644 index 0000000..647734a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$ResumableSub_Service_Start.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$ResumableSub_download_newApk.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$ResumableSub_download_newApk.class new file mode 100644 index 0000000..093c793 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$ResumableSub_download_newApk.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$_mnewversion.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$_mnewversion.class new file mode 100644 index 0000000..37f78a9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$_mnewversion.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$appupdater_BR.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$appupdater_BR.class new file mode 100644 index 0000000..cd56f78 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater$appupdater_BR.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater.class new file mode 100644 index 0000000..7f119c4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/appupdater.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbitset.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbitset.class new file mode 100644 index 0000000..9393611 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbitset.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb.class new file mode 100644 index 0000000..bb9baa9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder.class new file mode 100644 index 0000000..1b50405 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcache$_b4xcacheitem.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcache$_b4xcacheitem.class new file mode 100644 index 0000000..e97f207 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcache$_b4xcacheitem.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcache.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcache.class new file mode 100644 index 0000000..155501c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcache.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcollections.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcollections.class new file mode 100644 index 0000000..c46b01c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcollections.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate$ResumableSub_Show.class new file mode 100644 index 0000000..eb97b11 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate$_colorpickerpart.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate$_colorpickerpart.class new file mode 100644 index 0000000..b198dfa Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate$_colorpickerpart.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate.class new file mode 100644 index 0000000..582af3b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcombobox$ResumableSub_RaiseEvent.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcombobox$ResumableSub_RaiseEvent.class new file mode 100644 index 0000000..a1ae371 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcombobox$ResumableSub_RaiseEvent.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcombobox.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcombobox.class new file mode 100644 index 0000000..8c419e2 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcombobox.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort.class new file mode 100644 index 0000000..bdfbdaf Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate$ResumableSub_Show.class new file mode 100644 index 0000000..bdc32df Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate.class new file mode 100644 index 0000000..ba5ef7b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_Show.class new file mode 100644 index 0000000..75e6394 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowCustom.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowCustom.class new file mode 100644 index 0000000..a4b0ee9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowCustom.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowTemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowTemplate.class new file mode 100644 index 0000000..310d2e5 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowTemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog.class new file mode 100644 index 0000000..50bcd93 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xdialog.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class new file mode 100644 index 0000000..74cdb71 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield.class new file mode 100644 index 0000000..f1dc18e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xformatter$_b4xformatdata.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xformatter$_b4xformatdata.class new file mode 100644 index 0000000..a6adc38 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xformatter$_b4xformatdata.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xformatter.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xformatter.class new file mode 100644 index 0000000..eb11528 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xformatter.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4ximageview.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4ximageview.class new file mode 100644 index 0000000..aae33cd Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4ximageview.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate$ResumableSub_Show.class new file mode 100644 index 0000000..a9af7d6 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate.class new file mode 100644 index 0000000..4ea3dd0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate$ResumableSub_Show.class new file mode 100644 index 0000000..f4e5226 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate.class new file mode 100644 index 0000000..291ce8e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator$ResumableSub_MainLoop.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator$ResumableSub_MainLoop.class new file mode 100644 index 0000000..af0b73d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator$ResumableSub_MainLoop.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator.class new file mode 100644 index 0000000..1aaa75c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate.class new file mode 100644 index 0000000..1d46e4c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..8a3fdaf Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..61c7356 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_b_envioBD_Click.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_b_envioBD_Click.class new file mode 100644 index 0000000..12e8500 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_b_envioBD_Click.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_copiaDB.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_copiaDB.class new file mode 100644 index 0000000..31c00b0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_copiaDB.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_revisaActualizacion.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_revisaActualizacion.class new file mode 100644 index 0000000..6f56952 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_revisaActualizacion.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage.class new file mode 100644 index 0000000..7801aa8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xmainpage.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xorderedmap.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xorderedmap.class new file mode 100644 index 0000000..905679a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xorderedmap.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpages.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpages.class new file mode 100644 index 0000000..d37c408 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpages.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator.class new file mode 100644 index 0000000..1509289 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$PagesMenuListener.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$PagesMenuListener.class new file mode 100644 index 0000000..f9ae1c0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$PagesMenuListener.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$ResumableSub_HandleCloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$ResumableSub_HandleCloseRequest.class new file mode 100644 index 0000000..c3d5bf4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$ResumableSub_HandleCloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4amenuitem.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4amenuitem.class new file mode 100644 index 0000000..d4d4250 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4amenuitem.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageinfo.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageinfo.class new file mode 100644 index 0000000..0299ddd Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageinfo.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageparent.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageparent.class new file mode 100644 index 0000000..9a0d75b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageparent.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager.class new file mode 100644 index 0000000..f06eafb Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xplusminus$ResumableSub_StartDownLoop.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xplusminus$ResumableSub_StartDownLoop.class new file mode 100644 index 0000000..e9ea894 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xplusminus$ResumableSub_StartDownLoop.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xplusminus.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xplusminus.class new file mode 100644 index 0000000..78a10c5 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xplusminus.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xradiobutton$ResumableSub_SetValueImpl.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xradiobutton$ResumableSub_SetValueImpl.class new file mode 100644 index 0000000..7c63d58 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xradiobutton$ResumableSub_SetValueImpl.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xradiobutton.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xradiobutton.class new file mode 100644 index 0000000..e6217f9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xradiobutton.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate$ResumableSub_Show.class new file mode 100644 index 0000000..be6cbd9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate.class new file mode 100644 index 0000000..affe941 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xseekbar.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xseekbar.class new file mode 100644 index 0000000..069f553 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xseekbar.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xset.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xset.class new file mode 100644 index 0000000..74b717d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xset.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate.class new file mode 100644 index 0000000..d3d6dea Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xswitch$ResumableSub_SetValueImpl.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xswitch$ResumableSub_SetValueImpl.class new file mode 100644 index 0000000..ef15bf5 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xswitch$ResumableSub_SetValueImpl.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xswitch.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xswitch.class new file mode 100644 index 0000000..bbf7d1d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xswitch.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate$ResumableSub_Show.class new file mode 100644 index 0000000..d576f73 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate.class new file mode 100644 index 0000000..6572ad4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/batteryutilities.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/batteryutilities.class new file mode 100644 index 0000000..63e724f Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/batteryutilities.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_bitacora.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_bitacora.class new file mode 100644 index 0000000..16b9f86 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_bitacora.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..277d380 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..370bbd4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B_IMP_Click.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B_IMP_Click.class new file mode 100644 index 0000000..677a002 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_B_IMP_Click.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Cuestionario.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Cuestionario.class new file mode 100644 index 0000000..749549d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Cuestionario.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.class new file mode 100644 index 0000000..5577510 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.class new file mode 100644 index 0000000..8bfa7d9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion.class new file mode 100644 index 0000000..1b9ff1c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion2.class new file mode 100644 index 0000000..b3c8485 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion3.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion3.class new file mode 100644 index 0000000..0dbf8f4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion3.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion4.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion4.class new file mode 100644 index 0000000..2a94841 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion4.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion5.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion5.class new file mode 100644 index 0000000..57bcba4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion5.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_InitializeCamera2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_InitializeCamera2.class new file mode 100644 index 0000000..8665ce4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_InitializeCamera2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_MejorarPrecisionGPS.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_MejorarPrecisionGPS.class new file mode 100644 index 0000000..d3e4bda Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_MejorarPrecisionGPS.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_envioPDF_Click.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_envioPDF_Click.class new file mode 100644 index 0000000..fdc7764 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_envioPDF_Click.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_preventa2_Click.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_preventa2_Click.class new file mode 100644 index 0000000..c61cff2 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_preventa2_Click.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_enviaTicket.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_enviaTicket.class new file mode 100644 index 0000000..2c6241a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_enviaTicket.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_gest_Click.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_gest_Click.class new file mode 100644 index 0000000..3649fe7 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_gest_Click.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_mandaWAMsgCredito.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_mandaWAMsgCredito.class new file mode 100644 index 0000000..2d656eb Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_mandaWAMsgCredito.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_sc_result.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_sc_result.class new file mode 100644 index 0000000..2ed3159 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente$ResumableSub_sc_result.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente.class new file mode 100644 index 0000000..ec7d255 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cliente.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_clientes$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_clientes$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..d313ed2 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_clientes$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_clientes.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_clientes.class new file mode 100644 index 0000000..eb472fb Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_clientes.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cuestionario.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cuestionario.class new file mode 100644 index 0000000..620fe8f Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_cuestionario.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..e74faa0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico.class new file mode 100644 index 0000000..96d4aaa Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico2$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico2$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..d9c5774 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico2$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico2.class new file mode 100644 index 0000000..1584135 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historico2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historicobat.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historicobat.class new file mode 100644 index 0000000..108557a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_historicobat.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_mapas.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_mapas.class new file mode 100644 index 0000000..acc9528 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_mapas.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nota$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nota$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..48e925e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nota$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nota.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nota.class new file mode 100644 index 0000000..ce1086e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nota.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_noventa.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_noventa.class new file mode 100644 index 0000000..6633191 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_noventa.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nuevocliente$ResumableSub_B4XPage_Created.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nuevocliente$ResumableSub_B4XPage_Created.class new file mode 100644 index 0000000..efec594 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nuevocliente$ResumableSub_B4XPage_Created.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nuevocliente.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nuevocliente.class new file mode 100644 index 0000000..19d3ceb Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_nuevocliente.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_pedidos$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_pedidos$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..083b4c3 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_pedidos$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_pedidos.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_pedidos.class new file mode 100644 index 0000000..ba55603 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_pedidos.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..d3c0434 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$ResumableSub_connecta_Click.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$ResumableSub_connecta_Click.class new file mode 100644 index 0000000..690f588 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$ResumableSub_connecta_Click.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$_titledata.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$_titledata.class new file mode 100644 index 0000000..b97b054 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal$_titledata.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal.class new file mode 100644 index 0000000..b69a7f4 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_principal.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..e9e9a3f Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..154b8bf Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_Busca_TextChanged.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_Busca_TextChanged.class new file mode 100644 index 0000000..42d7668 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_Busca_TextChanged.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_lv_catalogos2_ItemClick.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_lv_catalogos2_ItemClick.class new file mode 100644 index 0000000..9782e0a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos$ResumableSub_lv_catalogos2_ItemClick.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos.class new file mode 100644 index 0000000..baa153d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_productos.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_promos.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_promos.class new file mode 100644 index 0000000..fdf8e06 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_promos.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_ticketsdia.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_ticketsdia.class new file mode 100644 index 0000000..75a27d7 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_ticketsdia.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_updateavailable$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_updateavailable$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..3eb1c74 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_updateavailable$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_updateavailable.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_updateavailable.class new file mode 100644 index 0000000..e368c4a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/c_updateavailable.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass$_camerainfoandid.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass$_camerainfoandid.class new file mode 100644 index 0000000..a60519d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass$_camerainfoandid.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass$_camerasize.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass$_camerasize.class new file mode 100644 index 0000000..124a67d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass$_camerasize.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass.class new file mode 100644 index 0000000..9c5a799 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cameraexclass.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_DownloadApk.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_DownloadApk.class new file mode 100644 index 0000000..e81335b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_DownloadApk.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_IsvalidWV.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_IsvalidWV.class new file mode 100644 index 0000000..9131ecd Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_IsvalidWV.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_ReadWebVN.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_ReadWebVN.class new file mode 100644 index 0000000..b065bdd Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_ReadWebVN.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_TryApkUpdate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_TryApkUpdate.class new file mode 100644 index 0000000..552cfee Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_TryApkUpdate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_UpdateApk.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_UpdateApk.class new file mode 100644 index 0000000..e488707 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_UpdateApk.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate.class new file mode 100644 index 0000000..9b41d3f Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cl_appupdate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfcontext.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfcontext.class new file mode 100644 index 0000000..34feea3 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfcontext.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdffontinfo.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdffontinfo.class new file mode 100644 index 0000000..f8f45b3 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdffontinfo.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfimageinfo.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfimageinfo.class new file mode 100644 index 0000000..59b480b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfimageinfo.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfmultilinetextsize.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfmultilinetextsize.class new file mode 100644 index 0000000..1150bf6 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfmultilinetextsize.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfpage.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfpage.class new file mode 100644 index 0000000..ca818d7 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdfpage.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdftextsize.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdftextsize.class new file mode 100644 index 0000000..f0b472c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf$_tpdftextsize.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf.class new file mode 100644 index 0000000..3836413 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/cpdf.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager$_dbcommand.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager$_dbcommand.class new file mode 100644 index 0000000..5bee4ba Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager$_dbcommand.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager$_dbresult.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager$_dbresult.class new file mode 100644 index 0000000..d5eeb8c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager$_dbresult.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager.class new file mode 100644 index 0000000..b40456b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/dbrequestmanager.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_celltitle.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_celltitle.class new file mode 100644 index 0000000..706c36d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_celltitle.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_cliente.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_cliente.class new file mode 100644 index 0000000..9840d7c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_cliente.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_clientes.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_clientes.class new file mode 100644 index 0000000..839e166 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_clientes.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_comis.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_comis.class new file mode 100644 index 0000000..1ba4c15 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_comis.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.class new file mode 100644 index 0000000..110a4e7 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.class new file mode 100644 index 0000000..a6dd986 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.class new file mode 100644 index 0000000..14d314f Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta.class new file mode 100644 index 0000000..8483d6e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.class new file mode 100644 index 0000000..a782244 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.class new file mode 100644 index 0000000..370307a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.class new file mode 100644 index 0000000..a16f421 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_errormanager.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_errormanager.class new file mode 100644 index 0000000..9ce00da Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_errormanager.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.class new file mode 100644 index 0000000..4fcb6ca Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_historicobat.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_historicobat.class new file mode 100644 index 0000000..c523334 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_historicobat.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.class new file mode 100644 index 0000000..957704a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.class new file mode 100644 index 0000000..50b5b03 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_login.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_login.class new file mode 100644 index 0000000..40cd5ff Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_login.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_mainpage.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_mainpage.class new file mode 100644 index 0000000..c928b8d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_mainpage.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.class new file mode 100644 index 0000000..05fff5b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_maparutas.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_maparutas.class new file mode 100644 index 0000000..6f19fc5 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_maparutas.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nota.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nota.class new file mode 100644 index 0000000..fb9aafa Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nota.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nota2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nota2.class new file mode 100644 index 0000000..2390089 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nota2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_noventa.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_noventa.class new file mode 100644 index 0000000..aacde64 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_noventa.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.class new file mode 100644 index 0000000..2ab6dd3 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.class new file mode 100644 index 0000000..6a33770 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_pedido.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_pedido.class new file mode 100644 index 0000000..74508a2 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_pedido.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_principal.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_principal.class new file mode 100644 index 0000000..b759443 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_principal.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem.class new file mode 100644 index 0000000..8c10750 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem1.class new file mode 100644 index 0000000..dd9f3fd Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem2.class new file mode 100644 index 0000000..8823e29 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_proditem2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_productos.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_productos.class new file mode 100644 index 0000000..c642dbf Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_productos.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_productos_.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_productos_.class new file mode 100644 index 0000000..2a6d01a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_productos_.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_promociones.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_promociones.class new file mode 100644 index 0000000..f812180 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_promociones.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_resdia.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_resdia.class new file mode 100644 index 0000000..9d62b4a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_resdia.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.class new file mode 100644 index 0000000..d8f1f62 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_seleccion.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_seleccion.class new file mode 100644 index 0000000..38f6a03 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_seleccion.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.class new file mode 100644 index 0000000..836ef31 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/escposprinter$_animage.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/escposprinter$_animage.class new file mode 100644 index 0000000..a65181a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/escposprinter$_animage.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/escposprinter.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/escposprinter.class new file mode 100644 index 0000000..bfd261a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/escposprinter.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/fileprovider.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/fileprovider.class new file mode 100644 index 0000000..fd9a8b9 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/fileprovider.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$1.class new file mode 100644 index 0000000..9a54edd Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$2.class new file mode 100644 index 0000000..0345651 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$ResumableSub_Service_Start.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$ResumableSub_Service_Start.class new file mode 100644 index 0000000..1e11533 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$ResumableSub_Service_Start.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$firebasemessaging_BR.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$firebasemessaging_BR.class new file mode 100644 index 0000000..86f2589 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging$firebasemessaging_BR.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging.class new file mode 100644 index 0000000..6090037 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/firebasemessaging.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httpjob$_multipartfiledata.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httpjob$_multipartfiledata.class new file mode 100644 index 0000000..a64258b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httpjob$_multipartfiledata.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httpjob.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httpjob.class new file mode 100644 index 0000000..59cbbd8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httpjob.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httputils2service.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httputils2service.class new file mode 100644 index 0000000..1e2f36f Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/httputils2service.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/madewithlove.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/madewithlove.class new file mode 100644 index 0000000..0662f9b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/madewithlove.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$1.class new file mode 100644 index 0000000..46b7136 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$B4AMenuItemsClickListener.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$B4AMenuItemsClickListener.class new file mode 100644 index 0000000..0d5fb42 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$B4AMenuItemsClickListener.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$HandleKeyDelayed.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$HandleKeyDelayed.class new file mode 100644 index 0000000..ee749e1 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$HandleKeyDelayed.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$ResumeMessage.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$ResumeMessage.class new file mode 100644 index 0000000..2edd22c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$ResumeMessage.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$WaitForLayout.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$WaitForLayout.class new file mode 100644 index 0000000..f11134c Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main$WaitForLayout.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main.class new file mode 100644 index 0000000..3e02e50 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/main.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$1.class new file mode 100644 index 0000000..186d654 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$B4AMenuItemsClickListener.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$B4AMenuItemsClickListener.class new file mode 100644 index 0000000..3d82d50 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$B4AMenuItemsClickListener.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$HandleKeyDelayed.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$HandleKeyDelayed.class new file mode 100644 index 0000000..866325e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$HandleKeyDelayed.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$ResumableSub_MapFragment1_Ready.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$ResumableSub_MapFragment1_Ready.class new file mode 100644 index 0000000..8123e3e Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$ResumableSub_MapFragment1_Ready.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$ResumeMessage.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$ResumeMessage.class new file mode 100644 index 0000000..8a13272 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$ResumeMessage.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$WaitForLayout.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$WaitForLayout.class new file mode 100644 index 0000000..3ab8493 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas$WaitForLayout.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas.class new file mode 100644 index 0000000..c412948 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/mapa_rutas.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$1.class new file mode 100644 index 0000000..046b637 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$2.class new file mode 100644 index 0000000..e0ea066 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$newinst2_BR.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$newinst2_BR.class new file mode 100644 index 0000000..45b92a8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2$newinst2_BR.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2.class new file mode 100644 index 0000000..03aad32 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/newinst2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.class new file mode 100644 index 0000000..570e1f5 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_ListChangedExternally.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_ListChangedExternally.class new file mode 100644 index 0000000..34aadb8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_ListChangedExternally.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv.class new file mode 100644 index 0000000..c17f5e8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/preoptimizedclv.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/roundslider.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/roundslider.class new file mode 100644 index 0000000..af89325 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/roundslider.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/scrollinglabel$ResumableSub_StartScrolling.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/scrollinglabel$ResumableSub_StartScrolling.class new file mode 100644 index 0000000..c2ed282 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/scrollinglabel$ResumableSub_StartScrolling.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/scrollinglabel.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/scrollinglabel.class new file mode 100644 index 0000000..6020f47 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/scrollinglabel.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$1.class new file mode 100644 index 0000000..e7a1175 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$2.class new file mode 100644 index 0000000..3fec117 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$starter_BR.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$starter_BR.class new file mode 100644 index 0000000..cc3970b Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter$starter_BR.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter.class new file mode 100644 index 0000000..89e9572 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/starter.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/subs.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/subs.class new file mode 100644 index 0000000..0075c48 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/subs.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/swiftbutton.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/swiftbutton.class new file mode 100644 index 0000000..68ff2f0 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/swiftbutton.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$1.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$1.class new file mode 100644 index 0000000..3ac8e75 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$1.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$2.class new file mode 100644 index 0000000..bf2b57a Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP.class new file mode 100644 index 0000000..e1d04a1 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP2.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP2.class new file mode 100644 index 0000000..12c10f8 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP2.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLPSmall.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLPSmall.class new file mode 100644 index 0000000..c44b246 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLPSmall.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$tracker_BR.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$tracker_BR.class new file mode 100644 index 0000000..224f2ec Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker$tracker_BR.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker.class new file mode 100644 index 0000000..1e4a85d Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/tracker.class differ diff --git a/B4A/Objects/bin/classes/gunav2/keymon/com/mx/xuiviewsutils.class b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/xuiviewsutils.class new file mode 100644 index 0000000..907de75 Binary files /dev/null and b/B4A/Objects/bin/classes/gunav2/keymon/com/mx/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/com.google.firebase.messaging.zip b/B4A/Objects/bin/extra/compiled_resources/com.google.firebase.messaging.zip new file mode 100644 index 0000000..f19e09f Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/com.google.firebase.messaging.zip differ diff --git a/B4A/Objects/bin/extra/compiled_resources/gunav2.keymon.com.mx.zip b/B4A/Objects/bin/extra/compiled_resources/gunav2.keymon.com.mx.zip new file mode 100644 index 0000000..d30e1d5 Binary files /dev/null and b/B4A/Objects/bin/extra/compiled_resources/gunav2.keymon.com.mx.zip differ diff --git a/B4A/Objects/bin/temp.ap_ b/B4A/Objects/bin/temp.ap_ new file mode 100644 index 0000000..58e5e09 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..4b69ad7 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..7965ebf --- /dev/null +++ b/B4A/Objects/d8_arguments.txt @@ -0,0 +1,480 @@ +--release +--output +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects +--lib +C:\Android\platforms\android-30\android.jar +--min-api +21 +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-measurement\19.0.0\unpacked-play-services-measurement-19.0.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\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\documentfile\documentfile\1.0.1\unpacked-documentfile-1.0.1\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\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\com\google\android\gms\play-services-ads-identifier\17.0.1\unpacked-play-services-ads-identifier-17.0.1\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\androidx\fragment\fragment\1.2.5\unpacked-fragment-1.2.5\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\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-measurement-base\19.0.0\unpacked-play-services-measurement-base-19.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-measurement-impl\19.0.0\unpacked-play-services-measurement-impl-19.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-stats\17.0.1\unpacked-play-services-stats-17.0.1\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-common\19.3.1\unpacked-firebase-common-19.3.1\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\com\google\firebase\firebase-components\16.0.0\unpacked-firebase-components-16.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-measurement-api\19.0.0\unpacked-play-services-measurement-api-19.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-measurement-sdk-api\19.0.0\unpacked-play-services-measurement-sdk-api-19.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-installations\16.3.3\unpacked-firebase-installations-16.3.3\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-installations-interop\16.0.0\unpacked-firebase-installations-interop-16.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-measurement-connector\18.0.0\unpacked-firebase-measurement-connector-18.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-messaging\20.3.0\unpacked-firebase-messaging-20.3.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\datatransport\transport-api\2.2.1\unpacked-transport-api-2.2.1\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\datatransport\transport-backend-cct\2.3.3\unpacked-transport-backend-cct-2.3.3\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\datatransport\transport-runtime\2.2.6\unpacked-transport-runtime-2.2.6\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-encoders-json\17.1.0\unpacked-firebase-encoders-json-17.1.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-cloud-messaging\16.0.0\unpacked-play-services-cloud-messaging-16.0.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-datatransport\17.0.8\unpacked-firebase-datatransport-17.0.8\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-iid\20.2.4\unpacked-firebase-iid-20.2.4\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-iid-interop\17.0.0\unpacked-firebase-iid-interop-17.0.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\firebase\firebase-core\17.5.1\unpacked-firebase-core-17.5.1\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-analytics\17.6.0\unpacked-firebase-analytics-17.6.0\jars\classes.zip +c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-measurement-sdk\19.0.0\unpacked-play-services-measurement-sdk-19.0.0\jars\classes.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\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-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_remote\androidx\multidex\multidex\2.0.1\unpacked-multidex-2.0.1\jars\classes.zip +C:\Android\tools\..\extras\b4a_local\unpacked-baqrcode-63580278352000\dex_v1\baqrcode.zip +C:\Android\tools\..\extras\b4a_local\unpacked-batteryprogressview-63728354598000\dex_v1\batteryprogressview.zip +C:\Android\tools\..\extras\b4a_local\unpacked-bitmapcreator-63837499358000\dex_v1\bitmapcreator.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-clipboard-63430833632000\dex_v1\clipboard.zip +C:\Android\tools\..\extras\b4a_local\unpacked-compressstrings-63690670984758\dex_v1\compressstrings.zip +C:\Android\tools\..\extras\b4a_local\unpacked-contentresolver-63837499358000\dex_v1\contentresolver.zip +C:\Android\tools\..\extras\b4a_local\unpacked-core-63837499358000\dex_v1\core.zip +C:\Android\tools\..\extras\b4a_local\unpacked-firebaseanalytics-63837499358000\dex_v1\firebaseanalytics.zip +C:\Android\tools\..\extras\b4a_local\unpacked-firebasenotifications-63837499358000\dex_v1\firebasenotifications.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-jhsicezxing1-63663757248000\dex_v1\jhsicezxing1.zip +C:\Android\tools\..\extras\b4a_local\unpacked-json-63837499358000\dex_v1\json.zip +C:\Android\tools\..\extras\b4a_local\unpacked-locationmanager-63460624784000\dex_v1\locationmanager.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-rspopupmenu-63542938804000\dex_v1\rspopupmenu.zip +C:\Android\tools\..\extras\b4a_local\unpacked-runtimepermissions.androidx-63822351362000\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-dateutils-63837499358000\dex_v1\dateutils.zip +C:\Android\tools\..\extras\b4a_local\unpacked-android-support-annotations-63728354598000\dex_v1\android-support-annotations.zip +C:\Android\tools\..\extras\b4a_local\unpacked-stringutils-63837499358000\dex_v1\stringutils.zip +C:\Android\tools\..\extras\b4a_local\unpacked-reflection-63837499358000\dex_v1\reflection.zip +C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-63837499358000\dex_v1\okhttp.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\collection\collection\1.1.0\collection-1.1.0.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_local\unpacked-javax.inject-javax.inject-63837499358000\dex_v1\javax.inject-javax.inject.zip +c:\android\tools\..\extras\b4a_remote\com\google\firebase\firebase-encoders\16.0.0\firebase-encoders-16.0.0.zip +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\coordinatorlayout\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\core\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\drawerlayout\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\fragment\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\media\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\androidx\swiperefreshlayout\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\base\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\common\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\android\gms\maps\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\com\google\firebase\messaging\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\animatedcounter.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\anotherprogressbar$ResumableSub_BusyLoop.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\anotherprogressbar.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater$2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater$appupdater_BR.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater$ResumableSub_download_newApk.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater$ResumableSub_Service_Start.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater$_mnewversion.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\appupdater.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xbitset.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xbreadcrumb.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xbytesbuilder.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcache$_b4xcacheitem.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcache.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcollections.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcolortemplate$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcolortemplate$_colorpickerpart.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcolortemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcombobox$ResumableSub_RaiseEvent.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcombobox.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xcomparatorsort.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xdatetemplate$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xdatetemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xdialog$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xdialog$ResumableSub_ShowCustom.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xdialog$ResumableSub_ShowTemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xdialog.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xfloattextfield.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xformatter$_b4xformatdata.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xformatter.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4ximageview.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xinputtemplate$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xinputtemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xlisttemplate$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xlisttemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xloadingindicator$ResumableSub_MainLoop.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xloadingindicator.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xlongtexttemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xmainpage$ResumableSub_B4XPage_Appear.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xmainpage$ResumableSub_b_envioBD_Click.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xmainpage$ResumableSub_copiaDB.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xmainpage$ResumableSub_revisaActualizacion.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xmainpage.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xorderedmap.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpages.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesdelegator.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesmanager$PagesMenuListener.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesmanager$ResumableSub_HandleCloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesmanager$_b4amenuitem.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesmanager$_b4xpageinfo.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesmanager$_b4xpageparent.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xpagesmanager.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xplusminus$ResumableSub_StartDownLoop.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xplusminus.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xradiobutton$ResumableSub_SetValueImpl.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xradiobutton.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xsearchtemplate$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xsearchtemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xseekbar.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xset.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xsignaturetemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xswitch$ResumableSub_SetValueImpl.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xswitch.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xtimedtemplate$ResumableSub_Show.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\b4xtimedtemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\batteryutilities.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cameraexclass$_camerainfoandid.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cameraexclass$_camerasize.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cameraexclass.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cl_appupdate$ResumableSub_DownloadApk.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cl_appupdate$ResumableSub_IsvalidWV.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cl_appupdate$ResumableSub_ReadWebVN.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cl_appupdate$ResumableSub_TryApkUpdate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cl_appupdate$ResumableSub_UpdateApk.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cl_appupdate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf$_tpdfcontext.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf$_tpdffontinfo.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf$_tpdfimageinfo.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf$_tpdfmultilinetextsize.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf$_tpdfpage.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf$_tpdftextsize.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\cpdf.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_bitacora.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_B4XPage_Appear.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_b_envioPDF_Click.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_B_IMP_Click.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_b_preventa2_Click.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_Cuestionario.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_enviaTicket.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_gest_Click.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_Impresion.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_Impresion2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_Impresion3.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_Impresion4.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_Impresion5.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_InitializeCamera2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_mandaWAMsgCredito.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_MejorarPrecisionGPS.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente$ResumableSub_sc_result.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cliente.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_clientes$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_clientes.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_cuestionario.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_historico$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_historico.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_historico2$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_historico2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_historicobat.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_mapas.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_nota$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_nota.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_noventa.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_nuevocliente$ResumableSub_B4XPage_Created.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_nuevocliente.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_pedidos$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_pedidos.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_principal$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_principal$ResumableSub_connecta_Click.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_principal$_titledata.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_principal.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_productos$ResumableSub_B4XPage_Appear.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_productos$ResumableSub_B4XPage_CloseRequest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_productos$ResumableSub_Busca_TextChanged.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_productos$ResumableSub_lv_catalogos2_ItemClick.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_productos.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_promos.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_ticketsdia.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_updateavailable$ResumableSub_B4XPage_Appear.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\c_updateavailable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\dbrequestmanager$_dbcommand.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\dbrequestmanager$_dbresult.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\dbrequestmanager.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\escposprinter$_animage.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\escposprinter.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\fileprovider.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\firebasemessaging$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\firebasemessaging$2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\firebasemessaging$firebasemessaging_BR.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\firebasemessaging$ResumableSub_Service_Start.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\firebasemessaging.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\httpjob$_multipartfiledata.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\httpjob.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\httputils2service.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\madewithlove.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\main$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\main$B4AMenuItemsClickListener.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\main$HandleKeyDelayed.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\main$ResumeMessage.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\main$WaitForLayout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\main.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\Manifest$permission.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\Manifest.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas$B4AMenuItemsClickListener.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas$HandleKeyDelayed.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas$ResumableSub_MapFragment1_Ready.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas$ResumeMessage.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas$WaitForLayout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\mapa_rutas.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\newinst2$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\newinst2$2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\newinst2$newinst2_BR.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\newinst2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\preoptimizedclv$ResumableSub_ListChangedExternally.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\preoptimizedclv.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$anim.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$attr.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$color.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$dimen.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$drawable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$id.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$integer.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$layout.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$string.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$style.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$styleable.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R$xml.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\R.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\roundslider.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\scrollinglabel$ResumableSub_StartScrolling.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\scrollinglabel.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\starter$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\starter$2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\starter$starter_BR.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\starter.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\subs.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\swiftbutton.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker$1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker$2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker$ResumableSub_StartFLP.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker$ResumableSub_StartFLP2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker$ResumableSub_StartFLPSmall.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker$tracker_BR.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\tracker.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\xuiviewsutils.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_celltitle.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_cliente.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_clientes.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_comis.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_datoscliente.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_detalle_promo.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_encuessta_m3.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_encuesta.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_encuesta_m4.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_encuesta_m5.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_encuesta_ped.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_errormanager.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_esncuesta_m2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_historicobat.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_historicobat2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_iniciofinventa.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_login.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_mainpage.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_maparutas.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_mapa_rutas.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_nota.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_nota2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_noventa.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_nuevocliente.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_pclvseekbar.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_pedido.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_principal.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_proditem.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_proditem1.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_proditem2.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_productos.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_productos_.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_promociones.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_resdia.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_searchtemplate.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_seleccion.dex +C:\Desarrollo movil\DESARROLLO_MOVIL\Guna_Preventa BAT\B4A\Objects\dexed\gunav2\keymon\com\mx\designerscripts\LS_ticketsdia.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..9f0bd41 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..a73a751 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..39fc9a3 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..e8a8f43 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..f8e78e5 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..901d500 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..44172f2 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..2f0b257 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..6b60807 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..c89c667 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..9b55a5f 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..1a8cbd8 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..6182372 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..34dabdc 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..8c5ed55 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..a0cb0ad 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..77a912e 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..6704f32 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..27ed795 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..f33ef44 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..cf3a9f6 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..7ac0ec5 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..360f09e 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..a255e05 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..83e27f6 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..9a28fe0 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..77f3b88 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..b269a64 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..363844b 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..7f064bb 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..9012097 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..87e29cc 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..93328d7 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..91ca40a 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..ebccb48 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..5154ddb 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/com/google/firebase/messaging/R$anim.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$anim.dex new file mode 100644 index 0000000..2c96e32 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$anim.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$attr.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$attr.dex new file mode 100644 index 0000000..b2d4d18 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$attr.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$color.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$color.dex new file mode 100644 index 0000000..67f9a24 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$color.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$dimen.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$dimen.dex new file mode 100644 index 0000000..3428a84 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$dimen.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$drawable.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$drawable.dex new file mode 100644 index 0000000..06cc05a Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$drawable.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$id.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$id.dex new file mode 100644 index 0000000..0a3806b Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$id.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$integer.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$integer.dex new file mode 100644 index 0000000..3a68ef3 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$integer.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$layout.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$layout.dex new file mode 100644 index 0000000..1762a9e Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$layout.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$string.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$string.dex new file mode 100644 index 0000000..fd00646 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$string.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$style.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$style.dex new file mode 100644 index 0000000..24d9813 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$style.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$styleable.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$styleable.dex new file mode 100644 index 0000000..423d988 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$styleable.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R$xml.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R$xml.dex new file mode 100644 index 0000000..3e5cea8 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R$xml.dex differ diff --git a/B4A/Objects/dexed/com/google/firebase/messaging/R.dex b/B4A/Objects/dexed/com/google/firebase/messaging/R.dex new file mode 100644 index 0000000..1dd5041 Binary files /dev/null and b/B4A/Objects/dexed/com/google/firebase/messaging/R.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/Manifest$permission.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/Manifest$permission.dex new file mode 100644 index 0000000..3fed6ba Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/Manifest$permission.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/Manifest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/Manifest.dex new file mode 100644 index 0000000..0563783 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/Manifest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$anim.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$anim.dex new file mode 100644 index 0000000..ab85ece Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$anim.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$attr.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$attr.dex new file mode 100644 index 0000000..f47484b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$attr.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$color.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$color.dex new file mode 100644 index 0000000..31447c8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$color.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$dimen.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$dimen.dex new file mode 100644 index 0000000..0e321ce Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$dimen.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$drawable.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$drawable.dex new file mode 100644 index 0000000..e3c662b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$drawable.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$id.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$id.dex new file mode 100644 index 0000000..c456c37 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$id.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$integer.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$integer.dex new file mode 100644 index 0000000..16cd108 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$integer.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$layout.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$layout.dex new file mode 100644 index 0000000..ef7a698 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$layout.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$string.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$string.dex new file mode 100644 index 0000000..6b3c6d7 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$string.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$style.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$style.dex new file mode 100644 index 0000000..038556f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$style.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$styleable.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$styleable.dex new file mode 100644 index 0000000..ba6103d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$styleable.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R$xml.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$xml.dex new file mode 100644 index 0000000..b8a5968 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R$xml.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/R.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/R.dex new file mode 100644 index 0000000..64b9dd8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/R.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/animatedcounter.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/animatedcounter.dex new file mode 100644 index 0000000..0b00156 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/animatedcounter.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/anotherprogressbar$ResumableSub_BusyLoop.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/anotherprogressbar$ResumableSub_BusyLoop.dex new file mode 100644 index 0000000..7449da3 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/anotherprogressbar$ResumableSub_BusyLoop.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/anotherprogressbar.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/anotherprogressbar.dex new file mode 100644 index 0000000..700fdcc Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/anotherprogressbar.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$1.dex new file mode 100644 index 0000000..482caad Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$2.dex new file mode 100644 index 0000000..87a8a32 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$ResumableSub_Service_Start.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$ResumableSub_Service_Start.dex new file mode 100644 index 0000000..f896b1e Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$ResumableSub_Service_Start.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$ResumableSub_download_newApk.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$ResumableSub_download_newApk.dex new file mode 100644 index 0000000..3a39702 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$ResumableSub_download_newApk.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$_mnewversion.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$_mnewversion.dex new file mode 100644 index 0000000..2059d52 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$_mnewversion.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$appupdater_BR.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$appupdater_BR.dex new file mode 100644 index 0000000..1aaa417 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater$appupdater_BR.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater.dex new file mode 100644 index 0000000..fc752aa Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/appupdater.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbitset.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbitset.dex new file mode 100644 index 0000000..be1735d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbitset.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbreadcrumb.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbreadcrumb.dex new file mode 100644 index 0000000..c96f06e Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbreadcrumb.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbytesbuilder.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbytesbuilder.dex new file mode 100644 index 0000000..60a19a4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xbytesbuilder.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcache$_b4xcacheitem.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcache$_b4xcacheitem.dex new file mode 100644 index 0000000..5714cfe Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcache$_b4xcacheitem.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcache.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcache.dex new file mode 100644 index 0000000..765aaa2 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcache.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcollections.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcollections.dex new file mode 100644 index 0000000..e0d2df9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcollections.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate$ResumableSub_Show.dex new file mode 100644 index 0000000..67efe3c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate$_colorpickerpart.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate$_colorpickerpart.dex new file mode 100644 index 0000000..e77f937 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate$_colorpickerpart.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate.dex new file mode 100644 index 0000000..e15c779 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcolortemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcombobox$ResumableSub_RaiseEvent.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcombobox$ResumableSub_RaiseEvent.dex new file mode 100644 index 0000000..64ee917 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcombobox$ResumableSub_RaiseEvent.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcombobox.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcombobox.dex new file mode 100644 index 0000000..0158512 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcombobox.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcomparatorsort.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcomparatorsort.dex new file mode 100644 index 0000000..c17e8c9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xcomparatorsort.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdatetemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdatetemplate$ResumableSub_Show.dex new file mode 100644 index 0000000..df5658b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdatetemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdatetemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdatetemplate.dex new file mode 100644 index 0000000..328ab73 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdatetemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_Show.dex new file mode 100644 index 0000000..d7e92e8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowCustom.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowCustom.dex new file mode 100644 index 0000000..f34f7a5 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowCustom.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowTemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowTemplate.dex new file mode 100644 index 0000000..a167ce0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog$ResumableSub_ShowTemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog.dex new file mode 100644 index 0000000..b6e45ac Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xdialog.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex new file mode 100644 index 0000000..3e6704f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xfloattextfield.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xfloattextfield.dex new file mode 100644 index 0000000..7e7b2cd Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xfloattextfield.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xformatter$_b4xformatdata.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xformatter$_b4xformatdata.dex new file mode 100644 index 0000000..3734067 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xformatter$_b4xformatdata.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xformatter.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xformatter.dex new file mode 100644 index 0000000..fb72a1a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xformatter.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4ximageview.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4ximageview.dex new file mode 100644 index 0000000..48c88b4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4ximageview.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xinputtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xinputtemplate$ResumableSub_Show.dex new file mode 100644 index 0000000..7d0e5c6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xinputtemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xinputtemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xinputtemplate.dex new file mode 100644 index 0000000..2c6f53f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xinputtemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlisttemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlisttemplate$ResumableSub_Show.dex new file mode 100644 index 0000000..5c097c1 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlisttemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlisttemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlisttemplate.dex new file mode 100644 index 0000000..64e23cf Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlisttemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xloadingindicator$ResumableSub_MainLoop.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xloadingindicator$ResumableSub_MainLoop.dex new file mode 100644 index 0000000..200b010 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xloadingindicator$ResumableSub_MainLoop.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xloadingindicator.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xloadingindicator.dex new file mode 100644 index 0000000..a737eb0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xloadingindicator.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlongtexttemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlongtexttemplate.dex new file mode 100644 index 0000000..f7996a8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xlongtexttemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_Appear.dex new file mode 100644 index 0000000..a82287e Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..fb6b0fb Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_b_envioBD_Click.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_b_envioBD_Click.dex new file mode 100644 index 0000000..0a2aa57 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_b_envioBD_Click.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_copiaDB.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_copiaDB.dex new file mode 100644 index 0000000..37bcc70 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_copiaDB.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_revisaActualizacion.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_revisaActualizacion.dex new file mode 100644 index 0000000..71b58c9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage$ResumableSub_revisaActualizacion.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage.dex new file mode 100644 index 0000000..58a3678 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xmainpage.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xorderedmap.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xorderedmap.dex new file mode 100644 index 0000000..19827ea Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xorderedmap.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpages.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpages.dex new file mode 100644 index 0000000..497d2ec Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpages.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesdelegator.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesdelegator.dex new file mode 100644 index 0000000..6c3bc13 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesdelegator.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$PagesMenuListener.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$PagesMenuListener.dex new file mode 100644 index 0000000..cabbd9b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$PagesMenuListener.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex new file mode 100644 index 0000000..760fd15 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4amenuitem.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4amenuitem.dex new file mode 100644 index 0000000..d0f99df Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4amenuitem.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageinfo.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageinfo.dex new file mode 100644 index 0000000..14fcec1 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageinfo.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageparent.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageparent.dex new file mode 100644 index 0000000..57ac3d9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager$_b4xpageparent.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager.dex new file mode 100644 index 0000000..8778b14 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xpagesmanager.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xplusminus$ResumableSub_StartDownLoop.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xplusminus$ResumableSub_StartDownLoop.dex new file mode 100644 index 0000000..e2a1b29 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xplusminus$ResumableSub_StartDownLoop.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xplusminus.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xplusminus.dex new file mode 100644 index 0000000..506a6b2 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xplusminus.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xradiobutton$ResumableSub_SetValueImpl.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xradiobutton$ResumableSub_SetValueImpl.dex new file mode 100644 index 0000000..b99b9f7 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xradiobutton$ResumableSub_SetValueImpl.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xradiobutton.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xradiobutton.dex new file mode 100644 index 0000000..1cf31b3 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xradiobutton.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsearchtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsearchtemplate$ResumableSub_Show.dex new file mode 100644 index 0000000..b13eb79 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsearchtemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsearchtemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsearchtemplate.dex new file mode 100644 index 0000000..9a56b28 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsearchtemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xseekbar.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xseekbar.dex new file mode 100644 index 0000000..face21f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xseekbar.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xset.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xset.dex new file mode 100644 index 0000000..3ad8b90 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xset.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsignaturetemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsignaturetemplate.dex new file mode 100644 index 0000000..3558cf7 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xsignaturetemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xswitch$ResumableSub_SetValueImpl.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xswitch$ResumableSub_SetValueImpl.dex new file mode 100644 index 0000000..52e0326 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xswitch$ResumableSub_SetValueImpl.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xswitch.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xswitch.dex new file mode 100644 index 0000000..b736c83 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xswitch.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xtimedtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xtimedtemplate$ResumableSub_Show.dex new file mode 100644 index 0000000..f26cfea Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xtimedtemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xtimedtemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xtimedtemplate.dex new file mode 100644 index 0000000..c7ba4a6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/b4xtimedtemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/batteryutilities.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/batteryutilities.dex new file mode 100644 index 0000000..924e30a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/batteryutilities.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_bitacora.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_bitacora.dex new file mode 100644 index 0000000..b9adc59 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_bitacora.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_Appear.dex new file mode 100644 index 0000000..7451e80 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..970158b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B_IMP_Click.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B_IMP_Click.dex new file mode 100644 index 0000000..e54d602 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_B_IMP_Click.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Cuestionario.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Cuestionario.dex new file mode 100644 index 0000000..e9d257a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Cuestionario.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.dex new file mode 100644 index 0000000..1df3b02 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.dex new file mode 100644 index 0000000..d7ebf86 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_EnviarPDFWhatsAppNumero2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion.dex new file mode 100644 index 0000000..122e4d0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion2.dex new file mode 100644 index 0000000..85e2ede Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion3.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion3.dex new file mode 100644 index 0000000..b674793 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion3.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion4.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion4.dex new file mode 100644 index 0000000..7d16e46 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion4.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion5.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion5.dex new file mode 100644 index 0000000..71e4e71 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_Impresion5.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_InitializeCamera2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_InitializeCamera2.dex new file mode 100644 index 0000000..258d495 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_InitializeCamera2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_MejorarPrecisionGPS.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_MejorarPrecisionGPS.dex new file mode 100644 index 0000000..46513ac Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_MejorarPrecisionGPS.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_envioPDF_Click.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_envioPDF_Click.dex new file mode 100644 index 0000000..94e2f32 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_envioPDF_Click.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_preventa2_Click.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_preventa2_Click.dex new file mode 100644 index 0000000..2dcfdff Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_b_preventa2_Click.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_enviaTicket.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_enviaTicket.dex new file mode 100644 index 0000000..d7d3f78 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_enviaTicket.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_gest_Click.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_gest_Click.dex new file mode 100644 index 0000000..9aa4096 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_gest_Click.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_mandaWAMsgCredito.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_mandaWAMsgCredito.dex new file mode 100644 index 0000000..9a4db32 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_mandaWAMsgCredito.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_sc_result.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_sc_result.dex new file mode 100644 index 0000000..77effa5 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente$ResumableSub_sc_result.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente.dex new file mode 100644 index 0000000..d1749fc Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cliente.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_clientes$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_clientes$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..4184f8b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_clientes$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_clientes.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_clientes.dex new file mode 100644 index 0000000..5382f40 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_clientes.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cuestionario.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cuestionario.dex new file mode 100644 index 0000000..93f5dd4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_cuestionario.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..0664433 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico.dex new file mode 100644 index 0000000..2e3bdcc Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico2$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico2$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..9a48970 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico2$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico2.dex new file mode 100644 index 0000000..8f30ff6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historico2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historicobat.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historicobat.dex new file mode 100644 index 0000000..d97eaa4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_historicobat.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_mapas.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_mapas.dex new file mode 100644 index 0000000..9d4bb2d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_mapas.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nota$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nota$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..9f173a8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nota$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nota.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nota.dex new file mode 100644 index 0000000..4a72a83 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nota.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_noventa.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_noventa.dex new file mode 100644 index 0000000..b68d8d7 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_noventa.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nuevocliente$ResumableSub_B4XPage_Created.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nuevocliente$ResumableSub_B4XPage_Created.dex new file mode 100644 index 0000000..36a0994 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nuevocliente$ResumableSub_B4XPage_Created.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nuevocliente.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nuevocliente.dex new file mode 100644 index 0000000..d46a837 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_nuevocliente.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_pedidos$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_pedidos$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..4638cce Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_pedidos$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_pedidos.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_pedidos.dex new file mode 100644 index 0000000..47a4ea6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_pedidos.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..995b2ed Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$ResumableSub_connecta_Click.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$ResumableSub_connecta_Click.dex new file mode 100644 index 0000000..5cdc9f5 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$ResumableSub_connecta_Click.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$_titledata.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$_titledata.dex new file mode 100644 index 0000000..df9ded2 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal$_titledata.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal.dex new file mode 100644 index 0000000..a7e96b5 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_principal.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_Appear.dex new file mode 100644 index 0000000..9a3e21a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_CloseRequest.dex new file mode 100644 index 0000000..eb995e4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_Busca_TextChanged.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_Busca_TextChanged.dex new file mode 100644 index 0000000..3ed9e87 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_Busca_TextChanged.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_lv_catalogos2_ItemClick.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_lv_catalogos2_ItemClick.dex new file mode 100644 index 0000000..6d2ff72 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos$ResumableSub_lv_catalogos2_ItemClick.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos.dex new file mode 100644 index 0000000..0749828 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_productos.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_promos.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_promos.dex new file mode 100644 index 0000000..16dc43f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_promos.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_ticketsdia.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_ticketsdia.dex new file mode 100644 index 0000000..054c1f3 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_ticketsdia.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_updateavailable$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_updateavailable$ResumableSub_B4XPage_Appear.dex new file mode 100644 index 0000000..6742f1c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_updateavailable$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/c_updateavailable.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_updateavailable.dex new file mode 100644 index 0000000..c63e8a4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/c_updateavailable.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass$_camerainfoandid.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass$_camerainfoandid.dex new file mode 100644 index 0000000..515048d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass$_camerainfoandid.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass$_camerasize.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass$_camerasize.dex new file mode 100644 index 0000000..f6784c1 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass$_camerasize.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass.dex new file mode 100644 index 0000000..c973bc6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cameraexclass.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_DownloadApk.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_DownloadApk.dex new file mode 100644 index 0000000..fa8be11 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_DownloadApk.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_IsvalidWV.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_IsvalidWV.dex new file mode 100644 index 0000000..b53d31f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_IsvalidWV.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_ReadWebVN.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_ReadWebVN.dex new file mode 100644 index 0000000..c9a4331 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_ReadWebVN.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_TryApkUpdate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_TryApkUpdate.dex new file mode 100644 index 0000000..af6061e Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_TryApkUpdate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_UpdateApk.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_UpdateApk.dex new file mode 100644 index 0000000..0a7aa0a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate$ResumableSub_UpdateApk.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate.dex new file mode 100644 index 0000000..e9387a0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cl_appupdate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfcontext.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfcontext.dex new file mode 100644 index 0000000..0779147 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfcontext.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdffontinfo.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdffontinfo.dex new file mode 100644 index 0000000..ec3cd48 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdffontinfo.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfimageinfo.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfimageinfo.dex new file mode 100644 index 0000000..10680f0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfimageinfo.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfmultilinetextsize.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfmultilinetextsize.dex new file mode 100644 index 0000000..ff7a20d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfmultilinetextsize.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfpage.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfpage.dex new file mode 100644 index 0000000..b645206 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdfpage.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdftextsize.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdftextsize.dex new file mode 100644 index 0000000..664bfaf Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf$_tpdftextsize.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf.dex new file mode 100644 index 0000000..e28f9ed Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/cpdf.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager$_dbcommand.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager$_dbcommand.dex new file mode 100644 index 0000000..4d428ff Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager$_dbcommand.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager$_dbresult.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager$_dbresult.dex new file mode 100644 index 0000000..c486879 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager$_dbresult.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager.dex new file mode 100644 index 0000000..6d208c8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/dbrequestmanager.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_celltitle.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_celltitle.dex new file mode 100644 index 0000000..2f844da Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_celltitle.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_cliente.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_cliente.dex new file mode 100644 index 0000000..3ff2b1d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_cliente.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_clientes.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_clientes.dex new file mode 100644 index 0000000..8e3d7d2 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_clientes.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_comis.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_comis.dex new file mode 100644 index 0000000..bbaa387 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_comis.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.dex new file mode 100644 index 0000000..31f8e47 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.dex new file mode 100644 index 0000000..b3f2883 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.dex new file mode 100644 index 0000000..d2d9ad9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta.dex new file mode 100644 index 0000000..d4ff09c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.dex new file mode 100644 index 0000000..e559173 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.dex new file mode 100644 index 0000000..5e08056 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.dex new file mode 100644 index 0000000..0f927ce Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_errormanager.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_errormanager.dex new file mode 100644 index 0000000..2709f10 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_errormanager.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.dex new file mode 100644 index 0000000..7ae6800 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_historicobat.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_historicobat.dex new file mode 100644 index 0000000..8a34170 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_historicobat.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.dex new file mode 100644 index 0000000..dce5e23 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.dex new file mode 100644 index 0000000..a1d17b0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_login.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_login.dex new file mode 100644 index 0000000..1ac99b0 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_login.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_mainpage.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_mainpage.dex new file mode 100644 index 0000000..987d971 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_mainpage.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.dex new file mode 100644 index 0000000..e4c4dfa Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_maparutas.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_maparutas.dex new file mode 100644 index 0000000..ea33adb Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_maparutas.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nota.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nota.dex new file mode 100644 index 0000000..c9b2226 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nota.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nota2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nota2.dex new file mode 100644 index 0000000..58afac2 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nota2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_noventa.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_noventa.dex new file mode 100644 index 0000000..70a42ad Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_noventa.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.dex new file mode 100644 index 0000000..afbb575 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.dex new file mode 100644 index 0000000..22ec941 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_pedido.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_pedido.dex new file mode 100644 index 0000000..a491c04 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_pedido.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_principal.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_principal.dex new file mode 100644 index 0000000..fb451b5 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_principal.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem.dex new file mode 100644 index 0000000..210b086 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem1.dex new file mode 100644 index 0000000..97437af Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem2.dex new file mode 100644 index 0000000..837e50c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_proditem2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_productos.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_productos.dex new file mode 100644 index 0000000..44b7c4c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_productos.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_productos_.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_productos_.dex new file mode 100644 index 0000000..e4af085 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_productos_.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_promociones.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_promociones.dex new file mode 100644 index 0000000..45e98b6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_promociones.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_resdia.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_resdia.dex new file mode 100644 index 0000000..17f3854 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_resdia.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.dex new file mode 100644 index 0000000..a3451d3 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_seleccion.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_seleccion.dex new file mode 100644 index 0000000..b391ffe Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_seleccion.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.dex new file mode 100644 index 0000000..c853be8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/escposprinter$_animage.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/escposprinter$_animage.dex new file mode 100644 index 0000000..87dbfb1 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/escposprinter$_animage.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/escposprinter.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/escposprinter.dex new file mode 100644 index 0000000..2c2515b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/escposprinter.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/fileprovider.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/fileprovider.dex new file mode 100644 index 0000000..949953c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/fileprovider.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$1.dex new file mode 100644 index 0000000..33808da Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$2.dex new file mode 100644 index 0000000..87b3b84 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$ResumableSub_Service_Start.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$ResumableSub_Service_Start.dex new file mode 100644 index 0000000..7ecdefe Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$ResumableSub_Service_Start.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$firebasemessaging_BR.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$firebasemessaging_BR.dex new file mode 100644 index 0000000..141b183 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging$firebasemessaging_BR.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging.dex new file mode 100644 index 0000000..5d01a6f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/firebasemessaging.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/httpjob$_multipartfiledata.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/httpjob$_multipartfiledata.dex new file mode 100644 index 0000000..2951292 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/httpjob$_multipartfiledata.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/httpjob.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/httpjob.dex new file mode 100644 index 0000000..7602a38 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/httpjob.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/httputils2service.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/httputils2service.dex new file mode 100644 index 0000000..624dba1 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/httputils2service.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/madewithlove.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/madewithlove.dex new file mode 100644 index 0000000..c201da3 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/madewithlove.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/main$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$1.dex new file mode 100644 index 0000000..a9b22fd Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/main$B4AMenuItemsClickListener.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$B4AMenuItemsClickListener.dex new file mode 100644 index 0000000..16bc634 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$B4AMenuItemsClickListener.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/main$HandleKeyDelayed.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$HandleKeyDelayed.dex new file mode 100644 index 0000000..1f245ed Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$HandleKeyDelayed.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/main$ResumeMessage.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$ResumeMessage.dex new file mode 100644 index 0000000..4a7b80f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$ResumeMessage.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/main$WaitForLayout.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$WaitForLayout.dex new file mode 100644 index 0000000..cafabd8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/main$WaitForLayout.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/main.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/main.dex new file mode 100644 index 0000000..ea417b4 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/main.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$1.dex new file mode 100644 index 0000000..821c7ac Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$B4AMenuItemsClickListener.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$B4AMenuItemsClickListener.dex new file mode 100644 index 0000000..9d0378c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$B4AMenuItemsClickListener.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$HandleKeyDelayed.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$HandleKeyDelayed.dex new file mode 100644 index 0000000..09314d8 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$HandleKeyDelayed.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$ResumableSub_MapFragment1_Ready.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$ResumableSub_MapFragment1_Ready.dex new file mode 100644 index 0000000..17d4ba9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$ResumableSub_MapFragment1_Ready.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$ResumeMessage.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$ResumeMessage.dex new file mode 100644 index 0000000..303452e Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$ResumeMessage.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$WaitForLayout.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$WaitForLayout.dex new file mode 100644 index 0000000..ec5d363 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas$WaitForLayout.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas.dex new file mode 100644 index 0000000..86ec2c9 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/mapa_rutas.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$1.dex new file mode 100644 index 0000000..4eb0f91 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$2.dex new file mode 100644 index 0000000..f83b7bd Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$newinst2_BR.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$newinst2_BR.dex new file mode 100644 index 0000000..4c3600a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2$newinst2_BR.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2.dex new file mode 100644 index 0000000..7702fc5 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/newinst2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.dex new file mode 100644 index 0000000..03afa67 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_B4XSeekBar1_TouchStateChanged.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_ListChangedExternally.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_ListChangedExternally.dex new file mode 100644 index 0000000..3ddf40d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv$ResumableSub_ListChangedExternally.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv.dex new file mode 100644 index 0000000..a10a69b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/preoptimizedclv.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/roundslider.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/roundslider.dex new file mode 100644 index 0000000..65fc42d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/roundslider.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/scrollinglabel$ResumableSub_StartScrolling.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/scrollinglabel$ResumableSub_StartScrolling.dex new file mode 100644 index 0000000..d97f02e Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/scrollinglabel$ResumableSub_StartScrolling.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/scrollinglabel.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/scrollinglabel.dex new file mode 100644 index 0000000..e850f85 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/scrollinglabel.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$1.dex new file mode 100644 index 0000000..8fdbd9f Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$2.dex new file mode 100644 index 0000000..22d7299 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$starter_BR.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$starter_BR.dex new file mode 100644 index 0000000..8d4d130 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter$starter_BR.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/starter.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter.dex new file mode 100644 index 0000000..19e8e8d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/starter.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/subs.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/subs.dex new file mode 100644 index 0000000..587513d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/subs.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/swiftbutton.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/swiftbutton.dex new file mode 100644 index 0000000..1fbc6db Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/swiftbutton.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$1.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$1.dex new file mode 100644 index 0000000..ec4532b Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$1.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$2.dex new file mode 100644 index 0000000..edec70c Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP.dex new file mode 100644 index 0000000..3f0081d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP2.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP2.dex new file mode 100644 index 0000000..0e9ea0d Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLP2.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLPSmall.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLPSmall.dex new file mode 100644 index 0000000..b8b72fd Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$ResumableSub_StartFLPSmall.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$tracker_BR.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$tracker_BR.dex new file mode 100644 index 0000000..060fa85 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker$tracker_BR.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker.dex new file mode 100644 index 0000000..3490fd6 Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/tracker.dex differ diff --git a/B4A/Objects/dexed/gunav2/keymon/com/mx/xuiviewsutils.dex b/B4A/Objects/dexed/gunav2/keymon/com/mx/xuiviewsutils.dex new file mode 100644 index 0000000..d85d28a Binary files /dev/null and b/B4A/Objects/dexed/gunav2/keymon/com/mx/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..e2b6c02 --- /dev/null +++ b/B4A/Objects/gen/androidx/coordinatorlayout/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..cd915ea --- /dev/null +++ b/B4A/Objects/gen/androidx/core/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..9d21a0c --- /dev/null +++ b/B4A/Objects/gen/androidx/drawerlayout/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..ba68d7e --- /dev/null +++ b/B4A/Objects/gen/androidx/fragment/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..528995d --- /dev/null +++ b/B4A/Objects/gen/androidx/media/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..bcd717f --- /dev/null +++ b/B4A/Objects/gen/androidx/swiperefreshlayout/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..5994de9 --- /dev/null +++ b/B4A/Objects/gen/com/google/android/gms/base/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..a0ff9bc --- /dev/null +++ b/B4A/Objects/gen/com/google/android/gms/common/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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..b257256 --- /dev/null +++ b/B4A/Objects/gen/com/google/android/gms/maps/R.java @@ -0,0 +1,2130 @@ +/* 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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/firebase/messaging/R.java b/B4A/Objects/gen/com/google/firebase/messaging/R.java new file mode 100644 index 0000000..6612a1c --- /dev/null +++ b/B4A/Objects/gen/com/google/firebase/messaging/R.java @@ -0,0 +1,2130 @@ +/* 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.firebase.messaging; + +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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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/gunav2/keymon/com/mx/Manifest.java b/B4A/Objects/gen/gunav2/keymon/com/mx/Manifest.java new file mode 100644 index 0000000..54d65a8 --- /dev/null +++ b/B4A/Objects/gen/gunav2/keymon/com/mx/Manifest.java @@ -0,0 +1,15 @@ +/* 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 gunav2.keymon.com.mx; + +public final class Manifest { + public static final class permission { + public static final String DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION="gunav2.keymon.com.mx.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION"; + } + +} \ No newline at end of file diff --git a/B4A/Objects/gen/gunav2/keymon/com/mx/R.java b/B4A/Objects/gen/gunav2/keymon/com/mx/R.java new file mode 100644 index 0000000..b5c5f60 --- /dev/null +++ b/B4A/Objects/gen/gunav2/keymon/com/mx/R.java @@ -0,0 +1,2130 @@ +/* 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 gunav2.keymon.com.mx; + +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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ */ + 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ */ + 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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ */ + 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge 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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset 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.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ */ + 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 default_web_client_id=0x7f090012; + public static final int fcm_fallback_notification_channel_label=0x7f090013; + public static final int firebase_database_url=0x7f090014; + public static final int gcm_defaultSenderId=0x7f090015; + public static final int google_api_key=0x7f090016; + public static final int google_app_id=0x7f090017; + public static final int google_crash_reporting_api_key=0x7f090018; + public static final int google_storage_bucket=0x7f090019; + public static final int project_id=0x7f09001a; + public static final int status_bar_notification_info_overflow=0x7f09001b; + } + 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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #ColorStateListItem_android_color android:color}
{@link #ColorStateListItem_android_alpha android:alpha}
{@link #ColorStateListItem_alpha gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:alpha + */ + public static final int ColorStateListItem_alpha=2; + /** + * Attributes that can be used with a CoordinatorLayout. + *

Includes the following attributes:

+ * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_keylines gunav2.keymon.com.mx:keylines}A reference to an array of integers representing the + * locations of horizontal keylines in dp from the starting edge.
{@link #CoordinatorLayout_statusBarBackground gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:statusBarBackground + */ + public static final int CoordinatorLayout_statusBarBackground=1; + /** + * Attributes that can be used with a CoordinatorLayout_Layout. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #CoordinatorLayout_Layout_android_layout_gravity android:layout_gravity}
{@link #CoordinatorLayout_Layout_layout_anchor gunav2.keymon.com.mx:layout_anchor}The id of an anchor view that this view should position relative to.
{@link #CoordinatorLayout_Layout_layout_anchorGravity gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_behavior}The class name of a Behavior class defining special runtime behavior + * for this child view.
{@link #CoordinatorLayout_Layout_layout_dodgeInsetEdges gunav2.keymon.com.mx:layout_dodgeInsetEdges}Specifies how this view dodges the inset edges of the CoordinatorLayout.
{@link #CoordinatorLayout_Layout_layout_insetEdge gunav2.keymon.com.mx:layout_insetEdge}Specifies how this view insets the CoordinatorLayout and make some other views + * dodge it.
{@link #CoordinatorLayout_Layout_layout_keyline gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50
center11
center_horizontal1
center_vertical10
clip_horizontal8
clip_vertical80
end800005
fill77
fill_horizontal7
fill_vertical70
left3
right5
start800003
top30
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Push object to the bottom of its container, not changing its size.
center11Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
center_horizontal1Place object in the horizontal center of its container, not changing its size.
center_vertical10Place object in the vertical center of its container, not changing its size.
clip_horizontal8Additional 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_vertical80Additional 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.
end800005Push object to the end of its container, not changing its size.
fill77Grow the horizontal and vertical size of the object if needed so it completely fills its container.
fill_horizontal7Grow the horizontal size of the object if needed so it completely fills its container.
fill_vertical70Grow the vertical size of the object if needed so it completely fills its container.
left3Push object to the left of its container, not changing its size.
right5Push object to the right of its container, not changing its size.
start800003Push object to the beginning of its container, not changing its size.
top30Push object to the top of its container, not changing its size.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
all77Dodge all the inset edges.
bottom50Dodge the bottom inset edge.
end800005Dodge the end inset edge.
left3Dodge the left inset edge.
none0Don't dodge any edges
right5Dodge the right inset edge.
start800003Dodge the start inset edge.
top30Dodge the top inset edge.
+ * + * @attr name gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
bottom50Inset the bottom edge.
end800005Inset the end edge.
left3Inset the left edge.
none0Don't inset.
right5Inset the right edge.
start800003Inset the start edge.
top30Inset the top edge.
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:layout_keyline + */ + public static final int CoordinatorLayout_Layout_layout_keyline=6; + /** + * Attributes that can be used with a DrawerLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #DrawerLayout_elevation gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:elevation + */ + public static final int DrawerLayout_elevation=0; + /** + * Attributes that can be used with a FontFamily. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #FontFamily_fontProviderAuthority gunav2.keymon.com.mx:fontProviderAuthority}The authority of the Font Provider to be used for the request.
{@link #FontFamily_fontProviderCerts gunav2.keymon.com.mx:fontProviderCerts}The sets of hashes for the certificates the provider should be signed with.
{@link #FontFamily_fontProviderFetchStrategy gunav2.keymon.com.mx:fontProviderFetchStrategy}The strategy to be used when fetching font data from a font provider in XML layouts.
{@link #FontFamily_fontProviderFetchTimeout gunav2.keymon.com.mx:fontProviderFetchTimeout}The length of the timeout during fetching.
{@link #FontFamily_fontProviderPackage gunav2.keymon.com.mx:fontProviderPackage}The package for the Font Provider to be used for the request.
{@link #FontFamily_fontProviderQuery gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
async1The 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.
blocking0The 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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + *
ConstantValueDescription
foreverffffffffA 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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:fontProviderQuery + */ + public static final int FontFamily_fontProviderQuery=5; + /** + * Attributes that can be used with a FontFamilyFont. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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 gunav2.keymon.com.mx:font}The reference to the font file to be used.
{@link #FontFamilyFont_fontStyle gunav2.keymon.com.mx:fontStyle}The style of the given font file.
{@link #FontFamilyFont_fontVariationSettings gunav2.keymon.com.mx:fontVariationSettings}The variation settings to be applied to the font.
{@link #FontFamilyFont_fontWeight gunav2.keymon.com.mx:fontWeight}The weight of the given font file.
{@link #FontFamilyFont_ttcIndex gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @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 gunav2.keymon.com.mx: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.

+ * + * + * + * + * + * + * + *
ConstantValueDescription
italic1
normal0
+ * + * @attr name gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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 gunav2.keymon.com.mx:ttcIndex + */ + public static final int FontFamilyFont_ttcIndex=9; + /** + * Attributes that can be used with a Fragment. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
linear0
radial1
sweep2
+ * + * @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.

+ * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
clamp0
disabledffffffff
mirror2
repeat1
+ * + * @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:

+ * + * + * + * + * + * + *
AttributeDescription
{@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:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #LoadingImageView_circleCrop gunav2.keymon.com.mx:circleCrop}
{@link #LoadingImageView_imageAspectRatio gunav2.keymon.com.mx:imageAspectRatio}
{@link #LoadingImageView_imageAspectRatioAdjust gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:circleCrop + */ + public static final int LoadingImageView_circleCrop=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:imageAspectRatio + */ + public static final int LoadingImageView_imageAspectRatio=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#imageAspectRatioAdjust} + * attribute's value can be found in the {@link #LoadingImageView} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
adjust_height2
adjust_width1
none0
+ * + * @attr name gunav2.keymon.com.mx:imageAspectRatioAdjust + */ + public static final int LoadingImageView_imageAspectRatioAdjust=2; + /** + * Attributes that can be used with a MapAttrs. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
AttributeDescription
{@link #MapAttrs_ambientEnabled gunav2.keymon.com.mx:ambientEnabled}
{@link #MapAttrs_cameraBearing gunav2.keymon.com.mx:cameraBearing}
{@link #MapAttrs_cameraMaxZoomPreference gunav2.keymon.com.mx:cameraMaxZoomPreference}
{@link #MapAttrs_cameraMinZoomPreference gunav2.keymon.com.mx:cameraMinZoomPreference}
{@link #MapAttrs_cameraTargetLat gunav2.keymon.com.mx:cameraTargetLat}
{@link #MapAttrs_cameraTargetLng gunav2.keymon.com.mx:cameraTargetLng}
{@link #MapAttrs_cameraTilt gunav2.keymon.com.mx:cameraTilt}
{@link #MapAttrs_cameraZoom gunav2.keymon.com.mx:cameraZoom}
{@link #MapAttrs_latLngBoundsNorthEastLatitude gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude}
{@link #MapAttrs_latLngBoundsNorthEastLongitude gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude}
{@link #MapAttrs_latLngBoundsSouthWestLatitude gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude}
{@link #MapAttrs_latLngBoundsSouthWestLongitude gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude}
{@link #MapAttrs_liteMode gunav2.keymon.com.mx:liteMode}
{@link #MapAttrs_mapType gunav2.keymon.com.mx:mapType}
{@link #MapAttrs_uiCompass gunav2.keymon.com.mx:uiCompass}
{@link #MapAttrs_uiMapToolbar gunav2.keymon.com.mx:uiMapToolbar}
{@link #MapAttrs_uiRotateGestures gunav2.keymon.com.mx:uiRotateGestures}
{@link #MapAttrs_uiScrollGestures gunav2.keymon.com.mx:uiScrollGestures}
{@link #MapAttrs_uiScrollGesturesDuringRotateOrZoom gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom}
{@link #MapAttrs_uiTiltGestures gunav2.keymon.com.mx:uiTiltGestures}
{@link #MapAttrs_uiZoomControls gunav2.keymon.com.mx:uiZoomControls}
{@link #MapAttrs_uiZoomGestures gunav2.keymon.com.mx:uiZoomGestures}
{@link #MapAttrs_useViewLifecycle gunav2.keymon.com.mx:useViewLifecycle}
{@link #MapAttrs_zOrderOnTop gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:ambientEnabled + */ + public static final int MapAttrs_ambientEnabled=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraBearing + */ + public static final int MapAttrs_cameraBearing=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMaxZoomPreference + */ + public static final int MapAttrs_cameraMaxZoomPreference=2; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraMinZoomPreference + */ + public static final int MapAttrs_cameraMinZoomPreference=3; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLat + */ + public static final int MapAttrs_cameraTargetLat=4; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTargetLng + */ + public static final int MapAttrs_cameraTargetLng=5; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraTilt + */ + public static final int MapAttrs_cameraTilt=6; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:cameraZoom + */ + public static final int MapAttrs_cameraZoom=7; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLatitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLatitude=8; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsNorthEastLongitude + */ + public static final int MapAttrs_latLngBoundsNorthEastLongitude=9; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLatitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLatitude=10; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:latLngBoundsSouthWestLongitude + */ + public static final int MapAttrs_latLngBoundsSouthWestLongitude=11; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:liteMode + */ + public static final int MapAttrs_liteMode=12; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.R.attr#mapType} + * attribute's value can be found in the {@link #MapAttrs} array. + * + *

Must be one of the following constant values.

+ * + * + * + * + * + * + * + * + * + * + *
ConstantValueDescription
hybrid4
none0
normal1
satellite2
terrain3
+ * + * @attr name gunav2.keymon.com.mx:mapType + */ + public static final int MapAttrs_mapType=13; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiCompass + */ + public static final int MapAttrs_uiCompass=14; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiMapToolbar + */ + public static final int MapAttrs_uiMapToolbar=15; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiRotateGestures + */ + public static final int MapAttrs_uiRotateGestures=16; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGestures + */ + public static final int MapAttrs_uiScrollGestures=17; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiScrollGesturesDuringRotateOrZoom + */ + public static final int MapAttrs_uiScrollGesturesDuringRotateOrZoom=18; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiTiltGestures + */ + public static final int MapAttrs_uiTiltGestures=19; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomControls + */ + public static final int MapAttrs_uiZoomControls=20; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:uiZoomGestures + */ + public static final int MapAttrs_uiZoomGestures=21; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:useViewLifecycle + */ + public static final int MapAttrs_useViewLifecycle=22; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:zOrderOnTop + */ + public static final int MapAttrs_zOrderOnTop=23; + /** + * Attributes that can be used with a SignInButton. + *

Includes the following attributes:

+ * + * + * + * + * + * + * + *
AttributeDescription
{@link #SignInButton_buttonSize gunav2.keymon.com.mx:buttonSize}
{@link #SignInButton_colorScheme gunav2.keymon.com.mx:colorScheme}
{@link #SignInButton_scopeUris gunav2.keymon.com.mx: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 gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
icon_only2
standard0
wide1
+ * + * @attr name gunav2.keymon.com.mx:buttonSize + */ + public static final int SignInButton_buttonSize=0; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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.

+ * + * + * + * + * + * + * + * + *
ConstantValueDescription
auto2
dark0
light1
+ * + * @attr name gunav2.keymon.com.mx:colorScheme + */ + public static final int SignInButton_colorScheme=1; + /** + *

This symbol is the offset where the {@link gunav2.keymon.com.mx.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 gunav2.keymon.com.mx:scopeUris + */ + public static final int SignInButton_scopeUris=2; + /** + * Attributes that can be used with a SwipeRefreshLayout. + *

Includes the following attributes:

+ * + * + * + * + * + *
AttributeDescription
{@link #SwipeRefreshLayout_swipeRefreshLayoutProgressSpinnerBackgroundColor gunav2.keymon.com.mx: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 gunav2.keymon.com.mx: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.png b/B4A/Objects/res/drawable/icon.png new file mode 100644 index 0000000..4dcd00c Binary files /dev/null and b/B4A/Objects/res/drawable/icon.png 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/values/googleservices.xml b/B4A/Objects/res/values/googleservices.xml new file mode 100644 index 0000000..c945648 --- /dev/null +++ b/B4A/Objects/res/values/googleservices.xml @@ -0,0 +1,11 @@ + + + + 821860097209 + pusher-4c091.appspot.com + pusher-4c091 + 1:821860097209:android:7b6620b2a870f23cf24f68 + AIzaSyDS-_5lpLX5IiKYrG-0Et-KCKx1bwlY7R0 + AIzaSyDS-_5lpLX5IiKYrG-0Et-KCKx1bwlY7R0 + 821860097209-ef17t5620111ghub7l0tple62otbb56v.apps.googleusercontent.com + \ 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..38d45a5 --- /dev/null +++ b/B4A/Objects/res/xml/provider_paths @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/animatedcounter.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/animatedcounter.class new file mode 100644 index 0000000..552236b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/animatedcounter.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/animatedcounter_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/animatedcounter_subs_0.class new file mode 100644 index 0000000..8f5d645 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/animatedcounter_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar.class new file mode 100644 index 0000000..54df7bb Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar_subs_0$ResumableSub_BusyLoop.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar_subs_0$ResumableSub_BusyLoop.class new file mode 100644 index 0000000..8819cfd Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar_subs_0$ResumableSub_BusyLoop.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar_subs_0.class new file mode 100644 index 0000000..7e5d362 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/anotherprogressbar_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater.class new file mode 100644 index 0000000..7b6c640 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0$ResumableSub_Service_Start.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0$ResumableSub_Service_Start.class new file mode 100644 index 0000000..6f4e228 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0$ResumableSub_Service_Start.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0$ResumableSub_download_newApk.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0$ResumableSub_download_newApk.class new file mode 100644 index 0000000..e13c402 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0$ResumableSub_download_newApk.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0.class new file mode 100644 index 0000000..986929c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/appupdater_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbitset.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbitset.class new file mode 100644 index 0000000..01e6a2e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbitset.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbitset_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbitset_subs_0.class new file mode 100644 index 0000000..6f98425 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbitset_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb.class new file mode 100644 index 0000000..02a8d9c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb_subs_0.class new file mode 100644 index 0000000..2aad38a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbreadcrumb_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder.class new file mode 100644 index 0000000..0c80693 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder_subs_0.class new file mode 100644 index 0000000..96d7479 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xbytesbuilder_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcache.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcache.class new file mode 100644 index 0000000..989ca86 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcache.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcache_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcache_subs_0.class new file mode 100644 index 0000000..cc1859c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcache_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcollections.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcollections.class new file mode 100644 index 0000000..36e93f9 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcollections.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcollections_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcollections_subs_0.class new file mode 100644 index 0000000..ed979aa Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcollections_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate.class new file mode 100644 index 0000000..57f075a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..ed9631a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate_subs_0.class new file mode 100644 index 0000000..58dd028 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcolortemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox.class new file mode 100644 index 0000000..37d5c37 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox_subs_0$ResumableSub_RaiseEvent.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox_subs_0$ResumableSub_RaiseEvent.class new file mode 100644 index 0000000..c80c3e8 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox_subs_0$ResumableSub_RaiseEvent.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox_subs_0.class new file mode 100644 index 0000000..04486ed Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcombobox_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort.class new file mode 100644 index 0000000..c6a0c54 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort_subs_0.class new file mode 100644 index 0000000..4a93470 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xcomparatorsort_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate.class new file mode 100644 index 0000000..578be1e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..faf5cc4 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate_subs_0.class new file mode 100644 index 0000000..79634ef Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdatetemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog.class new file mode 100644 index 0000000..695bade Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..04054d2 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_ShowCustom.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_ShowCustom.class new file mode 100644 index 0000000..4798ff7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_ShowCustom.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_ShowTemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_ShowTemplate.class new file mode 100644 index 0000000..165d25c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0$ResumableSub_ShowTemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0.class new file mode 100644 index 0000000..6c0d70c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xdialog_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield.class new file mode 100644 index 0000000..d401bce Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield_subs_0$ResumableSub_SwitchFromPasswordToRegular.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield_subs_0$ResumableSub_SwitchFromPasswordToRegular.class new file mode 100644 index 0000000..2304360 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield_subs_0$ResumableSub_SwitchFromPasswordToRegular.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield_subs_0.class new file mode 100644 index 0000000..49eb463 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xfloattextfield_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xformatter.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xformatter.class new file mode 100644 index 0000000..596bbec Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xformatter.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xformatter_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xformatter_subs_0.class new file mode 100644 index 0000000..8037364 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xformatter_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4ximageview.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4ximageview.class new file mode 100644 index 0000000..a60fa27 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4ximageview.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4ximageview_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4ximageview_subs_0.class new file mode 100644 index 0000000..8b54283 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4ximageview_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate.class new file mode 100644 index 0000000..4fca543 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..0a84a6b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate_subs_0.class new file mode 100644 index 0000000..51517de Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xinputtemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate.class new file mode 100644 index 0000000..001cbf1 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..66b6f3a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate_subs_0.class new file mode 100644 index 0000000..0cc8e8f Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlisttemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator.class new file mode 100644 index 0000000..69f8d19 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator_subs_0$ResumableSub_MainLoop.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator_subs_0$ResumableSub_MainLoop.class new file mode 100644 index 0000000..af5f87d Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator_subs_0$ResumableSub_MainLoop.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator_subs_0.class new file mode 100644 index 0000000..8025594 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xloadingindicator_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate.class new file mode 100644 index 0000000..bd5a2c5 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate_subs_0.class new file mode 100644 index 0000000..f5636fe Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xlongtexttemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage.class new file mode 100644 index 0000000..209a92e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_B4XPage_Appear.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..4f19f48 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..2c80f58 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_b_envioBD_Click.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_b_envioBD_Click.class new file mode 100644 index 0000000..4970acd Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_b_envioBD_Click.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_copiaDB.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_copiaDB.class new file mode 100644 index 0000000..84c4b74 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_copiaDB.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_revisaActualizacion.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_revisaActualizacion.class new file mode 100644 index 0000000..194c102 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0$ResumableSub_revisaActualizacion.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0.class new file mode 100644 index 0000000..b9a10e3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xmainpage_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xorderedmap.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xorderedmap.class new file mode 100644 index 0000000..ff63fef Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xorderedmap.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xorderedmap_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xorderedmap_subs_0.class new file mode 100644 index 0000000..fbdb72a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xorderedmap_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpages.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpages.class new file mode 100644 index 0000000..4c08df8 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpages.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpages_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpages_subs_0.class new file mode 100644 index 0000000..cd76018 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpages_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator.class new file mode 100644 index 0000000..9de7cbe Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator_subs_0.class new file mode 100644 index 0000000..9bdbb02 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesdelegator_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager.class new file mode 100644 index 0000000..0614a2b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager_subs_0$ResumableSub_HandleCloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager_subs_0$ResumableSub_HandleCloseRequest.class new file mode 100644 index 0000000..0fcc73b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager_subs_0$ResumableSub_HandleCloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager_subs_0.class new file mode 100644 index 0000000..d444b3f Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xpagesmanager_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus.class new file mode 100644 index 0000000..009907c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus_subs_0$ResumableSub_StartDownLoop.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus_subs_0$ResumableSub_StartDownLoop.class new file mode 100644 index 0000000..37fc49e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus_subs_0$ResumableSub_StartDownLoop.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus_subs_0.class new file mode 100644 index 0000000..9e41bc6 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xplusminus_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton.class new file mode 100644 index 0000000..c450268 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton_subs_0$ResumableSub_SetValueImpl.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton_subs_0$ResumableSub_SetValueImpl.class new file mode 100644 index 0000000..5da94f0 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton_subs_0$ResumableSub_SetValueImpl.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton_subs_0.class new file mode 100644 index 0000000..0c3ee5a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xradiobutton_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate.class new file mode 100644 index 0000000..def5d11 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..2011f60 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate_subs_0.class new file mode 100644 index 0000000..30bd98b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsearchtemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xseekbar.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xseekbar.class new file mode 100644 index 0000000..9c4ab48 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xseekbar.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xseekbar_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xseekbar_subs_0.class new file mode 100644 index 0000000..e57bd9a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xseekbar_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xset.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xset.class new file mode 100644 index 0000000..6293b69 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xset.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xset_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xset_subs_0.class new file mode 100644 index 0000000..27f7c28 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xset_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate.class new file mode 100644 index 0000000..e776ba5 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate_subs_0.class new file mode 100644 index 0000000..f990310 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xsignaturetemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch.class new file mode 100644 index 0000000..be3e21c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch_subs_0$ResumableSub_SetValueImpl.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch_subs_0$ResumableSub_SetValueImpl.class new file mode 100644 index 0000000..8719614 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch_subs_0$ResumableSub_SetValueImpl.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch_subs_0.class new file mode 100644 index 0000000..6910b13 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xswitch_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate.class new file mode 100644 index 0000000..d69773d Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate_subs_0$ResumableSub_Show.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate_subs_0$ResumableSub_Show.class new file mode 100644 index 0000000..4e6e21b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate_subs_0$ResumableSub_Show.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate_subs_0.class new file mode 100644 index 0000000..9315a9d Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/b4xtimedtemplate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/batteryutilities.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/batteryutilities.class new file mode 100644 index 0000000..cf56d91 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/batteryutilities.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/batteryutilities_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/batteryutilities_subs_0.class new file mode 100644 index 0000000..a5adfb4 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/batteryutilities_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_bitacora.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_bitacora.class new file mode 100644 index 0000000..eef817e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_bitacora.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_bitacora_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_bitacora_subs_0.class new file mode 100644 index 0000000..9bd3fb2 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_bitacora_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente.class new file mode 100644 index 0000000..76fce7c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B4XPage_Appear.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..c261508 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..a2f63ae Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B_IMP_Click.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B_IMP_Click.class new file mode 100644 index 0000000..cf7bc47 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_B_IMP_Click.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Cuestionario.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Cuestionario.class new file mode 100644 index 0000000..2e463a0 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Cuestionario.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_EnviarPDFWhatsAppNumero.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_EnviarPDFWhatsAppNumero.class new file mode 100644 index 0000000..bc88943 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_EnviarPDFWhatsAppNumero.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_EnviarPDFWhatsAppNumero2.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_EnviarPDFWhatsAppNumero2.class new file mode 100644 index 0000000..9b1a1a8 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_EnviarPDFWhatsAppNumero2.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion.class new file mode 100644 index 0000000..9a238d1 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion2.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion2.class new file mode 100644 index 0000000..620abe1 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion2.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion3.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion3.class new file mode 100644 index 0000000..9d80c45 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion3.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion4.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion4.class new file mode 100644 index 0000000..9042609 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion4.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion5.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion5.class new file mode 100644 index 0000000..a955273 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_Impresion5.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_InitializeCamera2.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_InitializeCamera2.class new file mode 100644 index 0000000..9630e8b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_InitializeCamera2.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_MejorarPrecisionGPS.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_MejorarPrecisionGPS.class new file mode 100644 index 0000000..cc49f30 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_MejorarPrecisionGPS.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_b_envioPDF_Click.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_b_envioPDF_Click.class new file mode 100644 index 0000000..dfe8b3a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_b_envioPDF_Click.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_b_preventa2_Click.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_b_preventa2_Click.class new file mode 100644 index 0000000..47c2f94 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_b_preventa2_Click.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_enviaTicket.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_enviaTicket.class new file mode 100644 index 0000000..cb36598 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_enviaTicket.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_gest_Click.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_gest_Click.class new file mode 100644 index 0000000..0a08f3b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_gest_Click.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_mandaWAMsgCredito.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_mandaWAMsgCredito.class new file mode 100644 index 0000000..7894f07 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_mandaWAMsgCredito.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_sc_result.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_sc_result.class new file mode 100644 index 0000000..9c5b316 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0$ResumableSub_sc_result.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0.class new file mode 100644 index 0000000..7d48c7a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cliente_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes.class new file mode 100644 index 0000000..7aa1848 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..549cfd0 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes_subs_0.class new file mode 100644 index 0000000..d7e24a3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_clientes_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cuestionario.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cuestionario.class new file mode 100644 index 0000000..43825c1 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cuestionario.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cuestionario_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cuestionario_subs_0.class new file mode 100644 index 0000000..83fb591 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_cuestionario_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico.class new file mode 100644 index 0000000..725b118 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2.class new file mode 100644 index 0000000..6952ea3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..54e3000 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2_subs_0.class new file mode 100644 index 0000000..20f54d5 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico2_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..cba00cd Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico_subs_0.class new file mode 100644 index 0000000..dd58a20 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historico_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historicobat.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historicobat.class new file mode 100644 index 0000000..9fb19d2 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historicobat.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historicobat_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historicobat_subs_0.class new file mode 100644 index 0000000..925a348 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_historicobat_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_mapas.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_mapas.class new file mode 100644 index 0000000..f70ea66 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_mapas.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_mapas_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_mapas_subs_0.class new file mode 100644 index 0000000..e4ec72e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_mapas_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota.class new file mode 100644 index 0000000..5ec91d2 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..fc1911b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota_subs_0.class new file mode 100644 index 0000000..7fbde7a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nota_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_noventa.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_noventa.class new file mode 100644 index 0000000..1579eb7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_noventa.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_noventa_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_noventa_subs_0.class new file mode 100644 index 0000000..252a6e0 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_noventa_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente.class new file mode 100644 index 0000000..e3b4150 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente_subs_0$ResumableSub_B4XPage_Created.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente_subs_0$ResumableSub_B4XPage_Created.class new file mode 100644 index 0000000..b56d83b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente_subs_0$ResumableSub_B4XPage_Created.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente_subs_0.class new file mode 100644 index 0000000..2275fe2 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_nuevocliente_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos.class new file mode 100644 index 0000000..11d52b7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..68f6ea7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos_subs_0.class new file mode 100644 index 0000000..9867fc1 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_pedidos_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal.class new file mode 100644 index 0000000..4bd847b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..8848a83 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0$ResumableSub_connecta_Click.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0$ResumableSub_connecta_Click.class new file mode 100644 index 0000000..d02434b Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0$ResumableSub_connecta_Click.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0.class new file mode 100644 index 0000000..468a66d Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_principal_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos.class new file mode 100644 index 0000000..8e2eb35 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_B4XPage_Appear.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..c076a75 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_B4XPage_CloseRequest.class new file mode 100644 index 0000000..c869068 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_Busca_TextChanged.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_Busca_TextChanged.class new file mode 100644 index 0000000..5eff602 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_Busca_TextChanged.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_lv_catalogos2_ItemClick.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_lv_catalogos2_ItemClick.class new file mode 100644 index 0000000..09c7d5d Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0$ResumableSub_lv_catalogos2_ItemClick.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0.class new file mode 100644 index 0000000..a95bfcd Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_productos_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_promos.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_promos.class new file mode 100644 index 0000000..fa8d605 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_promos.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_promos_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_promos_subs_0.class new file mode 100644 index 0000000..e210ef8 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_promos_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_ticketsdia.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_ticketsdia.class new file mode 100644 index 0000000..c046f9a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_ticketsdia.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_ticketsdia_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_ticketsdia_subs_0.class new file mode 100644 index 0000000..34e7caf Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_ticketsdia_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable.class new file mode 100644 index 0000000..5c1f21a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable_subs_0$ResumableSub_B4XPage_Appear.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable_subs_0$ResumableSub_B4XPage_Appear.class new file mode 100644 index 0000000..bc4de20 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable_subs_0$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable_subs_0.class new file mode 100644 index 0000000..1a9bbba Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/c_updateavailable_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cameraexclass.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cameraexclass.class new file mode 100644 index 0000000..2455012 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cameraexclass.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cameraexclass_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cameraexclass_subs_0.class new file mode 100644 index 0000000..f509351 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cameraexclass_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate.class new file mode 100644 index 0000000..d97b639 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_DownloadApk.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_DownloadApk.class new file mode 100644 index 0000000..dbca174 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_DownloadApk.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_IsvalidWV.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_IsvalidWV.class new file mode 100644 index 0000000..e0b7223 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_IsvalidWV.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_ReadWebVN.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_ReadWebVN.class new file mode 100644 index 0000000..978cc3f Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_ReadWebVN.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_TryApkUpdate.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_TryApkUpdate.class new file mode 100644 index 0000000..3000e83 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_TryApkUpdate.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_UpdateApk.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_UpdateApk.class new file mode 100644 index 0000000..b02fcca Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0$ResumableSub_UpdateApk.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0.class new file mode 100644 index 0000000..b79473a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cl_appupdate_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cpdf.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cpdf.class new file mode 100644 index 0000000..ad68e2c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cpdf.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cpdf_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cpdf_subs_0.class new file mode 100644 index 0000000..6340667 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/cpdf_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/dbrequestmanager.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/dbrequestmanager.class new file mode 100644 index 0000000..f133ab3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/dbrequestmanager.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/dbrequestmanager_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/dbrequestmanager_subs_0.class new file mode 100644 index 0000000..0805e15 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/dbrequestmanager_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/escposprinter.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/escposprinter.class new file mode 100644 index 0000000..27705b7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/escposprinter.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/escposprinter_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/escposprinter_subs_0.class new file mode 100644 index 0000000..b460dbe Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/escposprinter_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/fileprovider.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/fileprovider.class new file mode 100644 index 0000000..5dc2a3f Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/fileprovider.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/fileprovider_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/fileprovider_subs_0.class new file mode 100644 index 0000000..d4a60f7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/fileprovider_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging.class new file mode 100644 index 0000000..75f33d7 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging_subs_0$ResumableSub_Service_Start.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging_subs_0$ResumableSub_Service_Start.class new file mode 100644 index 0000000..4548999 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging_subs_0$ResumableSub_Service_Start.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging_subs_0.class new file mode 100644 index 0000000..33dc331 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/firebasemessaging_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httpjob.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httpjob.class new file mode 100644 index 0000000..7645d3a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httpjob.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httpjob_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httpjob_subs_0.class new file mode 100644 index 0000000..451cb42 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httpjob_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httputils2service.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httputils2service.class new file mode 100644 index 0000000..446bfc3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httputils2service.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httputils2service_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httputils2service_subs_0.class new file mode 100644 index 0000000..385e2e8 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/httputils2service_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/madewithlove.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/madewithlove.class new file mode 100644 index 0000000..1e91423 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/madewithlove.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/madewithlove_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/madewithlove_subs_0.class new file mode 100644 index 0000000..14b6817 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/madewithlove_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/main.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/main.class new file mode 100644 index 0000000..4e70a62 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/main.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/main_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/main_subs_0.class new file mode 100644 index 0000000..3008cb3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/main_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas.class new file mode 100644 index 0000000..cf6e88c Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas_subs_0$ResumableSub_MapFragment1_Ready.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas_subs_0$ResumableSub_MapFragment1_Ready.class new file mode 100644 index 0000000..e89c2ca Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas_subs_0$ResumableSub_MapFragment1_Ready.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas_subs_0.class new file mode 100644 index 0000000..905989f Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/mapa_rutas_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/newinst2.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/newinst2.class new file mode 100644 index 0000000..8bfd317 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/newinst2.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/newinst2_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/newinst2_subs_0.class new file mode 100644 index 0000000..300bbbf Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/newinst2_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv.class new file mode 100644 index 0000000..7140a07 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0$ResumableSub_B4XSeekBar1_TouchStateChanged.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0$ResumableSub_B4XSeekBar1_TouchStateChanged.class new file mode 100644 index 0000000..dff1df3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0$ResumableSub_B4XSeekBar1_TouchStateChanged.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0$ResumableSub_ListChangedExternally.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0$ResumableSub_ListChangedExternally.class new file mode 100644 index 0000000..bda1de5 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0$ResumableSub_ListChangedExternally.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0.class new file mode 100644 index 0000000..e4061aa Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/preoptimizedclv_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/roundslider.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/roundslider.class new file mode 100644 index 0000000..84fc46a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/roundslider.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/roundslider_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/roundslider_subs_0.class new file mode 100644 index 0000000..cff800e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/roundslider_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel.class new file mode 100644 index 0000000..d845f67 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel_subs_0$ResumableSub_StartScrolling.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel_subs_0$ResumableSub_StartScrolling.class new file mode 100644 index 0000000..b4d0212 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel_subs_0$ResumableSub_StartScrolling.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel_subs_0.class new file mode 100644 index 0000000..721fb1e Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/scrollinglabel_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/starter.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/starter.class new file mode 100644 index 0000000..614a6bb Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/starter.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/starter_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/starter_subs_0.class new file mode 100644 index 0000000..5a4b004 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/starter_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/subs.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/subs.class new file mode 100644 index 0000000..d987569 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/subs.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/subs_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/subs_subs_0.class new file mode 100644 index 0000000..83c9aa3 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/subs_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/swiftbutton.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/swiftbutton.class new file mode 100644 index 0000000..2887ce8 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/swiftbutton.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/swiftbutton_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/swiftbutton_subs_0.class new file mode 100644 index 0000000..5a6049a Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/swiftbutton_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker.class new file mode 100644 index 0000000..4ba4205 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLP.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLP.class new file mode 100644 index 0000000..193e584 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLP.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLP2.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLP2.class new file mode 100644 index 0000000..72b23a5 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLP2.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLPSmall.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLPSmall.class new file mode 100644 index 0000000..6aa02ea Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0$ResumableSub_StartFLPSmall.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0.class new file mode 100644 index 0000000..a7b4beb Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/tracker_subs_0.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/xuiviewsutils.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/xuiviewsutils.class new file mode 100644 index 0000000..933af53 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/xuiviewsutils.class differ diff --git a/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/xuiviewsutils_subs_0.class b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/xuiviewsutils_subs_0.class new file mode 100644 index 0000000..ea259f1 Binary files /dev/null and b/B4A/Objects/shell/bin/classes/gunav2/keymon/com/mx/xuiviewsutils_subs_0.class differ diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/animatedcounter.java b/B4A/Objects/src/gunav2/keymon/com/mx/animatedcounter.java new file mode 100644 index 0000000..a0e50d5 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/animatedcounter.java @@ -0,0 +1,337 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.animatedcounter"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/anotherprogressbar.java b/B4A/Objects/src/gunav2/keymon/com/mx/anotherprogressbar.java new file mode 100644 index 0000000..122855f --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/anotherprogressbar.java @@ -0,0 +1,550 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.anotherprogressbar"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.anotherprogressbar parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/appupdater.java b/B4A/Objects/src/gunav2/keymon/com/mx/appupdater.java new file mode 100644 index 0000000..3ce436b --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/appupdater.java @@ -0,0 +1,770 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.appupdater._mnewversion _newapp = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 = 242;BA.debugLine="Private Sub CreateNotification(Title As String, Co"; + //BA.debugLineNum = 243;BA.debugLine="n2.Initialize"; +_n2.Initialize(); + //BA.debugLineNum = 244;BA.debugLine="n2.Light = False"; +_n2.setLight(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 245;BA.debugLine="n2.Vibrate = Vibrate"; +_n2.setVibrate(_vibrate); + //BA.debugLineNum = 246;BA.debugLine="n2.Sound = Sound"; +_n2.setSound(_sound); + //BA.debugLineNum = 247;BA.debugLine="n2.OnGoingEvent = True"; +_n2.setOnGoingEvent(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 248;BA.debugLine="n2.Icon = Icon"; +_n2.setIcon(_icon); + //BA.debugLineNum = 249;BA.debugLine="n2.SetInfo(Title, Content, TargetActivity)"; +_n2.SetInfoNew(processBA,BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_content),_targetactivity); + //BA.debugLineNum = 250;BA.debugLine="n2.Notify(nNewAppnID)"; +_n2.Notify(_nnewappnid); + //BA.debugLineNum = 251;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 = 226;BA.debugLine="Private Sub CreateNotification2(Title As String, C"; + //BA.debugLineNum = 229;BA.debugLine="pN.Initialize2(pN.IMPORTANCE_HIGH)"; +_pn.Initialize2(_pn.IMPORTANCE_HIGH); + //BA.debugLineNum = 232;BA.debugLine="pN.Vibrate = Vibrate"; +_pn.setVibrate(_vibrate); + //BA.debugLineNum = 233;BA.debugLine="pN.Sound = Sound"; +_pn.setSound(_sound); + //BA.debugLineNum = 235;BA.debugLine="pN.Icon = Icon"; +_pn.setIcon(_icon); + //BA.debugLineNum = 236;BA.debugLine="pN.AutoCancel = True"; +_pn.setAutoCancel(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 237;BA.debugLine="pN.SetInfo(Title, Content, TargetActivity)"; +_pn.SetInfoNew(processBA,BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_content),_targetactivity); + //BA.debugLineNum = 238;BA.debugLine="pN.Notify(pNID)"; +_pn.Notify(_pnid); + //BA.debugLineNum = 239;BA.debugLine="Return pN"; +if (true) return _pn; + //BA.debugLineNum = 240;BA.debugLine="End Sub"; +return null; +} +public static gunav2.keymon.com.mx.httpjob _download(Object _callback,String _link) throws Exception{ +gunav2.keymon.com.mx.httpjob _j = null; + //BA.debugLineNum = 219;BA.debugLine="Sub Download (Callback As Object, link As String)"; + //BA.debugLineNum = 220;BA.debugLine="Dim j As HttpJob"; +_j = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 221;BA.debugLine="j.Initialize(\"\", Callback)"; +_j._initialize /*String*/ (processBA,"",_callback); + //BA.debugLineNum = 222;BA.debugLine="j.Download(link)"; +_j._download /*String*/ (_link); + //BA.debugLineNum = 223;BA.debugLine="Return j"; +if (true) return _j; + //BA.debugLineNum = 224;BA.debugLine="End Sub"; +return null; +} +public static String _download_destroy() throws Exception{ + //BA.debugLineNum = 214;BA.debugLine="Sub download_Destroy"; + //BA.debugLineNum = 215;BA.debugLine="n2.Cancel(n2ID)"; +_n2.Cancel(_n2id); + //BA.debugLineNum = 216;BA.debugLine="Service.StopForeground(n2ID)"; +mostCurrent._service.StopForeground(_n2id); + //BA.debugLineNum = 217;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(gunav2.keymon.com.mx.appupdater parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.appupdater parent; +gunav2.keymon.com.mx.httpjob _job_newapp = null; +boolean _downladsuccess = false; +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 = 162;BA.debugLine="Log(\"Descargando actualización\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369926915","Descargando actualización",0); + //BA.debugLineNum = 164;BA.debugLine="Starter.muestraProgreso = 1"; +parent.mostCurrent._starter._muestraprogreso /*String*/ = BA.NumberToString(1); + //BA.debugLineNum = 165;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando nu"; +parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Descargando nueva versión, un momento por favor."); + //BA.debugLineNum = 166;BA.debugLine="Dim job_newAPP As HttpJob"; +_job_newapp = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 167;BA.debugLine="If job_newAPP.IsInitialized Then job_newAPP.Relea"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_job_newapp.IsInitialized /*boolean*/ ()) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +_job_newapp._release /*String*/ (); +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 168;BA.debugLine="Log(\">>>> LOGIN LINK2: \" & Starter.nuevoLink)"; +anywheresoftware.b4a.keywords.Common.LogImpl("369926921",">>>> LOGIN LINK2: "+parent.mostCurrent._starter._nuevolink /*String*/ ,0); + //BA.debugLineNum = 169;BA.debugLine="If Starter.nuevoLink <> \"\" Then newApp.appLink ="; +if (true) break; + +case 7: +//if +this.state = 12; +if ((parent.mostCurrent._starter._nuevolink /*String*/ ).equals("") == false) { +this.state = 9; +;}if (true) break; + +case 9: +//C +this.state = 12; +parent._newapp.appLink /*String*/ = parent.mostCurrent._starter._nuevolink /*String*/ ; +if (true) break; + +case 12: +//C +this.state = 13; +; + //BA.debugLineNum = 170;BA.debugLine="job_newAPP.Initialize(\"job_newAPP\",Me)"; +_job_newapp._initialize /*String*/ (processBA,"job_newAPP",appupdater.getObject()); + //BA.debugLineNum = 171;BA.debugLine="Log(newApp.appLink & \"?dummy=\" & DateTime.Now)"; +anywheresoftware.b4a.keywords.Common.LogImpl("369926924",parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),0); + //BA.debugLineNum = 172;BA.debugLine="job_newAPP.Download(newApp.appLink & \"?dummy=\" &"; +_job_newapp._download /*String*/ (parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow())); + //BA.debugLineNum = 173;BA.debugLine="Log(\"Vamos a descargar: \" & newApp.appLink & \"?du"; +anywheresoftware.b4a.keywords.Common.LogImpl("369926926","Vamos a descargar: "+parent._newapp.appLink /*String*/ +"?dummy="+BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),0); + //BA.debugLineNum = 174;BA.debugLine="Wait for (job_newAPP) JobDone (job_newAPP As Http"; +anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, this, (Object)(_job_newapp)); +this.state = 27; +return; +case 27: +//C +this.state = 13; +_job_newapp = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 175;BA.debugLine="Private downladSuccess As Boolean = False"; +_downladsuccess = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 176;BA.debugLine="If job_newAPP.Success = True Then"; +if (true) break; + +case 13: +//if +this.state = 20; +if (_job_newapp._success /*boolean*/ ==anywheresoftware.b4a.keywords.Common.True) { +this.state = 15; +}if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 178;BA.debugLine="downladSuccess = True"; +_downladsuccess = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 179;BA.debugLine="If File.Exists(SharedFolder,\"newapp.apk\") Then"; +if (true) break; + +case 16: +//if +this.state = 19; +if (anywheresoftware.b4a.keywords.Common.File.Exists(parent._sharedfolder,"newapp.apk")) { +this.state = 18; +}if (true) break; + +case 18: +//C +this.state = 19; + //BA.debugLineNum = 181;BA.debugLine="File.Delete(SharedFolder,\"newapp.apk\")"; +anywheresoftware.b4a.keywords.Common.File.Delete(parent._sharedfolder,"newapp.apk"); + if (true) break; + +case 19: +//C +this.state = 20; +; + //BA.debugLineNum = 184;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 = 185;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 = 186;BA.debugLine="outNewAPK.Close"; +_outnewapk.Close(); + //BA.debugLineNum = 187;BA.debugLine="Log(\"APK dir: \"&SharedFolder)"; +anywheresoftware.b4a.keywords.Common.LogImpl("369926940","APK dir: "+parent._sharedfolder,0); + if (true) break; + +case 20: +//C +this.state = 21; +; + //BA.debugLineNum = 189;BA.debugLine="job_newAPP.Release"; +_job_newapp._release /*String*/ (); + //BA.debugLineNum = 190;BA.debugLine="n2.Cancel(nNewAppnID)"; +parent._n2.Cancel(parent._nnewappnid); + //BA.debugLineNum = 191;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; +parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._ocultaprogreso /*String*/ (); + //BA.debugLineNum = 192;BA.debugLine="If downladSuccess Then"; +if (true) break; + +case 21: +//if +this.state = 26; +if (_downladsuccess) { +this.state = 23; +}else { +this.state = 25; +}if (true) break; + +case 23: +//C +this.state = 26; + //BA.debugLineNum = 194;BA.debugLine="Dim in As Intent"; +_in = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 195;BA.debugLine="in.Initialize(in.ACTION_VIEW,\"\" )"; +_in.Initialize(_in.ACTION_VIEW,""); + //BA.debugLineNum = 196;BA.debugLine="SetFileUriAsIntentData(in, \"newapp.apk\")"; +_setfileuriasintentdata(_in,"newapp.apk"); + //BA.debugLineNum = 198;BA.debugLine="in.SetType(\"application/vnd.android.package-arch"; +_in.SetType("application/vnd.android.package-archive"); + //BA.debugLineNum = 199;BA.debugLine="StartActivity(in)"; +anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_in.getObject())); + if (true) break; + +case 25: +//C +this.state = 26; + //BA.debugLineNum = 201;BA.debugLine="B4XPages.MainPage.principal.l_forzarActualizacio"; +parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._principal /*gunav2.keymon.com.mx.c_principal*/ ._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 202;BA.debugLine="B4XPages.MainPage.principal.l_forzarActualizacio"; +parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._principal /*gunav2.keymon.com.mx.c_principal*/ ._l_forzaractualizacion /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Hubo un error en la descarga, por favor revise que tenga conexion a internet e intente de nuevo.")); + //BA.debugLineNum = 203;BA.debugLine="Log(\"ERROR EN CONEXION\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369926956","ERROR EN CONEXION",0); + //BA.debugLineNum = 204;BA.debugLine="Sleep(5000)"; +anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (5000)); +this.state = 28; +return; +case 28: +//C +this.state = 26; +; + //BA.debugLineNum = 205;BA.debugLine="ExitApplication"; +anywheresoftware.b4a.keywords.Common.ExitApplication(); + if (true) break; + +case 26: +//C +this.state = -1; +; + //BA.debugLineNum = 207;BA.debugLine="Starter.muestraProgreso = 0"; +parent.mostCurrent._starter._muestraprogreso /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 208;BA.debugLine="B4XPages.MainPage.principal.p_transparenteActuali"; +parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._principal /*gunav2.keymon.com.mx.c_principal*/ ._p_transparenteactualizacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 210;BA.debugLine="StopService(Me)"; +anywheresoftware.b4a.keywords.Common.StopService(processBA,appupdater.getObject()); + //BA.debugLineNum = 212;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public static void _jobdone(gunav2.keymon.com.mx.httpjob _job_newapp) throws Exception{ +} +public static String _download_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ + //BA.debugLineNum = 155;BA.debugLine="Sub download_Start (StartingIntent As Intent)"; + //BA.debugLineNum = 156;BA.debugLine="download_newApk"; +_download_newapk(); + //BA.debugLineNum = 157;BA.debugLine="End Sub"; +return ""; +} +public static String _fileprovider_init() throws Exception{ +anywheresoftware.b4a.phone.Phone _p = null; + //BA.debugLineNum = 257;BA.debugLine="Sub fileProvider_init"; + //BA.debugLineNum = 258;BA.debugLine="Dim p As Phone"; +_p = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 259;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 = 260;BA.debugLine="UseFileProvider = True"; +_usefileprovider = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 261;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s"; +_sharedfolder = anywheresoftware.b4a.keywords.Common.File.Combine(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"shared"); + //BA.debugLineNum = 262;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 = 263;BA.debugLine="File.MakeDir(\"\", SharedFolder)"; +anywheresoftware.b4a.keywords.Common.File.MakeDir("",_sharedfolder); + }; + }else { + //BA.debugLineNum = 266;BA.debugLine="UseFileProvider = False"; +_usefileprovider = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 267;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; +_sharedfolder = _rp.GetSafeDirDefaultExternal("shared"); + }; + //BA.debugLineNum = 269;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("370320140",("Using FileProvider? "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0); + //BA.debugLineNum = 270;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 = 273;BA.debugLine="Sub GetFileUri (FileName As String) As Object"; + //BA.debugLineNum = 274;BA.debugLine="Try"; +try { //BA.debugLineNum = 275;BA.debugLine="If Not(UseFileProvider) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(_usefileprovider)) { + //BA.debugLineNum = 276;BA.debugLine="Dim uri As JavaObject"; +_uri = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 277;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 = 279;BA.debugLine="Dim f As JavaObject"; +_f = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 280;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh"; +_f.InitializeNewInstance("java.io.File",new Object[]{(Object)(_sharedfolder),(Object)(_filename)}); + //BA.debugLineNum = 281;BA.debugLine="Dim fp As JavaObject"; +_fp = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 282;BA.debugLine="Dim context As JavaObject"; +_context = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 283;BA.debugLine="context.InitializeContext"; +_context.InitializeContext(processBA); + //BA.debugLineNum = 284;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; +_fp.InitializeStatic("androidx.core.content.FileProvider"); + //BA.debugLineNum = 285;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 = 287;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last"; +anywheresoftware.b4a.keywords.Common.LogImpl("370385678","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0); + //BA.debugLineNum = 288;BA.debugLine="Return \"\""; +if (true) return (Object)(""); + }; + //BA.debugLineNum = 290;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/guna/gunaPreventa.ver"; + //BA.debugLineNum = 89;BA.debugLine="Public nNewApp As Notification"; +_nnewapp = new anywheresoftware.b4a.objects.NotificationWrapper(); + //BA.debugLineNum = 90;BA.debugLine="Public nNewAppnID As Int = 16"; +_nnewappnid = (int) (16); + //BA.debugLineNum = 92;BA.debugLine="Dim nativeMe As JavaObject"; +_nativeme = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 93;BA.debugLine="Dim n2 As Notification"; +_n2 = new anywheresoftware.b4a.objects.NotificationWrapper(); + //BA.debugLineNum = 94;BA.debugLine="Dim n2ID As Int = 16"; +_n2id = (int) (16); + //BA.debugLineNum = 96;BA.debugLine="Public SharedFolder As String"; +_sharedfolder = ""; + //BA.debugLineNum = 97;BA.debugLine="Public UseFileProvider As Boolean"; +_usefileprovider = false; + //BA.debugLineNum = 98;BA.debugLine="Private rp As RuntimePermissions"; +_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); + //BA.debugLineNum = 99;BA.debugLine="Type mNewVersion(update As Boolean, nonewAPP As B"; +; + //BA.debugLineNum = 101;BA.debugLine="Public newApp As mNewVersion"; +_newapp = new gunav2.keymon.com.mx.appupdater._mnewversion(); + //BA.debugLineNum = 102;BA.debugLine="End Sub"; +return ""; +} +public static String _service_create() throws Exception{ + //BA.debugLineNum = 104;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 105;BA.debugLine="Log(\"appUpdater(), Service_Create\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369730305","appUpdater(), Service_Create",0); + //BA.debugLineNum = 106;BA.debugLine="newApp.Initialize"; +_newapp.Initialize(); + //BA.debugLineNum = 107;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT"; +mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER; + //BA.debugLineNum = 108;BA.debugLine="n2.Initialize"; +_n2.Initialize(); + //BA.debugLineNum = 109;BA.debugLine="nativeMe.InitializeContext"; +_nativeme.InitializeContext(processBA); + //BA.debugLineNum = 110;BA.debugLine="End Sub"; +return ""; +} +public static String _service_destroy() throws Exception{ + //BA.debugLineNum = 253;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 254;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("370254593","appUpdater(), Service_Destroy",0); + //BA.debugLineNum = 255;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(gunav2.keymon.com.mx.appupdater parent,anywheresoftware.b4a.objects.IntentWrapper _startingintent) { +this.parent = parent; +this._startingintent = _startingintent; +} +gunav2.keymon.com.mx.appupdater parent; +anywheresoftware.b4a.objects.IntentWrapper _startingintent; +gunav2.keymon.com.mx.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 = 113;BA.debugLine="Log(\"appUpdater(), Service_Start\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795841","appUpdater(), Service_Start",0); + //BA.debugLineNum = 115;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua"; +parent.mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Buscando actualizaciones, un momento por favor."); + //BA.debugLineNum = 116;BA.debugLine="Log(\"Buscando actualización\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795844","Buscando actualización",0); + //BA.debugLineNum = 117;BA.debugLine="fileProvider_init"; +_fileprovider_init(); + //BA.debugLineNum = 118;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 = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 119;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 = 120;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 = 121;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 = 123;BA.debugLine="newApp.appLink = app(3) 'Liga a nueva app"; +parent._newapp.appLink /*String*/ = _app[(int) (3)]; + //BA.debugLineNum = 124;BA.debugLine="newApp.newMsg = app(1) 'Texto de que hay actual"; +parent._newapp.newMsg /*String*/ = _app[(int) (1)]; + //BA.debugLineNum = 125;BA.debugLine="newApp.okMsg = app(2) 'Texto de app al corrient"; +parent._newapp.okMsg /*String*/ = _app[(int) (2)]; + //BA.debugLineNum = 126;BA.debugLine="newApp.version = app(0) 'Version actual"; +parent._newapp.version /*String*/ = _app[(int) (0)]; + //BA.debugLineNum = 128;BA.debugLine="Log($\"Application.VersionName=${Application.Ver"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795856",("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 = 131;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 = 132;BA.debugLine="newApp.update = False"; +parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 133;BA.debugLine="Log(\"No new app\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795861","No new app",0); + //BA.debugLineNum = 134;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")"; +parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable"); + if (true) break; +; + //BA.debugLineNum = 138;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 = 139;BA.debugLine="newApp.update = True"; +parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 140;BA.debugLine="Log(\"New app true\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795868","New app true",0); + //BA.debugLineNum = 141;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 = 146;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795874","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 = 149;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)"; +anywheresoftware.b4a.keywords.Common.LogImpl("369795877","appUpdater(), Job Failed "+parent._lnk,0); + if (true) break; + +case 19: +//C +this.state = -1; +; + //BA.debugLineNum = 151;BA.debugLine="j.Release"; +_j._release /*String*/ (); + //BA.debugLineNum = 152;BA.debugLine="StopService(Me)"; +anywheresoftware.b4a.keywords.Common.StopService(processBA,appupdater.getObject()); + //BA.debugLineNum = 153;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 = 294;BA.debugLine="Sub SetFileUriAsIntentData (Intent As Intent, File"; + //BA.debugLineNum = 295;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 = 296;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName"; +_jo.RunMethod("setData",new Object[]{_getfileuri(_filename)}); + //BA.debugLineNum = 297;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 = 298;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xbitset.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xbitset.java new file mode 100644 index 0000000..3a8f988 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xbitset.java @@ -0,0 +1,124 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xbitset"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xbreadcrumb.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xbreadcrumb.java new file mode 100644 index 0000000..9e5a6af --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xbreadcrumb.java @@ -0,0 +1,395 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xbreadcrumb"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xbytesbuilder.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xbytesbuilder.java new file mode 100644 index 0000000..67abf7d --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xbytesbuilder.java @@ -0,0 +1,268 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xbytesbuilder"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.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("933423362","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("933488898","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/gunav2/keymon/com/mx/b4xcache.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcache.java new file mode 100644 index 0000000..add2e37 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcache.java @@ -0,0 +1,272 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xcache"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.b4xcache.class).invoke(this, new Object[] {null}); + else + ba.raiseEvent2(null, true, "class_globals", false); + } + + public anywheresoftware.b4a.keywords.Common __c = null; +public gunav2.keymon.com.mx.b4xorderedmap _data = null; +public int _mmaxsize = 0; +public float _removethreshold = 0f; +public int _eternalcounts = 0; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xcache._b4xcacheitem _createb4xcacheitem(Object _value,String _key) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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; +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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)(((gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xcollections.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcollections.java new file mode 100644 index 0000000..74577cb --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcollections.java @@ -0,0 +1,111 @@ +package gunav2.keymon.com.mx; + + +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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static gunav2.keymon.com.mx.b4xbitset _createbitset(anywheresoftware.b4a.BA _ba,int _size) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xorderedmap _createorderedmap2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.List _keys,anywheresoftware.b4a.objects.collections.List _values) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xset _createset2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.List _values) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xcolortemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcolortemplate.java new file mode 100644 index 0000000..8ca5b9e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcolortemplate.java @@ -0,0 +1,703 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xcolortemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart _huebar = null; +public gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart _colorpicker = null; +public gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart _alphabar = null; +public int _borderscolor = 0; +public gunav2.keymon.com.mx.b4xdialog _xdialog = null; +public Object[] _initialcolor = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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; +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart(); +_colorpicker = new gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart(); +_alphabar = new gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart(); + //BA.debugLineNum = 12;BA.debugLine="Private BordersColor As Int"; +_borderscolor = 0; + //BA.debugLineNum = 13;BA.debugLine="Private xDialog As B4XDialog"; +_xdialog = new gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xcolortemplate._colorpickerpart _createpanelforbitmapcreator(String _eventname,boolean _withcheckers) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xcolortemplate parent,gunav2.keymon.com.mx.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +gunav2.keymon.com.mx.b4xcolortemplate parent; +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xcombobox.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcombobox.java new file mode 100644 index 0000000..a6279db --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcombobox.java @@ -0,0 +1,317 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xcombobox"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xcombobox parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xcomparatorsort.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcomparatorsort.java new file mode 100644 index 0000000..7241944 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xcomparatorsort.java @@ -0,0 +1,125 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xcomparatorsort"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xdatetemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xdatetemplate.java new file mode 100644 index 0000000..179f99d --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xdatetemplate.java @@ -0,0 +1,545 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xdatetemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xdialog _mdialog = null; +public boolean _closeonselection = false; +public anywheresoftware.b4a.objects.collections.List _daysofweeknames = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xdatetemplate parent,gunav2.keymon.com.mx.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +gunav2.keymon.com.mx.b4xdatetemplate parent; +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xdialog.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xdialog.java new file mode 100644 index 0000000..8402d5b --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xdialog.java @@ -0,0 +1,1187 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xdialog"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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; +} +gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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; +} +gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xfloattextfield.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xfloattextfield.java new file mode 100644 index 0000000..1ead9e1 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xfloattextfield.java @@ -0,0 +1,855 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xfloattextfield"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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("950921496","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 gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xfloattextfield parent,boolean _toregular) { +this.parent = parent; +this._toregular = _toregular; +} +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xformatter.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xformatter.java new file mode 100644 index 0000000..727966e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xformatter.java @@ -0,0 +1,378 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xformatter"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xformatter._b4xformatdata _copyformatdata(gunav2.keymon.com.mx.b4xformatter._b4xformatdata _data) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xformatter._b4xformatdata _createdefaultformat() throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.b4xformatter._b4xformatdata)(_formats.Get((int) (0))); + //BA.debugLineNum = 80;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.b4xformatter._b4xformatdata _getformatdata(double _number) throws Exception{ +int _i = 0; +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.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); +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4ximageview.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4ximageview.java new file mode 100644 index 0000000..bb52e64 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4ximageview.java @@ -0,0 +1,305 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4ximageview"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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("953280795","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/gunav2/keymon/com/mx/b4xinputtemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xinputtemplate.java new file mode 100644 index 0000000..b29f183 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xinputtemplate.java @@ -0,0 +1,287 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xinputtemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xinputtemplate parent,gunav2.keymon.com.mx.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +gunav2.keymon.com.mx.b4xinputtemplate parent; +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xlisttemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xlisttemplate.java new file mode 100644 index 0000000..bbafa98 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xlisttemplate.java @@ -0,0 +1,333 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xlisttemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xlisttemplate parent,gunav2.keymon.com.mx.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +gunav2.keymon.com.mx.b4xlisttemplate parent; +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xloadingindicator.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xloadingindicator.java new file mode 100644 index 0000000..5f4f4e9 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xloadingindicator.java @@ -0,0 +1,408 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xloadingindicator"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xloadingindicator parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xlongtexttemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xlongtexttemplate.java new file mode 100644 index 0000000..eab2220 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xlongtexttemplate.java @@ -0,0 +1,125 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xlongtexttemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +if (BA.fastSubCompare(sub, "SHOW")) + return _show((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xmainpage.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xmainpage.java new file mode 100644 index 0000000..d142490 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xmainpage.java @@ -0,0 +1,2595 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xmainpage"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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.B4XViewWrapper _root = null; +public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; +public gunav2.keymon.com.mx.b4xmainpage _login = null; +public gunav2.keymon.com.mx.c_principal _principal = null; +public gunav2.keymon.com.mx.c_clientes _clientes = null; +public gunav2.keymon.com.mx.c_cliente _cliente = null; +public gunav2.keymon.com.mx.c_productos _productos = null; +public gunav2.keymon.com.mx.c_updateavailable _updateavailable = null; +public gunav2.keymon.com.mx.c_mapas _mapas = null; +public gunav2.keymon.com.mx.c_nuevocliente _nuevocliente = null; +public gunav2.keymon.com.mx.c_ticketsdia _ticketsdia = null; +public gunav2.keymon.com.mx.c_noventa _noventa = null; +public gunav2.keymon.com.mx.c_nota _nota = null; +public gunav2.keymon.com.mx.c_pedidos _pedidos = null; +public gunav2.keymon.com.mx.c_promos _promos = null; +public gunav2.keymon.com.mx.c_historico _historico = null; +public gunav2.keymon.com.mx.c_historicobat _historicobat = null; +public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null; +public String _v = ""; +public String _ruta = ""; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public String _lat_gps = ""; +public String _lon_gps = ""; +public String _usuario = ""; +public int _batt = 0; +public anywheresoftware.b4a.sql.SQL _skmt = null; +public String _montoactual = ""; +public String _clientestotal = ""; +public String _clientesventa = ""; +public String _clientesvisitados = ""; +public String _almacen = ""; +public String _rutapreventa = ""; +public String _server = ""; +public String _fecharuta = ""; +public boolean _logger = false; +public String _mac_impresora = ""; +public anywheresoftware.b4a.phone.Phone.PhoneId _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 String _alterno = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_menu = null; +public com.rootsoft.rspopupmenu.RSPopupMenu _popupmenu = null; +public gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; +public anywheresoftware.b4a.objects.ButtonWrapper _pdf = null; +public batteryprogressviewwrapper.batteryprogressviewWrapper _bpv1 = null; +public int[] _batterystatus = null; +public gunav2.keymon.com.mx.batteryutilities _bu = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_apk = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _i_engrane = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_main = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_appupdate = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_regesar = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_version = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _entrar = null; +public String _tipo_venta = ""; +public boolean _bterminarclicked = false; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_server = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_server = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_enviobd = null; +public gunav2.keymon.com.mx.fileprovider _provider = null; +public String _rutabdbackup = ""; +public gunav2.keymon.com.mx.b4xswitch _b4xswitch1 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_validacion = null; +public gunav2.keymon.com.mx.b4xswitch _b4xswitch2 = null; +public int _x = 0; +public anywheresoftware.b4a.objects.EditTextWrapper _et_codigo = null; +public boolean _buscandoactualizacion = false; +public boolean _actualizacionrevisada = false; +public anywheresoftware.b4a.objects.ButtonWrapper _b_actualizacion = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_server = null; +public boolean _intentusado = false; +public anywheresoftware.b4a.objects.PanelWrapper _p_importarbdwa = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb_importarbdwa = null; +public anywheresoftware.b4a.phone.PackageManagerWrapper _pkg = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b_aceptar_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +String _rutades = ""; +String _almacendes = ""; + //BA.debugLineNum = 969;BA.debugLine="Private Sub b_aceptar_Click"; + //BA.debugLineNum = 970;BA.debugLine="If et_codigo.Text <> \"\" Then"; +if ((_et_codigo.getText()).equals("") == false) { + //BA.debugLineNum = 971;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"select di"; +_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)(_skmt.ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))); + //BA.debugLineNum = 972;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 973;BA.debugLine="Private rutades As String = c2.GetString(\"CAT_CL"; +_rutades = _c2.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 974;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 975;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"SELECT ID"; +_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)(_skmt.ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN"))); + //BA.debugLineNum = 976;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 977;BA.debugLine="Private almacendes As String = c2.GetString(\"ID_"; +_almacendes = _c2.GetString("ID_ALMACEN"); + //BA.debugLineNum = 978;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 979;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 980;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 981;BA.debugLine="cmd.Name = \"select_geoPass_GUNA\""; +_cmd.Name /*String*/ = "select_geoPass_GUNA"; + //BA.debugLineNum = 982;BA.debugLine="cmd.Parameters = Array As Object(et_codigo.Text,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_et_codigo.getText()),(Object)(_almacendes),(Object)(_rutades)}; + //BA.debugLineNum = 983;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"geopass\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("geopass")); + }else if((_et_codigo.getText()).equals("")) { + //BA.debugLineNum = 985;BA.debugLine="MsgboxAsync(\"Ingresa un codigo\",\"Atención\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Ingresa un codigo"),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 986;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 987;BA.debugLine="B4XSwitch2.Value = False"; +_b4xswitch2._setvalue /*boolean*/ (__c.False); + //BA.debugLineNum = 988;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO ="; +_skmt.ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + //BA.debugLineNum = 989;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 1017;BA.debugLine="End Sub"; +return ""; +} +public String _b_actualizacion_click() throws Exception{ + //BA.debugLineNum = 1102;BA.debugLine="Private Sub b_actualizacion_Click"; + //BA.debugLineNum = 1103;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")"; +__c.CallSubDelayed(ba,(Object)(_appupdater.getObject()),"download_newApk"); + //BA.debugLineNum = 1104;BA.debugLine="End Sub"; +return ""; +} +public String _b_apk_click() throws Exception{ + //BA.debugLineNum = 845;BA.debugLine="Sub b_apk_Click"; + //BA.debugLineNum = 846;BA.debugLine="StartService(appUpdater)"; +__c.StartService(ba,(Object)(_appupdater.getObject())); + //BA.debugLineNum = 847;BA.debugLine="End Sub"; +return ""; +} +public String _b_cancelarcodigo_click() throws Exception{ + //BA.debugLineNum = 963;BA.debugLine="Private Sub b_cancelarcodigo_Click"; + //BA.debugLineNum = 964;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 965;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 966;BA.debugLine="B4XSwitch2.Value = False"; +_b4xswitch2._setvalue /*boolean*/ (__c.False); + //BA.debugLineNum = 967;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(gunav2.keymon.com.mx.b4xmainpage parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 911;BA.debugLine="Dim FileName As String = \"kmt.db\""; +_filename = "kmt.db"; + //BA.debugLineNum = 913;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)"; +parent.__c.LogImpl("32555909","xxxxxx:"+parent._provider._sharedfolder /*String*/ ,0); + //BA.debugLineNum = 914;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 1; +return; +case 1: +//C +this.state = -1; +; + //BA.debugLineNum = 915;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 = 916;BA.debugLine="Dim email As Email"; +_email = new anywheresoftware.b4a.phone.Phone.Email(); + //BA.debugLineNum = 917;BA.debugLine="email.To.Add(\"cheveguerra@gmail.com\")"; +_email.To.Add((Object)("cheveguerra@gmail.com")); + //BA.debugLineNum = 918;BA.debugLine="email.Subject = \"subject\""; +_email.Subject = "subject"; + //BA.debugLineNum = 919;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam"; +_email.Attachments.Add(parent._provider._getfileuri /*Object*/ (_filename)); + //BA.debugLineNum = 921;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 = 922;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION"; +_in.setFlags((int) (1)); + //BA.debugLineNum = 923;BA.debugLine="StartActivity(in)"; +parent.__c.StartActivity(ba,(Object)(_in.getObject())); + //BA.debugLineNum = 924;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b_menu_click() throws Exception{ + //BA.debugLineNum = 782;BA.debugLine="Sub b_menu_Click"; + //BA.debugLineNum = 783;BA.debugLine="PopupMenu.Show"; +_popupmenu.Show(); + //BA.debugLineNum = 784;BA.debugLine="End Sub"; +return ""; +} +public String _b_regesar_click() throws Exception{ + //BA.debugLineNum = 884;BA.debugLine="Sub b_regesar_Click"; + //BA.debugLineNum = 886;BA.debugLine="p_appUpdate.Visible = False"; +_p_appupdate.setVisible(__c.False); + //BA.debugLineNum = 887;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES whe"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer")})); + //BA.debugLineNum = 888;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CAT"; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer"),(Object)(_et_server.getText())})); + //BA.debugLineNum = 889;BA.debugLine="Starter.server = et_server.Text"; +_starter._server /*String*/ = _et_server.getText(); + //BA.debugLineNum = 890;BA.debugLine="Starter.reqManager.Initialize(Me, et_server.Text)"; +_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (ba,this,_et_server.getText()); + //BA.debugLineNum = 891;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(gunav2.keymon.com.mx.b4xmainpage parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.b4xmainpage parent; +anywheresoftware.b4a.phone.Phone _ph = null; +String _deviceid = ""; +String _permission = ""; +boolean _result = false; +String _sdate = ""; +String _stime = ""; + +@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 = 308;BA.debugLine="cb_importarBDWA.Checked = Subs.traeUsarIntentBDWA"; +parent._cb_importarbdwa.setChecked(parent._subs._traeusarintentbdwa /*boolean*/ (ba)); + //BA.debugLineNum = 309;BA.debugLine="If user.Text.Trim = \"KMTS1\" Then"; +if (true) break; + +case 1: +//if +this.state = 6; +if ((parent._user.getText().trim()).equals("KMTS1")) { +this.state = 3; +}else { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 6; + //BA.debugLineNum = 310;BA.debugLine="p_importarBDWA.Visible = True"; +parent._p_importarbdwa.setVisible(parent.__c.True); + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 312;BA.debugLine="p_importarBDWA.Visible = False"; +parent._p_importarbdwa.setVisible(parent.__c.False); + if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 314;BA.debugLine="reqManager.Initialize(Me, Starter.server)"; +parent._reqmanager._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ ); + //BA.debugLineNum = 315;BA.debugLine="If Starter.muestraProgreso = 1 Then"; +if (true) break; + +case 7: +//if +this.state = 10; +if ((parent._starter._muestraprogreso /*String*/ ).equals(BA.NumberToString(1))) { +this.state = 9; +}if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 316;BA.debugLine="muestraProgreso(\"Descargando nueva versión, un m"; +parent._muestraprogreso("Descargando nueva versión, un momento por favor."); + //BA.debugLineNum = 317;BA.debugLine="Starter.muestraProgreso = 0"; +parent._starter._muestraprogreso /*String*/ = BA.NumberToString(0); + if (true) break; + +case 10: +//C +this.state = 11; +; + //BA.debugLineNum = 319;BA.debugLine="Dim ph As Phone 'Get Id Device"; +_ph = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 320;BA.debugLine="Dim DeviceID As String = ph.GetSettings(\"android_"; +_deviceid = _ph.GetSettings("android_id").toUpperCase(); + //BA.debugLineNum = 322;BA.debugLine="LogColor(\"Revisa permisos Phone_State\", Colors.Gr"; +parent.__c.LogImpl("31310743","Revisa permisos Phone_State",parent.__c.Colors.Green); + //BA.debugLineNum = 323;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_READ_PHONE_STATE); + //BA.debugLineNum = 324;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); +this.state = 63; +return; +case 63: +//C +this.state = 11; +_permission = (String) result[0]; +_result = (Boolean) result[1]; +; + //BA.debugLineNum = 325;BA.debugLine="If Result Then"; +if (true) break; + +case 11: +//if +this.state = 14; +if (_result) { +this.state = 13; +}if (true) break; + +case 13: +//C +this.state = 14; + //BA.debugLineNum = 326;BA.debugLine="IMEN.Text =\"\""; +parent._imen.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 327;BA.debugLine="IMEI = \"\""; +parent._imei = ""; + //BA.debugLineNum = 329;BA.debugLine="IMEI=\"\" 'Pruebas"; +parent._imei = ""; + if (true) break; + +case 14: +//C +this.state = 15; +; + //BA.debugLineNum = 331;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 = 332;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); +this.state = 64; +return; +case 64: +//C +this.state = 15; +_permission = (String) result[0]; +_result = (Boolean) result[1]; +; + //BA.debugLineNum = 333;BA.debugLine="If Result Then"; +if (true) break; + +case 15: +//if +this.state = 20; +if (_result) { +this.state = 17; +}else { +this.state = 19; +}if (true) break; + +case 17: +//C +this.state = 20; + //BA.debugLineNum = 334;BA.debugLine="StartService(Tracker)"; +parent.__c.StartService(ba,(Object)(parent._tracker.getObject())); + //BA.debugLineNum = 335;BA.debugLine="Log(\"Start Tracker\")"; +parent.__c.LogImpl("31310756","Start Tracker",0); + if (true) break; + +case 19: +//C +this.state = 20; + //BA.debugLineNum = 337;BA.debugLine="ToastMessageShow(\"Sin permisos de ubicacion\", Tr"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de ubicacion"),parent.__c.True); + if (true) break; + +case 20: +//C +this.state = 21; +; + //BA.debugLineNum = 339;BA.debugLine="server = Starter.server"; +parent._server = parent._starter._server /*String*/ ; + //BA.debugLineNum = 340;BA.debugLine="tgl.Initialize()"; +parent._tgl.Initialize(ba); + //BA.debugLineNum = 341;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (true) break; + +case 21: +//if +this.state = 24; +if (parent.__c.Not(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { +this.state = 23; +}if (true) break; + +case 23: +//C +this.state = 24; + //BA.debugLineNum = 342;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),parent.__c.True); + //BA.debugLineNum = 343;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 65; +return; +case 65: +//C +this.state = 24; +; + //BA.debugLineNum = 344;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +parent.__c.StartActivity(ba,(Object)(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + if (true) break; + +case 24: +//C +this.state = 25; +; + //BA.debugLineNum = 346;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as CUANTOS fro"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"}))); + //BA.debugLineNum = 347;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 348;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; +if (true) break; + +case 25: +//if +this.state = 34; +if ((parent._c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { +this.state = 27; +}else { +this.state = 29; +}if (true) break; + +case 27: +//C +this.state = 34; + //BA.debugLineNum = 349;BA.debugLine="LogColor($\"No hay fecha: ${c.GetString(\"CUANTOS\""; +parent.__c.LogImpl("31310770",("No hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("CUANTOS")))+""),parent.__c.Colors.Red); + //BA.debugLineNum = 350;BA.debugLine="cmd.Initialize"; +parent._cmd.Initialize(); + //BA.debugLineNum = 351;BA.debugLine="cmd.Name = \"select_fecha\""; +parent._cmd.Name /*String*/ = "select_fecha"; + //BA.debugLineNum = 352;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fecha\")"; +parent._reqmanager._executequery /*String*/ (parent._cmd,(int) (0),(Object)("fecha")); + //BA.debugLineNum = 353;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'Ignore"; +parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba); + //BA.debugLineNum = 354;BA.debugLine="B4XPage_Appear"; +parent._b4xpage_appear(); + if (true) break; + +case 29: +//C +this.state = 30; + //BA.debugLineNum = 356;BA.debugLine="LogColor($\"Si hay fecha: ${c.GetString(\"CUANTOS\""; +parent.__c.LogImpl("31310777",("Si hay fecha: "+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("CUANTOS")))+""),parent.__c.Colors.Green); + //BA.debugLineNum = 357;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT_"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"}))); + //BA.debugLineNum = 358;BA.debugLine="c.Position =0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 359;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 360;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; +parent.__c.DateTime.setDateFormat("yyyyMMdd"); + //BA.debugLineNum = 361;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 366;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then"; +if (true) break; + +case 30: +//if +this.state = 33; +if ((double)(Double.parseDouble(parent._c.GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble(_sdate))) { +this.state = 32; +}if (true) break; + +case 32: +//C +this.state = 33; + //BA.debugLineNum = 367;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS"; +parent.__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA"),BA.ObjectToCharSequence("AVISO"),ba); + //BA.debugLineNum = 368;BA.debugLine="B4XPage_Appear"; +parent._b4xpage_appear(); + if (true) break; + +case 33: +//C +this.state = 34; +; + if (true) break; + +case 34: +//C +this.state = 35; +; + //BA.debugLineNum = 371;BA.debugLine="bu.Initialize"; +parent._bu._initialize /*String*/ (ba); + //BA.debugLineNum = 372;BA.debugLine="batterystatus = bu.BatteryInformation"; +parent._batterystatus = parent._bu._getbatteryinformation /*int[]*/ (); + //BA.debugLineNum = 374;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop"; +parent.__c.CallSubDelayed(ba,(Object)(parent._firebasemessaging.getObject()),"SubscribeToTopics"); + //BA.debugLineNum = 375;BA.debugLine="dameUsuario"; +parent._dameusuario(); + //BA.debugLineNum = 376;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT HABILITADA FROM IMPRESORA"))); + //BA.debugLineNum = 377;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 35: +//if +this.state = 46; +if (parent._c.getRowCount()>0) { +this.state = 37; +}else { +this.state = 45; +}if (true) break; + +case 37: +//C +this.state = 38; + //BA.debugLineNum = 378;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 379;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then"; +if (true) break; + +case 38: +//if +this.state = 43; +if ((parent._c.GetString("HABILITADA")).equals(BA.NumberToString(1))) { +this.state = 40; +}else if((parent._c.GetString("HABILITADA")).equals(BA.NumberToString(0))) { +this.state = 42; +}if (true) break; + +case 40: +//C +this.state = 43; + //BA.debugLineNum = 380;BA.debugLine="B4XSwitch1.Value = True"; +parent._b4xswitch1._setvalue /*boolean*/ (parent.__c.True); + if (true) break; + +case 42: +//C +this.state = 43; + //BA.debugLineNum = 382;BA.debugLine="B4XSwitch1.Value = False"; +parent._b4xswitch1._setvalue /*boolean*/ (parent.__c.False); + if (true) break; + +case 43: +//C +this.state = 46; +; + if (true) break; + +case 45: +//C +this.state = 46; + //BA.debugLineNum = 385;BA.debugLine="B4XSwitch1.Value = False"; +parent._b4xswitch1._setvalue /*boolean*/ (parent.__c.False); + if (true) break; + +case 46: +//C +this.state = 47; +; + //BA.debugLineNum = 387;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT HABILITADO FROM GPS"))); + //BA.debugLineNum = 388;BA.debugLine="If c.RowCount = 0 Then"; +if (true) break; + +case 47: +//if +this.state = 50; +if (parent._c.getRowCount()==0) { +this.state = 49; +}if (true) break; + +case 49: +//C +this.state = 50; + //BA.debugLineNum = 389;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GPS VALUES (?)\","; +parent._skmt.ExecNonQuery2("INSERT INTO GPS VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + if (true) break; + +case 50: +//C +this.state = 51; +; + //BA.debugLineNum = 391;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT HABILITADO FROM GPS"))); + //BA.debugLineNum = 392;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 51: +//if +this.state = 62; +if (parent._c.getRowCount()>0) { +this.state = 53; +}else { +this.state = 61; +}if (true) break; + +case 53: +//C +this.state = 54; + //BA.debugLineNum = 393;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 394;BA.debugLine="If c.GetString(\"HABILITADO\") = 1 Then"; +if (true) break; + +case 54: +//if +this.state = 59; +if ((parent._c.GetString("HABILITADO")).equals(BA.NumberToString(1))) { +this.state = 56; +}else if((parent._c.GetString("HABILITADO")).equals(BA.NumberToString(0))) { +this.state = 58; +}if (true) break; + +case 56: +//C +this.state = 59; + //BA.debugLineNum = 395;BA.debugLine="B4XSwitch2.Value = True"; +parent._b4xswitch2._setvalue /*boolean*/ (parent.__c.True); + if (true) break; + +case 58: +//C +this.state = 59; + //BA.debugLineNum = 397;BA.debugLine="B4XSwitch2.Value = False"; +parent._b4xswitch2._setvalue /*boolean*/ (parent.__c.False); + if (true) break; + +case 59: +//C +this.state = 62; +; + if (true) break; + +case 61: +//C +this.state = 62; + //BA.debugLineNum = 400;BA.debugLine="B4XSwitch2.Value = False"; +parent._b4xswitch2._setvalue /*boolean*/ (parent.__c.False); + if (true) break; + +case 62: +//C +this.state = -1; +; + //BA.debugLineNum = 402;BA.debugLine="Subs.guardaAppInfo"; +parent._subs._guardaappinfo /*String*/ (ba); + //BA.debugLineNum = 411;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(gunav2.keymon.com.mx.b4xmainpage parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 753;BA.debugLine="Log(\"closreq\")"; +parent.__c.LogImpl("31638401","closreq",0); + //BA.debugLineNum = 754;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 8; +return; +case 8: +//C +this.state = 1; +; + //BA.debugLineNum = 755;BA.debugLine="If p_appUpdate.IsInitialized And p_appUpdate.Visi"; +if (true) break; + +case 1: +//if +this.state = 4; +if (parent._p_appupdate.IsInitialized() && parent._p_appupdate.getVisible()) { +this.state = 3; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 756;BA.debugLine="p_appUpdate.Visible = False"; +parent._p_appupdate.setVisible(parent.__c.False); + //BA.debugLineNum = 757;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; +; + //BA.debugLineNum = 759;BA.debugLine="If Not(p_appUpdate.Visible) Then"; + +case 4: +//if +this.state = 7; +if (parent.__c.Not(parent._p_appupdate.getVisible())) { +this.state = 6; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 760;BA.debugLine="Log(\"ExitApplication\")"; +parent.__c.LogImpl("31638408","ExitApplication",0); + //BA.debugLineNum = 761;BA.debugLine="ExitApplication"; +parent.__c.ExitApplication(); + if (true) break; + +case 7: +//C +this.state = -1; +; + //BA.debugLineNum = 763;BA.debugLine="Return True"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;}; + //BA.debugLineNum = 764;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 104;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 105;BA.debugLine="Log(\"##### CREAMOS MAINPAGE LOGIN\")"; +__c.LogImpl("31245185","##### CREAMOS MAINPAGE LOGIN",0); + //BA.debugLineNum = 106;BA.debugLine="B4XPages.GetManager.LogEvents = True"; +_b4xpages._getmanager /*gunav2.keymon.com.mx.b4xpagesmanager*/ (ba)._logevents /*boolean*/ = __c.True; + //BA.debugLineNum = 107;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 108;BA.debugLine="Root.LoadLayout(\"login\")"; +_root.LoadLayout("login",ba); + //BA.debugLineNum = 112;BA.debugLine="login.Initialize"; +_login._initialize /*String*/ (ba); + //BA.debugLineNum = 113;BA.debugLine="B4XPages.AddPage(\"Login\", login)"; +_b4xpages._addpage /*String*/ (ba,"Login",(Object)(_login)); + //BA.debugLineNum = 114;BA.debugLine="principal.Initialize"; +_principal._initialize /*Object*/ (ba); + //BA.debugLineNum = 115;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)"; +_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(_principal)); + //BA.debugLineNum = 116;BA.debugLine="clientes.Initialize"; +_clientes._initialize /*Object*/ (ba); + //BA.debugLineNum = 117;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)"; +_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(_clientes)); + //BA.debugLineNum = 118;BA.debugLine="cliente.Initialize"; +_cliente._initialize /*Object*/ (ba); + //BA.debugLineNum = 119;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)"; +_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(_cliente)); + //BA.debugLineNum = 120;BA.debugLine="productos.Initialize"; +_productos._initialize /*Object*/ (ba); + //BA.debugLineNum = 121;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)"; +_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(_productos)); + //BA.debugLineNum = 122;BA.debugLine="updateAvailable.Initialize"; +_updateavailable._initialize /*Object*/ (ba); + //BA.debugLineNum = 123;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab"; +_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(_updateavailable)); + //BA.debugLineNum = 124;BA.debugLine="mapas.Initialize"; +_mapas._initialize /*Object*/ (ba); + //BA.debugLineNum = 125;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)"; +_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(_mapas)); + //BA.debugLineNum = 126;BA.debugLine="nuevoCliente.Initialize"; +_nuevocliente._initialize /*Object*/ (ba); + //BA.debugLineNum = 127;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)"; +_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(_nuevocliente)); + //BA.debugLineNum = 128;BA.debugLine="ticketsDia.Initialize"; +_ticketsdia._initialize /*Object*/ (ba); + //BA.debugLineNum = 129;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)"; +_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(_ticketsdia)); + //BA.debugLineNum = 130;BA.debugLine="noVenta.Initialize"; +_noventa._initialize /*Object*/ (ba); + //BA.debugLineNum = 131;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)"; +_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(_noventa)); + //BA.debugLineNum = 132;BA.debugLine="nota.Initialize"; +_nota._initialize /*Object*/ (ba); + //BA.debugLineNum = 133;BA.debugLine="B4XPages.AddPage(\"Nota\", nota)"; +_b4xpages._addpage /*String*/ (ba,"Nota",(Object)(_nota)); + //BA.debugLineNum = 134;BA.debugLine="pedidos.Initialize"; +_pedidos._initialize /*Object*/ (ba); + //BA.debugLineNum = 135;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)"; +_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(_pedidos)); + //BA.debugLineNum = 136;BA.debugLine="promos.Initialize"; +_promos._initialize /*Object*/ (ba); + //BA.debugLineNum = 137;BA.debugLine="B4XPages.AddPage(\"Promos\", promos)"; +_b4xpages._addpage /*String*/ (ba,"Promos",(Object)(_promos)); + //BA.debugLineNum = 138;BA.debugLine="historico.Initialize"; +_historico._initialize /*Object*/ (ba); + //BA.debugLineNum = 139;BA.debugLine="B4XPages.AddPage(\"Historico\", historico)"; +_b4xpages._addpage /*String*/ (ba,"Historico",(Object)(_historico)); + //BA.debugLineNum = 140;BA.debugLine="historicobat.Initialize"; +_historicobat._initialize /*Object*/ (ba); + //BA.debugLineNum = 141;BA.debugLine="B4XPages.AddPage(\"historicobat\", historicobat)"; +_b4xpages._addpage /*String*/ (ba,"historicobat",(Object)(_historicobat)); + //BA.debugLineNum = 144;BA.debugLine="p_Main.Height = Root.Height"; +_p_main.setHeight(_root.getHeight()); + //BA.debugLineNum = 145;BA.debugLine="p_Main.Width = Root.Width"; +_p_main.setWidth(_root.getWidth()); + //BA.debugLineNum = 146;BA.debugLine="ruta = Starter.ruta"; +_ruta = _starter._ruta /*String*/ ; + //BA.debugLineNum = 147;BA.debugLine="Provider.Initialize"; +_provider._initialize /*String*/ (ba); + //BA.debugLineNum = 148;BA.debugLine="If File.Exists(File.DirInternal, \"kmt.db\") = Fals"; +if (__c.File.Exists(__c.File.getDirInternal(),"kmt.db")==__c.False) { + //BA.debugLineNum = 149;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", File.DirInte"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",__c.File.getDirInternal(),"kmt.db"); + }; + //BA.debugLineNum = 151;BA.debugLine="skmt.Initialize(File.DirInternal,\"kmt.db\", True)"; +_skmt.Initialize(__c.File.getDirInternal(),"kmt.db",__c.True); + //BA.debugLineNum = 152;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS IMP"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS IMPRESORA (HABILITADA)"); + //BA.debugLineNum = 154;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS FOT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS FOTOS (CLIENTE TEXT, FOTO BLOB, MOVIMIENTO TEXT)"); + //BA.debugLineNum = 155;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PLA"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS PLAN_LEALTAD (PL_CLIENTE TEXT, PL_BANDERA TEXT)"); + //BA.debugLineNum = 157;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ABO"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT, FECHA TEXT)"); + //BA.debugLineNum = 160;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COM"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS COMENTARIOS (COMENTARTIO TEXT, CLIENTE TEXT, DESCARGADO TEXT)"); + //BA.debugLineNum = 162;BA.debugLine="Subs.agregaColumna(\"PLAN_LEALTAD\", \"DESCARGADO\","; +_subs._agregacolumna /*String*/ (ba,"PLAN_LEALTAD","DESCARGADO","TEXT"); + //BA.debugLineNum = 163;BA.debugLine="Subs.agregaColumna(\"PEDIDO_CLIENTE\", \"PC_FACTURA\""; +_subs._agregacolumna /*String*/ (ba,"PEDIDO_CLIENTE","PC_FACTURA","INTEGER"); + //BA.debugLineNum = 164;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS GPS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS GPS (HABILITADO)"); + //BA.debugLineNum = 165;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GIRO(GIRO TEXT)"); + //BA.debugLineNum = 166;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CLI"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CLIENTES_NUEVOS(CN_ID TEXT, CN_FECHA TEXT, CN_USER TEXT, CN_LAT TEXT, CN_LON TEXT, CN_NOMBRE TEXT, CN_DIRECCION TEXT, CN_FOTO TEXT, CN_ALMACEN TEXT, CN_RUTA TEXT,CN_GIRO TEXT)"); + //BA.debugLineNum = 167;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_PROMOS_DESCUENTOS (CAT_PD_ALMACEN TEXT, CAT_PD_COD_PROMO TEXT, CAT_PD_RANGO INT, CAT_PD_VIGENCIA TEXT, CAT_PD_DESCUENTO TEXT, CAT_PD_PRODUCTO TEXT, CAT_PD_TIER TEXT)"); + //BA.debugLineNum = 168;BA.debugLine="Subs.agregaColumna(\"CAT_PROMOS_DESCUENTOS\", \"CAT_"; +_subs._agregacolumna /*String*/ (ba,"CAT_PROMOS_DESCUENTOS","CAT_PD_RANGO2","INT"); + //BA.debugLineNum = 169;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD2 (CAT_GP_CODPROMO TEXT, CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUM, 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 )"); + //BA.debugLineNum = 170;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS PRO"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS PROMO_ESP (HVD_CLIENTE)"); + //BA.debugLineNum = 171;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_PROMO_ESP(CAT_PE_ID TEXT,CAT_PE_IDPROMO TEXT,CAT_PE_MONTO TEXT)"); + //BA.debugLineNum = 172;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_CUOTAS (HC_META6 TEXT, HC_META5 TEXT, HC_META4 TEXT, HC_META3 TEXT, HC_META2 TEXT, HC_META1 TEXT, HC_RUTA TEXT, HC_CUOTA1 TEXT, HC_CUOTA2 TEXT, HC_CUOTA3 TEXT, HC_CUOTA4 TEXT, HC_CUOTA5 TEXT, HC_CUOTA6 TEXT)"); + //BA.debugLineNum = 173;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_GPS (HGDATE TEXT, HGLAT TEXT, HGLON TEXT)"); + //BA.debugLineNum = 174;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_STAY_STORE (HSS_CODIGO TEXT, HSS_IN TEXT, HSS_OUT TEXT, HSS_TOT TEXT)"); + //BA.debugLineNum = 175;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_STAY_OUT (HSO_INI TEXT, HSO_FIN TEXT)"); + //BA.debugLineNum = 176;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS INV"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS INVENT_X_ENVIAR (ALMACEN TEXT, PROID TEXT, CANTIDAD TEXT)"); + //BA.debugLineNum = 177;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_RESUM_APK (HIST_RA_OBJMES TEXT, HIST_RA_VENTA TEXT, HIST_RA_TENDENCIA TEXT, HIST_RA_ALCANCE TEXT, HISR_RA_DRAOBJ TEXT, HIST_RA_DRAVTA TEXT, HIST_RA_DSOBJ TEXT, HIST_RA_DSVTA TEXT, HIST_RA_VPOOBJ TEXT, HIST_RA_VPOVTA TEXT, HIST_RA_COBCCC TEXT, HIST_RA_CTES TEXT, HIST_RA_ECO TEXT, HIST_RA_VISITPLAN TEXT, HIST_RA_VISIREAL TEXT, HIST_RA_COBVISIT TEXT, HIST_RA_FRECCOMPOBJ TEXT, HIST_RA_FRECCOMREAL TEXT, HIST_RA_VENTAMES1 TEXT, HIST_RA_VENTAMES2 TEXT, HIST_RA_VENTAMES3 TEXT, HIST_RA_VENTAMES4 TEXT, HIST_RA_RECHAZO TEXT, HIST_RA_RECHAZOPORCEN TEXT, HIST_RA_SEMANA1 TEXT, HIST_RA_SEMANA1_DIAS TEXT, HIST_RA_SEMANA1_DRA TEXT, HIST_RA_SEMANA2 TEXT, HIST_RA_SEMANA2_DIAS TEXT, HIST_RA_SEMANA2_DRA TEXT, HIST_RA_SEMANA3 TEXT, HIST_RA_SEMANA3_DIAS TEXT, HIST_RA_SEMANA4 TEXT, HIST_RA_SEMANA3_DRA TEXT, HIST_RA_SEMANA4_DIAS TEXT, HIST_RA_SEMANA4_DRA TEXT, HIST_RA_SEMANA5 TEXT, HIST_RA_SEMANA5_DIAS TEXT, HIST_RA_SEMANA5_DRA TEXT, HIST_RA_SEMANA1_LPT TEXT, HIST_RA_SEMANA2_LPT TEXT, HIST_RA_SEMANA3_LPT TEXT, HIST_RA_SEMANA4_LPT TEXT, HIST_RA_SEMANA5_LPT TEXT, HIST_RA_RUTA TEXT, HIST_RA_IDALMACEN TEXT)"); + //BA.debugLineNum = 178;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_COMISIONES_MOVIL (HCM_IDALMACEN TEXT, HCM_RUTA TEXT, HCM_TOTAL_V TEXT, HCM_TOTAL_VIVE TEXT, HCM_TOTAL_GUNA TEXT, HCM_TOTAL_BEB TEXT)"); + //BA.debugLineNum = 179;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_GEOCERCA (HGCLIENTE TEXT, HGDATE TEXT, HGLAT TEXT, HGLON TEXT)"); + //BA.debugLineNum = 180;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_FACE (HFCLIENTE TEXT, HFALIAS TEXT, HFRUTA TEXT, HFALMACEN TEXT)"); + //BA.debugLineNum = 181;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)"); + //BA.debugLineNum = 182;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS CATA"; +_skmt.ExecNonQuery("CREATE VIEW IF NOT EXISTS CATALOGO AS Select CAT_GP_CLASIF, CAT_GP_ID FROM CAT_GUNAPROD UNION Select CAT_GP_CLASIF, CAT_GP_ID FROM CAT_GUNAPROD GROUP BY CAT_GP_CLASIF, CAT_GP_ID"); + //BA.debugLineNum = 183;BA.debugLine="skmt.ExecNonQuery(\"CREATE VIEW IF NOT EXISTS tota"; +_skmt.ExecNonQuery("CREATE VIEW IF NOT EXISTS total_marcas AS Select cat_gp_clasif, sum(pe_costo_tot) As total from CATALOGO, pedido where pe_proid = cat_gp_id And pe_cliente <> 0 group by cat_gp_clasif"); + //BA.debugLineNum = 184;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_MARCAS_CUOTAS ( HMC_MARCA TEXT, HMC_TOTAL TEXT)"); + //BA.debugLineNum = 185;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_CODIGO_BARRAS(CODIGOKMTS TEXT, CODIGOB TEXT, LAT TEXT, LON TEXT)"); + //BA.debugLineNum = 186;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO1(CLIENTE TEXT,ALMACEN TEXT, P1 TEXT, P2 TEXT, P3 TEXT, P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT, P9 TEXT)"); + //BA.debugLineNum = 187;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO2 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT)"); + //BA.debugLineNum = 188;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CAT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_ENCUESTA_PREGUNTA (CAT_EP_ID TEXT,CAT_EP_IDTIPOPREGUNTA TEXT,CAT_CE_DESCRIPCION TEXT,CAT_EP_PREGUNTA TEXT,CAT_EP_RES1_PRED TEXT,CAT_EP_RES2_PRED TEXT,CAT_EP_RES3_PRED TEXT,CAT_EP_ORDEN_PREGUNTA TEXT)"); + //BA.debugLineNum = 189;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO3(CLIENTE TEXT,ALMACEN TEXT, P1 TEXT, P2 TEXT, P3 TEXT, P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT, P9 TEXT, P10 TEXT, P11 TEXT)"); + //BA.debugLineNum = 190;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO4 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT)"); + //BA.debugLineNum = 191;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ENC"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ENCUESTA_MODULO5 (CLIENTE TEXT, ALMACEN TEXT,P1 TEXT, P2 TEXT, P3 TEXT , P4 TEXT, P5 TEXT, P6 TEXT, P7 TEXT, P8 TEXT, P9 TEXT)"); + //BA.debugLineNum = 192;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA2(HE_CLIENTE TEXT)"); + //BA.debugLineNum = 193;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA_CLIENTE (HEC_CLIENTE TEXT, HEC_MODULO TEXT)"); + //BA.debugLineNum = 194;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA_AVISO_GIRO (HEAV_CLIENTE TEXT, HEAV_MODULO TEXT, HEAV_AVISO TEXT, HEAV_GIRO TEXT)"); + //BA.debugLineNum = 195;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_ENCUESTA (HE_CLIE TEXT, HE_RES TEXT, HE_FECHA TEXT, HE_TIPO TEXT, HE_LAT TEXT, HE_LON TEXT)"); + //BA.debugLineNum = 196;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS kmt"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS kmt_info3(CAT_CL_FOTO BLOB, CAT_CL_NUM_SERIEFISICO TEXT, CAT_CL_MTOCOMPRA TEXT, CAT_CL_CEDIS TEXT, CAT_CL_LAT TEXT, CAT_CL_LONG TEXT, CAT_CL_FBAJA TEXT, CAT_CL_FALTA TEXT, CAT_CL_CP TEXT, CAT_CL_EDO TEXT, CAT_CL_MUNI TEXT, CAT_CL_COLONIA TEXT, CAT_CL_CALLE2 TEXT, CAT_CL_CALLE1 TEXT, CAT_CL_NOINT TEXT, CAT_CL_NOEXT TEXT, CAT_CL_CALLE TEXT, CAT_CL_EMAIL TEXT, CAT_CL_TELEFONO TEXT, CAT_CL_ATIENTE2 TEXT, CAT_CL_ATIENDE1 TEXT, CAT_CL_NOMBRE TEXT, CAT_CL_GIRO TEXT, CAT_CL_DIAS_VISITA TEXT, CAT_CL_TIPO_RUTA TEXT, CAT_CL_RUTA TEXT, CAT_CL_CODIGO TEXT, gestion NUMERIC)"); + //BA.debugLineNum = 197;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO2265(H_IDCLIENTE TEXT)"); + //BA.debugLineNum = 198;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS ATI"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS ATIENDE(ATIENDE TEXT, CLIENTE TEXT)"); + //BA.debugLineNum = 200;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS COD"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS CODIGOS_CREDITO(CODIGO TEXT, BANDERA TEXT)"); + //BA.debugLineNum = 202;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS TEL"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS TELEFONO(TELEFONO TEXT, CLIENTE TEXT)"); + //BA.debugLineNum = 203;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO3054(H_IDCLIENTE TEXT)"); + //BA.debugLineNum = 204;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS HIS"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_PRO3055(H_IDCLIENTE TEXT)"); + //BA.debugLineNum = 205;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUT"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_SUPLENCIA(RS_RUTA TEXT)"); + //BA.debugLineNum = 206;BA.debugLine="skmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS TIC"; +_skmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS TICKET_IMPRESO (idCliente TEXT)"); + //BA.debugLineNum = 208;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_LAT\", \"TE"; +_subs._agregacolumna /*String*/ (ba,"HIST_ENCUESTA","HE_LAT","TEXT"); + //BA.debugLineNum = 209;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_FOTO\", \"B"; +_subs._agregacolumna /*String*/ (ba,"HIST_ENCUESTA","HE_FOTO","BLOB"); + //BA.debugLineNum = 210;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"foto\", \"BLOB\")"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","foto","BLOB"); + //BA.debugLineNum = 211;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULO\", \"TEX"; +_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECALCULO","TEXT"); + //BA.debugLineNum = 212;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULADO\", \"T"; +_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECALCULADO","TEXT"); + //BA.debugLineNum = 213;BA.debugLine="Subs.agregaColumna(\"CODIGOS_CREDITO\", \"CLIENTE\","; +_subs._agregacolumna /*String*/ (ba,"CODIGOS_CREDITO","CLIENTE","TEXT"); + //BA.debugLineNum = 214;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECCEDIS\", \"TEXT"; +_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECCEDIS","TEXT"); + //BA.debugLineNum = 215;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_FUTURO\", \"TEXT\")"; +_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_FUTURO","TEXT"); + //BA.debugLineNum = 216;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECALCULOTOT\", \""; +_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECALCULOTOT","TEXT"); + //BA.debugLineNum = 217;BA.debugLine="Subs.agregaColumna(\"HIST_ENCUESTA\", \"HE_LON\", \"TE"; +_subs._agregacolumna /*String*/ (ba,"HIST_ENCUESTA","HE_LON","TEXT"); + //BA.debugLineNum = 218;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\", \"HVD_FECHA\", \"T"; +_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_FECHA","TEXT"); + //BA.debugLineNum = 219;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"encuesta\", \"TEXT"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","encuesta","TEXT"); + //BA.debugLineNum = 220;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_CLASIFICADOR4","TEXT"); + //BA.debugLineNum = 221;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_CONVERSION3","TEXT"); + //BA.debugLineNum = 222;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_CONVER"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_CONVERSION2","TEXT"); + //BA.debugLineNum = 223;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_CLASIFICADOR3","TEXT"); + //BA.debugLineNum = 224;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_CLASIFICA"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_CLASIFICADOR2","TEXT"); + //BA.debugLineNum = 225;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_TIPOCLIEN"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_TIPOCLIENTE","TEXT"); + //BA.debugLineNum = 226;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_LIMITECRE"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_LIMITECREDITO","TEXT"); + //BA.debugLineNum = 227;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_DIASCREDI"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_DIASCREDITO","TEXT"); + //BA.debugLineNum = 228;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CONFIRMADO\", \"TE"; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CONFIRMADO","TEXT"); + //BA.debugLineNum = 229;BA.debugLine="Subs.agregaColumna(\"kmt_info3\", \"CAT_CL_BCREDITO\""; +_subs._agregacolumna /*String*/ (ba,"kmt_info3","CAT_CL_BCREDITO","TEXT"); + //BA.debugLineNum = 230;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_GP_DEV\","; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_GP_DEV","TEXT"); + //BA.debugLineNum = 231;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_PA_BSEGME"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_PA_BSEGMENTA","TEXT"); + //BA.debugLineNum = 232;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_LISTAPREC"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_LISTAPRECIO","TEXT"); + //BA.debugLineNum = 233;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\", \"CAT_PA_SEGMEN"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CAT_PA_SEGMENTAV","TEXT"); + //BA.debugLineNum = 234;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_PA_BSEGM"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_PA_BSEGMENTA","TEXT"); + //BA.debugLineNum = 235;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD2\", \"CAT_PA_SEGME"; +_subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD2","CAT_PA_SEGMENTAV","TEXT"); + //BA.debugLineNum = 237;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_SOLICIT"; +_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_SOLICITA","TEXT"); + //BA.debugLineNum = 238;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_COLONIA"; +_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_COLONIA","TEXT"); + //BA.debugLineNum = 239;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_TELEFON"; +_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_TELEFONO","TEXT"); + //BA.debugLineNum = 240;BA.debugLine="Subs.agregaColumna(\"CLIENTES_NUEVOS\", \"CN_CP\", \"T"; +_subs._agregacolumna /*String*/ (ba,"CLIENTES_NUEVOS","CN_CP","TEXT"); + //BA.debugLineNum = 241;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_RECCANT\", \"TEXT\""; +_subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_RECCANT","TEXT"); + //BA.debugLineNum = 242;BA.debugLine="Subs.agregaColumna(\"FOTOS\", \"FECHA\", \"TEXT\")"; +_subs._agregacolumna /*String*/ (ba,"FOTOS","FECHA","TEXT"); + //BA.debugLineNum = 243;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 244;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS fCol FROM p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('ENCUESTA_MODULO3') WHERE name='P10'"))); + //BA.debugLineNum = 245;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 246;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; +if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 247;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3"; +_skmt.ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P10 TEXT"); + }; + } + catch (Exception e132) { + ba.setLastException(e132); //BA.debugLineNum = 250;BA.debugLine="Try"; +try { //BA.debugLineNum = 251;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3"; +_skmt.ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P10 TEXT"); + } + catch (Exception e135) { + ba.setLastException(e135); //BA.debugLineNum = 253;BA.debugLine="Log(LastException)"; +__c.LogImpl("31245333",BA.ObjectToString(__c.LastException(ba)),0); + }; + }; + //BA.debugLineNum = 256;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 257;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS fCol FROM p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('ENCUESTA_MODULO3') WHERE name='P11'"))); + //BA.debugLineNum = 258;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 259;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; +if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 260;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3"; +_skmt.ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P11 TEXT"); + }; + } + catch (Exception e145) { + ba.setLastException(e145); //BA.debugLineNum = 263;BA.debugLine="Try"; +try { //BA.debugLineNum = 264;BA.debugLine="skmt.ExecNonQuery(\"ALTER TABLE ENCUESTA_MODULO3"; +_skmt.ExecNonQuery("ALTER TABLE ENCUESTA_MODULO3 ADD COLUMN P11 TEXT"); + } + catch (Exception e148) { + ba.setLastException(e148); //BA.debugLineNum = 266;BA.debugLine="Log(LastException)"; +__c.LogImpl("31245346",BA.ObjectToString(__c.LastException(ba)),0); + }; + }; + //BA.debugLineNum = 269;BA.debugLine="c=skmt.ExecQuery(\"select COUNT(*) AS CUANTOS fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select COUNT(*) AS CUANTOS from HIST_STAY_OUT "))); + //BA.debugLineNum = 270;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 271;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; +if ((_c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 272;BA.debugLine="skmt.ExecNonQuery(\"INSERT INTO HIST_STAY_OUT(HSO"; +_skmt.ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)"); + }; + //BA.debugLineNum = 274;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 278;BA.debugLine="l_version.Text = Application.VersionName"; +_l_version.setText(BA.ObjectToCharSequence(__c.Application.getVersionName())); + //BA.debugLineNum = 280;BA.debugLine="PopupMenu.Initialize(\"PopupMenu\", b_menu)"; +_popupmenu.Initialize(ba,"PopupMenu",(anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(_b_menu.getObject()))); + //BA.debugLineNum = 281;BA.debugLine="PopupMenu.AddMenuItem(0, 0, \"View\")"; +_popupmenu.AddMenuItem((int) (0),(int) (0),"View"); + //BA.debugLineNum = 282;BA.debugLine="PopupMenu.AddMenuItem(1, 1, \"Edit\")"; +_popupmenu.AddMenuItem((int) (1),(int) (1),"Edit"); + //BA.debugLineNum = 283;BA.debugLine="PopupMenu.AddMenuItem(2, 2, \"Details\")"; +_popupmenu.AddMenuItem((int) (2),(int) (2),"Details"); + //BA.debugLineNum = 284;BA.debugLine="PopupMenu.AddMenuItem(3, 3, \"Remove\")"; +_popupmenu.AddMenuItem((int) (3),(int) (3),"Remove"); + //BA.debugLineNum = 286;BA.debugLine="montoActual = 0"; +_montoactual = BA.NumberToString(0); + //BA.debugLineNum = 287;BA.debugLine="clientesTotal = 0"; +_clientestotal = BA.NumberToString(0); + //BA.debugLineNum = 288;BA.debugLine="clientesVenta = 0"; +_clientesventa = BA.NumberToString(0); + //BA.debugLineNum = 289;BA.debugLine="clientesVisitados = 0"; +_clientesvisitados = BA.NumberToString(0); + //BA.debugLineNum = 290;BA.debugLine="almacen = 0"; +_almacen = BA.NumberToString(0); + //BA.debugLineNum = 291;BA.debugLine="rutaPreventa = 0"; +_rutapreventa = BA.NumberToString(0); + //BA.debugLineNum = 292;BA.debugLine="p_appUpdate.Visible = False"; +_p_appupdate.setVisible(__c.False); + //BA.debugLineNum = 294;BA.debugLine="If Subs.traeUsarIntentBDWA Then"; +if (_subs._traeusarintentbdwa /*boolean*/ (ba)) { + //BA.debugLineNum = 295;BA.debugLine="Subs.importaBDDesdeWhatsApp"; +_subs._importabddesdewhatsapp /*String*/ (ba); + }; + //BA.debugLineNum = 297;BA.debugLine="End Sub"; +return ""; +} +public String _b4xswitch1_valuechanged(boolean _value) throws Exception{ + //BA.debugLineNum = 926;BA.debugLine="Private Sub B4XSwitch1_ValueChanged (Value As Bool"; + //BA.debugLineNum = 927;BA.debugLine="If Value Then"; +if (_value) { + //BA.debugLineNum = 928;BA.debugLine="Log(\"1\")"; +__c.LogImpl("32621442","1",0); + //BA.debugLineNum = 929;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE IMPRESORA SET HABILIT"; +_skmt.ExecNonQuery2("UPDATE IMPRESORA SET HABILITADA = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); + }else { + //BA.debugLineNum = 931;BA.debugLine="Log(\"desactivado\")"; +__c.LogImpl("32621445","desactivado",0); + //BA.debugLineNum = 932;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE IMPRESORA SET HABILIT"; +_skmt.ExecNonQuery2("UPDATE IMPRESORA SET HABILITADA = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + }; + //BA.debugLineNum = 934;BA.debugLine="End Sub"; +return ""; +} +public String _b4xswitch2_valuechanged(boolean _value2) throws Exception{ + //BA.debugLineNum = 936;BA.debugLine="Private Sub B4XSwitch2_ValueChanged (Value2 As Boo"; + //BA.debugLineNum = 937;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CAT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"CARGA_DIA"}))); + //BA.debugLineNum = 938;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 939;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 940;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") = 1 Then"; +if ((_c.GetString("CAT_VA_VALOR")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 941;BA.debugLine="If Value2 Then"; +if (_value2) { + //BA.debugLineNum = 942;BA.debugLine="p_validacion.Visible = True"; +_p_validacion.setVisible(__c.True); + //BA.debugLineNum = 943;BA.debugLine="p_validacion.Left = (Root.Width/2) - (p_appUpd"; +_p_validacion.setLeft((int) ((_root.getWidth()/(double)2)-(_p_appupdate.getWidth()/(double)2))); + //BA.debugLineNum = 944;BA.debugLine="Subs.panelVisible(p_validacion,0,0)"; +_subs._panelvisible /*String*/ (ba,_p_validacion,(int) (0),(int) (0)); + //BA.debugLineNum = 945;BA.debugLine="p_validacion.Height = Root.Height"; +_p_validacion.setHeight(_root.getHeight()); + //BA.debugLineNum = 946;BA.debugLine="p_validacion.Width = Root.Width"; +_p_validacion.setWidth(_root.getWidth()); + }else { + //BA.debugLineNum = 948;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO"; +_skmt.ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + }; + }else { + //BA.debugLineNum = 951;BA.debugLine="MsgboxAsync(\"Por favor primero haz carga de día"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor primero haz carga de día"),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 952;BA.debugLine="B4XSwitch2.Value = False"; +_b4xswitch2._setvalue /*boolean*/ (__c.False); + }; + }else { + //BA.debugLineNum = 955;BA.debugLine="MsgboxAsync(\"Por favor primero haz carga de día\""; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor primero haz carga de día"),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 956;BA.debugLine="B4XSwitch2.Value = False"; +_b4xswitch2._setvalue /*boolean*/ (__c.False); + }; + //BA.debugLineNum = 958;BA.debugLine="End Sub"; +return ""; +} +public String _cb_importarbdwa_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 1106;BA.debugLine="Private Sub cb_importarBDWA_CheckedChange(Checked"; + //BA.debugLineNum = 1108;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_VARIAB"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'IMPORTAR_BD_WA'"); + //BA.debugLineNum = 1109;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into CAT_VARIA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('IMPORTAR_BD_WA', '"+__c.SmartStringFormatter("",(Object)(_checked))+"')")); + //BA.debugLineNum = 1110;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 18;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 19;BA.debugLine="Private Root As B4XView"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 21;BA.debugLine="Public login As B4XMainPage"; +_login = new gunav2.keymon.com.mx.b4xmainpage(); + //BA.debugLineNum = 22;BA.debugLine="Public principal As C_Principal"; +_principal = new gunav2.keymon.com.mx.c_principal(); + //BA.debugLineNum = 23;BA.debugLine="Public clientes As C_Clientes"; +_clientes = new gunav2.keymon.com.mx.c_clientes(); + //BA.debugLineNum = 24;BA.debugLine="Public cliente As C_Cliente"; +_cliente = new gunav2.keymon.com.mx.c_cliente(); + //BA.debugLineNum = 25;BA.debugLine="Public productos As C_Productos"; +_productos = new gunav2.keymon.com.mx.c_productos(); + //BA.debugLineNum = 26;BA.debugLine="Public updateAvailable As C_UpdateAvailable"; +_updateavailable = new gunav2.keymon.com.mx.c_updateavailable(); + //BA.debugLineNum = 27;BA.debugLine="Public mapas As C_Mapas"; +_mapas = new gunav2.keymon.com.mx.c_mapas(); + //BA.debugLineNum = 28;BA.debugLine="Public nuevoCliente As C_NuevoCliente"; +_nuevocliente = new gunav2.keymon.com.mx.c_nuevocliente(); + //BA.debugLineNum = 29;BA.debugLine="Public ticketsDia As C_TicketsDia"; +_ticketsdia = new gunav2.keymon.com.mx.c_ticketsdia(); + //BA.debugLineNum = 30;BA.debugLine="Public noVenta As C_NoVenta"; +_noventa = new gunav2.keymon.com.mx.c_noventa(); + //BA.debugLineNum = 31;BA.debugLine="Public nota As C_Nota"; +_nota = new gunav2.keymon.com.mx.c_nota(); + //BA.debugLineNum = 32;BA.debugLine="Public pedidos As C_Pedidos"; +_pedidos = new gunav2.keymon.com.mx.c_pedidos(); + //BA.debugLineNum = 33;BA.debugLine="Public promos As C_Promos"; +_promos = new gunav2.keymon.com.mx.c_promos(); + //BA.debugLineNum = 34;BA.debugLine="Public historico As C_Historico"; +_historico = new gunav2.keymon.com.mx.c_historico(); + //BA.debugLineNum = 36;BA.debugLine="Public historicobat As C_historicobat"; +_historicobat = new gunav2.keymon.com.mx.c_historicobat(); + //BA.debugLineNum = 37;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager(); + //BA.debugLineNum = 38;BA.debugLine="Dim v As String = Application.VersionName"; +_v = __c.Application.getVersionName(); + //BA.debugLineNum = 39;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 40;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 41;BA.debugLine="Dim lat_gps, lon_gps As String"; +_lat_gps = ""; +_lon_gps = ""; + //BA.debugLineNum = 42;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 43;BA.debugLine="Dim batt As Int"; +_batt = 0; + //BA.debugLineNum = 44;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 45;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl"; +_montoactual = ""; +_clientestotal = ""; +_clientesventa = ""; +_clientesvisitados = ""; +_almacen = ""; +_rutapreventa = ""; + //BA.debugLineNum = 46;BA.debugLine="Dim server, fechaRuta As String"; +_server = ""; +_fecharuta = ""; + //BA.debugLineNum = 47;BA.debugLine="Dim Logger As Boolean"; +_logger = false; + //BA.debugLineNum = 48;BA.debugLine="Dim mac_impresora As String"; +_mac_impresora = ""; + //BA.debugLineNum = 49;BA.debugLine="Dim Phn As PhoneId"; +_phn = new anywheresoftware.b4a.phone.Phone.PhoneId(); + //BA.debugLineNum = 51;BA.debugLine="Dim user As EditText"; +_user = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 52;BA.debugLine="Dim pass As EditText"; +_pass = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 53;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 54;BA.debugLine="Dim existe As String"; +_existe = ""; + //BA.debugLineNum = 55;BA.debugLine="Dim paso1 As String"; +_paso1 = ""; + //BA.debugLineNum = 56;BA.debugLine="Private IMEN As Label"; +_imen = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 57;BA.debugLine="Dim IMEI As String = \"\""; +_imei = ""; + //BA.debugLineNum = 58;BA.debugLine="Dim alterno As String"; +_alterno = ""; + //BA.debugLineNum = 59;BA.debugLine="Private b_menu As Button"; +_b_menu = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 60;BA.debugLine="Dim PopupMenu As RSPopupMenu"; +_popupmenu = new com.rootsoft.rspopupmenu.RSPopupMenu(); + //BA.debugLineNum = 61;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 62;BA.debugLine="Private PDF As Button"; +_pdf = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 63;BA.debugLine="Private bpv1 As BatteryProgressView"; +_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper(); + //BA.debugLineNum = 64;BA.debugLine="Dim batterystatus(11) As Int"; +_batterystatus = new int[(int) (11)]; +; + //BA.debugLineNum = 65;BA.debugLine="Private bu As BatteryUtilities"; +_bu = new gunav2.keymon.com.mx.batteryutilities(); + //BA.debugLineNum = 66;BA.debugLine="Private b_apk As Button"; +_b_apk = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 67;BA.debugLine="Private i_engrane As ImageView"; +_i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 68;BA.debugLine="Private p_Main As Panel"; +_p_main = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 69;BA.debugLine="Private p_appUpdate As Panel"; +_p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 70;BA.debugLine="Private b_regesar As Button"; +_b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 71;BA.debugLine="Private l_version As Label"; +_l_version = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 72;BA.debugLine="Private ImageView1 As ImageView"; +_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 73;BA.debugLine="Private Label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 74;BA.debugLine="Dim Entrar As Button"; +_entrar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 75;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD"; +_tipo_venta = _subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 76;BA.debugLine="Dim bTerminarClicked As Boolean = False"; +_bterminarclicked = __c.False; + //BA.debugLineNum = 77;BA.debugLine="Private lv_server As ListView"; +_lv_server = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 78;BA.debugLine="Private l_server As Label"; +_l_server = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 79;BA.debugLine="Private b_envioBD As Button"; +_b_enviobd = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 80;BA.debugLine="Public Provider As FileProvider"; +_provider = new gunav2.keymon.com.mx.fileprovider(); + //BA.debugLineNum = 81;BA.debugLine="Public rutaBDBackup = \"\""; +_rutabdbackup = ""; + //BA.debugLineNum = 82;BA.debugLine="Private B4XSwitch1 As B4XSwitch"; +_b4xswitch1 = new gunav2.keymon.com.mx.b4xswitch(); + //BA.debugLineNum = 83;BA.debugLine="Private p_validacion As Panel"; +_p_validacion = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 84;BA.debugLine="Private B4XSwitch2 As B4XSwitch"; +_b4xswitch2 = new gunav2.keymon.com.mx.b4xswitch(); + //BA.debugLineNum = 85;BA.debugLine="Dim x As Int"; +_x = 0; + //BA.debugLineNum = 86;BA.debugLine="Private et_codigo As EditText"; +_et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 87;BA.debugLine="Dim buscandoActualizacion As Boolean = False"; +_buscandoactualizacion = __c.False; + //BA.debugLineNum = 88;BA.debugLine="Dim actualizacionRevisada As Boolean = False 'Par"; +_actualizacionrevisada = __c.False; + //BA.debugLineNum = 89;BA.debugLine="Private b_actualizacion As Button"; +_b_actualizacion = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 90;BA.debugLine="Private et_server As EditText"; +_et_server = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 91;BA.debugLine="Dim intentUsado As Boolean = False"; +_intentusado = __c.False; + //BA.debugLineNum = 92;BA.debugLine="Private p_importarBDWA As Panel"; +_p_importarbdwa = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 93;BA.debugLine="Private cb_importarBDWA As CheckBox"; +_cb_importarbdwa = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 95;BA.debugLine="Dim pkg As PackageManager"; +_pkg = new anywheresoftware.b4a.phone.PackageManagerWrapper(); + //BA.debugLineNum = 97;BA.debugLine="End Sub"; +return ""; +} +public void _copiadb() throws Exception{ +ResumableSub_copiaDB rsub = new ResumableSub_copiaDB(this); +rsub.resume(ba, null); +} +public static class ResumableSub_copiaDB extends BA.ResumableSub { +public ResumableSub_copiaDB(gunav2.keymon.com.mx.b4xmainpage parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.b4xmainpage parent; +String _permission = ""; +boolean _result = false; +String _thedir = ""; + +@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 = 821;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_WRITE_EXTERNAL_STORAGE); + //BA.debugLineNum = 822;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); +this.state = 19; +return; +case 19: +//C +this.state = 1; +_permission = (String) result[0]; +_result = (Boolean) result[1]; +; + //BA.debugLineNum = 823;BA.debugLine="Dim theDir As String = \"\""; +_thedir = ""; + //BA.debugLineNum = 824;BA.debugLine="If Result Then"; +if (true) break; + +case 1: +//if +this.state = 18; +if (_result) { +this.state = 3; +}else { +this.state = 17; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 825;BA.debugLine="Dim theDir As String"; +_thedir = ""; + //BA.debugLineNum = 826;BA.debugLine="Try"; +if (true) break; + +case 4: +//try +this.state = 9; +this.catchState = 8; +this.state = 6; +if (true) break; + +case 6: +//C +this.state = 9; +this.catchState = 8; + //BA.debugLineNum = 827;BA.debugLine="File.MakeDir(File.DirRootExternal,\"kmts\")"; +parent.__c.File.MakeDir(parent.__c.File.getDirRootExternal(),"kmts"); + //BA.debugLineNum = 828;BA.debugLine="theDir = \"/kmts\""; +_thedir = "/kmts"; + if (true) break; + +case 8: +//C +this.state = 9; +this.catchState = 0; + //BA.debugLineNum = 830;BA.debugLine="theDir = \"\""; +_thedir = ""; + if (true) break; +if (true) break; + +case 9: +//C +this.state = 10; +this.catchState = 0; +; + //BA.debugLineNum = 832;BA.debugLine="rutaBDBackup = File.DirRootExternal&theDir"; +parent._rutabdbackup = parent.__c.File.getDirRootExternal()+_thedir; + //BA.debugLineNum = 833;BA.debugLine="Try"; +if (true) break; + +case 10: +//try +this.state = 15; +this.catchState = 14; +this.state = 12; +if (true) break; + +case 12: +//C +this.state = 15; +this.catchState = 14; + //BA.debugLineNum = 834;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirRoo"; +parent.__c.File.Copy(parent.__c.File.getDirInternal(),"kmt.db",parent.__c.File.getDirRootExternal()+_thedir,"cedex_kmt.db"); + //BA.debugLineNum = 835;BA.debugLine="ToastMessageShow(\"Listo\", False)"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Listo"),parent.__c.False); + if (true) break; + +case 14: +//C +this.state = 15; +this.catchState = 0; + //BA.debugLineNum = 837;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(parent.__c.LastException(ba))),parent.__c.True); + if (true) break; +if (true) break; + +case 15: +//C +this.state = 18; +this.catchState = 0; +; + if (true) break; + +case 17: +//C +this.state = 18; + //BA.debugLineNum = 840;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),parent.__c.False); + if (true) break; + +case 18: +//C +this.state = -1; +; + //BA.debugLineNum = 842;BA.debugLine="Log(rutaBDBackup)"; +parent.__c.LogImpl("32097174",parent._rutabdbackup,0); + //BA.debugLineNum = 843;BA.debugLine="End Sub"; +if (true) break; +}} + catch (Exception e0) { + +if (catchState == 0) + throw e0; +else { + state = catchState; +ba.setLastException(e0);} + } + } + } +} +public String _dameusuario() throws Exception{ + //BA.debugLineNum = 790;BA.debugLine="Sub dameUsuario"; + //BA.debugLineNum = 791;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{_user.getText()}))); + //BA.debugLineNum = 792;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 793;BA.debugLine="existe = c.GetString(\"EXISTE1\")"; +_existe = _c.GetString("EXISTE1"); + //BA.debugLineNum = 794;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 795;BA.debugLine="If existe > 0 Then"; +if ((double)(Double.parseDouble(_existe))>0) { + //BA.debugLineNum = 796;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 797;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 798;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + }else { + //BA.debugLineNum = 800;BA.debugLine="usuario = \"SINUSUARIO\""; +_usuario = "SINUSUARIO"; + }; + //BA.debugLineNum = 802;BA.debugLine="End Sub"; +return ""; +} +public String _entrar_click() throws Exception{ +anywheresoftware.b4a.agraham.reflection.Reflection _r = null; +int _api = 0; +anywheresoftware.b4a.phone.Phone _pp = null; +int _id = 0; + //BA.debugLineNum = 414;BA.debugLine="Sub Entrar_Click"; + //BA.debugLineNum = 415;BA.debugLine="Dim r As Reflector"; +_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); + //BA.debugLineNum = 416;BA.debugLine="Dim Api As Int"; +_api = 0; + //BA.debugLineNum = 417;BA.debugLine="Dim PP As Phone"; +_pp = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 418;BA.debugLine="user.Text = user.Text.trim"; +_user.setText(BA.ObjectToCharSequence(_user.getText().trim())); + //BA.debugLineNum = 419;BA.debugLine="LogColor(Starter.server, Colors.Blue)"; +__c.LogImpl("31376261",_starter._server /*String*/ ,__c.Colors.Blue); + //BA.debugLineNum = 420;BA.debugLine="Api = r.GetStaticField(\"android.os.Build$VERSION\""; +_api = (int)(BA.ObjectToNumber(_r.GetStaticField("android.os.Build$VERSION","SDK_INT"))); + //BA.debugLineNum = 421;BA.debugLine="If Api < 9 Then"; +if (_api<9) { + //BA.debugLineNum = 423;BA.debugLine="If File.Exists(File.DirInternal, \"__id\") Then"; +if (__c.File.Exists(__c.File.getDirInternal(),"__id")) { + //BA.debugLineNum = 424;BA.debugLine="IMEI = File.ReadString(File.DirInternal, \"__id"; +_imei = __c.File.ReadString(__c.File.getDirInternal(),"__id"); + //BA.debugLineNum = 425;BA.debugLine="Log(1&\"-\"&IMEI)"; +__c.LogImpl("31376267",BA.NumberToString(1)+"-"+_imei,0); + }else { + //BA.debugLineNum = 427;BA.debugLine="Dim id As Int"; +_id = 0; + //BA.debugLineNum = 428;BA.debugLine="id = Rnd(0x10000000, 0x7FFFFFFF)"; +_id = __c.Rnd(((int)0x10000000),((int)0x7fffffff)); + //BA.debugLineNum = 429;BA.debugLine="File.WriteString(File.DirInternal, \"__id\", id)"; +__c.File.WriteString(__c.File.getDirInternal(),"__id",BA.NumberToString(_id)); + //BA.debugLineNum = 430;BA.debugLine="IMEI = id"; +_imei = BA.NumberToString(_id); + //BA.debugLineNum = 431;BA.debugLine="Log(2&\"-\"&IMEI)"; +__c.LogImpl("31376273",BA.NumberToString(2)+"-"+_imei,0); + }; + }else { + //BA.debugLineNum = 435;BA.debugLine="IMEI = r.GetStaticField(\"android.os.Build\", \"SE"; +_imei = BA.ObjectToString(_r.GetStaticField("android.os.Build","SERIAL")); + //BA.debugLineNum = 436;BA.debugLine="Log(3&\"-\"&IMEI)"; +__c.LogImpl("31376278",BA.NumberToString(3)+"-"+_imei,0); + }; + //BA.debugLineNum = 438;BA.debugLine="If IMEI.ToLowerCase = \"unknown\" Then"; +if ((_imei.toLowerCase()).equals("unknown")) { + //BA.debugLineNum = 439;BA.debugLine="IMEI = PP.GetSettings(\"android_id\")"; +_imei = _pp.GetSettings("android_id"); + }; + //BA.debugLineNum = 441;BA.debugLine="Log(\"IMEI = \" & IMEI)"; +__c.LogImpl("31376283","IMEI = "+_imei,0); + //BA.debugLineNum = 442;BA.debugLine="If user.Text = \"ALTERNO\" Then"; +if ((_user.getText()).equals("ALTERNO")) { + //BA.debugLineNum = 443;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?",new String[]{"SERVER"}))); + //BA.debugLineNum = 444;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 445;BA.debugLine="server = c.GetString(\"CAT_CO_CONFIGURACION\")"; +_server = _c.GetString("CAT_CO_CONFIGURACION"); + //BA.debugLineNum = 446;BA.debugLine="alterno = c.GetString(\"CAT_CO_RESULTADO\")"; +_alterno = _c.GetString("CAT_CO_RESULTADO"); + //BA.debugLineNum = 447;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 448;BA.debugLine="If alterno = 1 Then"; +if ((_alterno).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 449;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_"; +_skmt.ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"})); + //BA.debugLineNum = 450;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_"; +_skmt.ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"})); + }else if((_alterno).equals(BA.NumberToString(2))) { + //BA.debugLineNum = 452;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_"; +_skmt.ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 1 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 1",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"})); + //BA.debugLineNum = 453;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE CAT_CODIGOS SET CAT_"; +_skmt.ExecNonQuery2("UPDATE CAT_CODIGOS SET CAT_CO_PONDERACION = 0 WHERE CAT_CO_ACCION = ? AND CAT_CO_RESULTADO = 2",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"SERVER"})); + }; + //BA.debugLineNum = 455;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_CO_CONFIGURACION,"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select CAT_CO_CONFIGURACION, CAT_CO_RESULTADO from CAT_CODIGOS where CAT_CO_PONDERACION =1 AND CAT_CO_ACCION = ?",new String[]{"SERVER"}))); + //BA.debugLineNum = 456;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 457;BA.debugLine="server = c.GetString(\"CAT_CO_CONFIGURACION\")"; +_server = _c.GetString("CAT_CO_CONFIGURACION"); + //BA.debugLineNum = 458;BA.debugLine="user.Text = server"; +_user.setText(BA.ObjectToCharSequence(_server)); + //BA.debugLineNum = 459;BA.debugLine="c.Close"; +_c.Close(); + }else if((_user.getText()).equals("KMTS1")) { + //BA.debugLineNum = 462;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")"; +_skmt.ExecNonQuery("delete from usuarioa"); + //BA.debugLineNum = 463;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES"; +_skmt.ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())})); + //BA.debugLineNum = 464;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")"; +_skmt.ExecNonQuery("delete from cat_almacen"); + //BA.debugLineNum = 465;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A"; +_skmt.ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_pass.getText())})); + //BA.debugLineNum = 466;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")"; +_skmt.ExecNonQuery("delete from VERSION"); + //BA.debugLineNum = 467;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO"; +_skmt.ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")})); + //BA.debugLineNum = 468;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + }else if((_user.getText()).equals("BERNA1")) { + //BA.debugLineNum = 470;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")"; +_skmt.ExecNonQuery("delete from usuarioa"); + //BA.debugLineNum = 471;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUES"; +_skmt.ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText()),(Object)("1")})); + //BA.debugLineNum = 472;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")"; +_skmt.ExecNonQuery("delete from cat_almacen"); + //BA.debugLineNum = 473;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID_A"; +_skmt.ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("1")})); + //BA.debugLineNum = 474;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")"; +_skmt.ExecNonQuery("delete from VERSION"); + //BA.debugLineNum = 475;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVERSIO"; +_skmt.ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")})); + //BA.debugLineNum = 476;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + }else if((_user.getText()).equals("IMEI")) { + //BA.debugLineNum = 478;BA.debugLine="user.Text = IMEI"; +_user.setText(BA.ObjectToCharSequence(_imei)); + }; + //BA.debugLineNum = 480;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) as EXISTE1 fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{_user.getText()}))); + //BA.debugLineNum = 481;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 482;BA.debugLine="existe = c.GetString(\"EXISTE1\")"; +_existe = _c.GetString("EXISTE1"); + //BA.debugLineNum = 483;BA.debugLine="If Subs.traeAlmacen <> \"NA\" Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals("NA") == false) { + //BA.debugLineNum = 484;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 485;BA.debugLine="cmd.Name = \"selectVersionAppGuna\""; +_cmd.Name /*String*/ = "selectVersionAppGuna"; + //BA.debugLineNum = 486;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeAlmace"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._traealmacen /*String*/ (ba))}; + //BA.debugLineNum = 487;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeVersion\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("traeVersion")); + }; + //BA.debugLineNum = 489;BA.debugLine="If existe = 0 Then"; +if ((_existe).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 490;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 491;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 492;BA.debugLine="cmd.Name = \"select_usuario_guna_GV2_10\" 'Antes s"; +_cmd.Name /*String*/ = "select_usuario_guna_GV2_10"; + //BA.debugLineNum = 493;BA.debugLine="cmd.Parameters = Array As Object(user.Text.Trim,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_user.getText().trim()),(Object)(_pass.getText().trim())}; + //BA.debugLineNum = 494;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario_10\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("usuario_10")); + //BA.debugLineNum = 517;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 518;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 519;BA.debugLine="cmd.Name = \"select_version_GV2\""; +_cmd.Name /*String*/ = "select_version_GV2"; + //BA.debugLineNum = 520;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("version")); + }else { + //BA.debugLineNum = 522;BA.debugLine="usuario = user.Text"; +_usuario = _user.getText(); + //BA.debugLineNum = 523;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + }; + //BA.debugLineNum = 525;BA.debugLine="End Sub"; +return ""; +} +public String _entrar_longclick() throws Exception{ + //BA.debugLineNum = 527;BA.debugLine="Sub Entrar_LongClick"; + //BA.debugLineNum = 529;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 766;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 767;BA.debugLine="If user.text = \"GPS\" Then"; +if ((_user.getText()).equals("GPS")) { + //BA.debugLineNum = 768;BA.debugLine="user.Text=Location1.Latitude"; +_user.setText(BA.ObjectToCharSequence(_location1.getLatitude())); + //BA.debugLineNum = 769;BA.debugLine="pass.text=Location1.Longitude"; +_pass.setText(BA.ObjectToCharSequence(_location1.getLongitude())); + }; + //BA.debugLineNum = 771;BA.debugLine="End Sub"; +return ""; +} +public String _i_engrane_click() throws Exception{ + //BA.debugLineNum = 859;BA.debugLine="Sub i_engrane_Click"; + //BA.debugLineNum = 860;BA.debugLine="p_appUpdate.Left = (Root.Width/2) - (p_appUpdate."; +_p_appupdate.setLeft((int) ((_root.getWidth()/(double)2)-(_p_appupdate.getWidth()/(double)2))); + //BA.debugLineNum = 861;BA.debugLine="lv_server.Clear"; +_lv_server.Clear(); + //BA.debugLineNum = 862;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1782\")"; +_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://keymon.net:1782")); + //BA.debugLineNum = 863;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 = 864;BA.debugLine="l_server.Text = Starter.server"; +_l_server.setText(BA.ObjectToCharSequence(_starter._server /*String*/ )); + //BA.debugLineNum = 865;BA.debugLine="et_server.Text = Starter.server"; +_et_server.setText(BA.ObjectToCharSequence(_starter._server /*String*/ )); + //BA.debugLineNum = 866;BA.debugLine="Subs.panelVisible(p_appUpdate,0,0)"; +_subs._panelvisible /*String*/ (ba,_p_appupdate,(int) (0),(int) (0)); + //BA.debugLineNum = 867;BA.debugLine="p_appUpdate.Height = Root.Height"; +_p_appupdate.setHeight(_root.getHeight()); + //BA.debugLineNum = 868;BA.debugLine="p_appUpdate.Width = Root.Width"; +_p_appupdate.setWidth(_root.getWidth()); + //BA.debugLineNum = 869;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT HABILITADA FROM IMPRESORA"))); + //BA.debugLineNum = 870;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 871;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO IMPRESORA VALUES"; +_skmt.ExecNonQuery2("INSERT INTO IMPRESORA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + }; + //BA.debugLineNum = 873;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT HABILITADO FROM GPS"))); + //BA.debugLineNum = 874;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 875;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO GPS VALUES (?)\","; +_skmt.ExecNonQuery2("INSERT INTO GPS VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + }; + //BA.debugLineNum = 877;BA.debugLine="If user.Text.Trim = \"KMTS1\" Then"; +if ((_user.getText().trim()).equals("KMTS1")) { + //BA.debugLineNum = 878;BA.debugLine="p_importarBDWA.Visible = True"; +_p_importarbdwa.setVisible(__c.True); + }else { + //BA.debugLineNum = 880;BA.debugLine="p_importarBDWA.Visible = False"; +_p_importarbdwa.setVisible(__c.False); + }; + //BA.debugLineNum = 882;BA.debugLine="End Sub"; +return ""; +} +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 99;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 101;BA.debugLine="End Sub"; +return ""; +} +public String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null; +Object[] _records = null; +String _cat_ve_version = ""; +String _k = ""; +String _id_almacen = ""; +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result1 = null; +String _cuantosencuesta = ""; +String _sdate = ""; +String _stime = ""; +String _fecha_hoy = ""; +String _name = ""; +String _imei_base = ""; +String _version = ""; +String _versionador = ""; +String _actualizaraplicacion = ""; +String _cuenta = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +String _rutades = ""; +String _almacendes = ""; +String _cat_ep_id = ""; +String _cat_ep_idtipopregunta = ""; +String _cat_ce_descripcion = ""; +String _cat_ep_pregunta = ""; +String _cat_ep_res1_pred = ""; +String _cat_ep_res2_pred = ""; +String _cat_ep_res3_pred = ""; +String _cat_ep_orden_pregunta = ""; + //BA.debugLineNum = 535;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 536;BA.debugLine="Log(\"JOBDONE MAINPAGE\")"; +__c.LogImpl("31572865","JOBDONE MAINPAGE",0); + //BA.debugLineNum = 537;BA.debugLine="Log(Job.Success)"; +__c.LogImpl("31572866",BA.ObjectToString(_job._success /*boolean*/ ),0); + //BA.debugLineNum = 538;BA.debugLine="If Job.Success = False Then"; +if (_job._success /*boolean*/ ==__c.False) { + //BA.debugLineNum = 539;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Subs.pars"; +__c.LogImpl("31572868","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red); + }else { + //BA.debugLineNum = 542;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; +__c.LogImpl("31572871","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 543;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 544;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 545;BA.debugLine="If result.Tag = \"version\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { + //BA.debugLineNum = 546;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group10 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen10 = group10.getSize() +;int index10 = 0; +; +for (; index10 < groupLen10;index10++){ +_records = (Object[])(group10.Get(index10)); + //BA.debugLineNum = 547;BA.debugLine="skmt.ExecNonQuery(\"delete from VERSION\")"; +_skmt.ExecNonQuery("delete from VERSION"); + //BA.debugLineNum = 548;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 = 549;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO VERSION(NOVER"; +_skmt.ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)})); + } +}; + }; + //BA.debugLineNum = 553;BA.debugLine="If result.Tag = \"select_fechat\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("select_fechat"))) { + //BA.debugLineNum = 554;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 = 555;BA.debugLine="For Each k As String In result.Columns.Keys"; +{ +final anywheresoftware.b4a.BA.IterableList group18 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final int groupLen18 = group18.getSize() +;int index18 = 0; +; +for (; index18 < groupLen18;index18++){ +_k = BA.ObjectToString(group18.Get(index18)); + //BA.debugLineNum = 556;BA.debugLine="Log(\"select_fechat: \" & k & \": \" & records(r"; +__c.LogImpl("31572885","select_fechat: "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + } +}; + } +}; + }; + }; + //BA.debugLineNum = 562;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 563;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 564;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) { + //BA.debugLineNum = 565;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group27 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen27 = group27.getSize() +;int index27 = 0; +; +for (; index27 < groupLen27;index27++){ +_records = (Object[])(group27.Get(index27)); + //BA.debugLineNum = 566;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 = 571;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 572;BA.debugLine="Dim result1 As DBResult = B4XPages.MainPage.req"; +_result1 = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 573;BA.debugLine="If result1.Tag = \"CHECAENCUESTA\" Then 'query ta"; +if ((_result1.Tag /*Object*/ ).equals((Object)("CHECAENCUESTA"))) { + //BA.debugLineNum = 574;BA.debugLine="For Each records() As Object In result1.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group35 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen35 = group35.getSize() +;int index35 = 0; +; +for (; index35 < groupLen35;index35++){ +_records = (Object[])(group35.Get(index35)); + //BA.debugLineNum = 575;BA.debugLine="Dim CUANTOSENCUESTA As String = records(resul"; +_cuantosencuesta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOS"))))]); + //BA.debugLineNum = 576;BA.debugLine="Log(CUANTOSENCUESTA)"; +__c.LogImpl("31572905",_cuantosencuesta,0); + } +}; + //BA.debugLineNum = 578;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 579;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 580;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 581;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 582;BA.debugLine="If CUANTOSENCUESTA = \"0\" Then"; +if ((_cuantosencuesta).equals("0")) { + //BA.debugLineNum = 583;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 584;BA.debugLine="cmd.Name =\"insert_drop_GV2_4\""; +_cmd.Name /*String*/ = "insert_drop_GV2_4"; + //BA.debugLineNum = 585;BA.debugLine="cmd.Parameters = Array As Object(usuario,Subs"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_usuario),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_sdate),(Object)(""),(Object)(_stime),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("ENCUESTA"),(Object)(_almacen),(Object)(__c.Application.getVersionName()),(Object)(_starter._encuesta /*String*/ )}; + //BA.debugLineNum = 586;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + }; + }; + }; + //BA.debugLineNum = 591;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 592;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 593;BA.debugLine="If result.Tag = \"fecha\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { + //BA.debugLineNum = 594;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group54 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen54 = group54.getSize() +;int index54 = 0; +; +for (; index54 < groupLen54;index54++){ +_records = (Object[])(group54.Get(index54)); + //BA.debugLineNum = 595;BA.debugLine="Dim FECHA_HOY As String = records(result.Colu"; +_fecha_hoy = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA"))))]); + //BA.debugLineNum = 596;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA")})); + //BA.debugLineNum = 597;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES"; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA"),(Object)(_fecha_hoy)})); + } +}; + }; + }; + //BA.debugLineNum = 602;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 603;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 604;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { + //BA.debugLineNum = 605;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group64 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen64 = group64.getSize() +;int index64 = 0; +; +for (; index64 < groupLen64;index64++){ +_records = (Object[])(group64.Get(index64)); + //BA.debugLineNum = 606;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 = 607;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 = 608;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 = 609;BA.debugLine="Log(records(result.Columns.Get(\"CAT_LO_IDTELE"; +__c.LogImpl("31572938",BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LO_IDTELEFONO"))))]),0); + } +}; + //BA.debugLineNum = 611;BA.debugLine="paso1 = 1"; +_paso1 = BA.NumberToString(1); + //BA.debugLineNum = 612;BA.debugLine="ToastMessageShow(name, False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence(_name),__c.False); + }; + }; + //BA.debugLineNum = 616;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 617;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 618;BA.debugLine="If result.Tag = \"usuario_10\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("usuario_10"))) { + //BA.debugLineNum = 619;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group77 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen77 = group77.getSize() +;int index77 = 0; +; +for (; index77 < groupLen77;index77++){ +_records = (Object[])(group77.Get(index77)); + //BA.debugLineNum = 620;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 = 621;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 = 622;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 = 623;BA.debugLine="Private version As String = records(result.C"; +_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSION"))))]); + //BA.debugLineNum = 624;BA.debugLine="Private versionador As String = records(resu"; +_versionador = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSIONADOR"))))]); + //BA.debugLineNum = 625;BA.debugLine="Private actualizarAplicacion As String = rec"; +_actualizaraplicacion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_ACTUALIZACION"))))]); + } +}; + //BA.debugLineNum = 627;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA")})); + //BA.debugLineNum = 628;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES("; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA"),(Object)(_version)})); + //BA.debugLineNum = 629;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION")})); + //BA.debugLineNum = 630;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES("; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION"),(Object)(_actualizaraplicacion)})); + //BA.debugLineNum = 633;BA.debugLine="Log(\"|\"&name&\"|\")"; +__c.LogImpl("31572962","|"+_name+"|",0); + //BA.debugLineNum = 634;BA.debugLine="Log($\">>>> GUARDAMOS NUEVA VERSION: ${version"; +__c.LogImpl("31572963",(">>>> GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0); + //BA.debugLineNum = 635;BA.debugLine="paso1 = 1"; +_paso1 = BA.NumberToString(1); + //BA.debugLineNum = 636;BA.debugLine="IMEI_BASE = \"\""; +_imei_base = ""; + //BA.debugLineNum = 637;BA.debugLine="IMEI = \"\""; +_imei = ""; + }; + //BA.debugLineNum = 640;BA.debugLine="If result.Tag = \"traeVersion\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("traeVersion"))) { + //BA.debugLineNum = 641;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group96 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen96 = group96.getSize() +;int index96 = 0; +; +for (; index96 < groupLen96;index96++){ +_records = (Object[])(group96.Get(index96)); + //BA.debugLineNum = 642;BA.debugLine="Private version As String = records(result.C"; +_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSION"))))]); + //BA.debugLineNum = 643;BA.debugLine="Private actualizarAplicacion As String = rec"; +_actualizaraplicacion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_ACTUALIZACION"))))]); + } +}; + //BA.debugLineNum = 645;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA")})); + //BA.debugLineNum = 646;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES("; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA"),(Object)(_version)})); + //BA.debugLineNum = 647;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION")})); + //BA.debugLineNum = 648;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES("; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION"),(Object)(_actualizaraplicacion)})); + //BA.debugLineNum = 649;BA.debugLine="Log($\">>>> GUARDAMOS NUEVA VERSION: ${version"; +__c.LogImpl("31572978",(">>>> GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0); + }; + }; + //BA.debugLineNum = 653;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 654;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 655;BA.debugLine="If result.Tag = \"geopass\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("geopass"))) { + //BA.debugLineNum = 656;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group110 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen110 = group110.getSize() +;int index110 = 0; +; +for (; index110 < groupLen110;index110++){ +_records = (Object[])(group110.Get(index110)); + //BA.debugLineNum = 657;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 = 659;BA.debugLine="If cuenta = \"1\" Then"; +if ((_cuenta).equals("1")) { + //BA.debugLineNum = 660;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 661;BA.debugLine="B4XSwitch2.Value = True"; +_b4xswitch2._setvalue /*boolean*/ (__c.True); + //BA.debugLineNum = 662;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO"; +_skmt.ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); + //BA.debugLineNum = 663;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 664;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"select"; +_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)(_skmt.ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))); + //BA.debugLineNum = 665;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 666;BA.debugLine="Private rutades As String = c2.GetString(\"CAT"; +_rutades = _c2.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 667;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 668;BA.debugLine="Private c2 As Cursor = skmt.ExecQuery(\"SELECT"; +_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)(_skmt.ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN"))); + //BA.debugLineNum = 669;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 670;BA.debugLine="Private almacendes As String = c2.GetString(\""; +_almacendes = _c2.GetString("ID_ALMACEN"); + //BA.debugLineNum = 671;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 672;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 673;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 674;BA.debugLine="cmd.Name = \"delete_geoPass_GUNA\""; +_cmd.Name /*String*/ = "delete_geoPass_GUNA"; + //BA.debugLineNum = 676;BA.debugLine="cmd.Parameters = Array As Object( almacendes,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacendes),(Object)(_rutades)}; + //BA.debugLineNum = 677;BA.debugLine="reqManager.ExecuteCommand(cmd , \"traeGeoPass\""; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("traeGeoPass")); + }else if((_cuenta).equals("0")) { + //BA.debugLineNum = 679;BA.debugLine="MsgboxAsync(\"Codigo incorrecto\",\"Atención\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Codigo incorrecto"),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 680;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 681;BA.debugLine="B4XSwitch2.Value = False"; +_b4xswitch2._setvalue /*boolean*/ (__c.False); + //BA.debugLineNum = 682;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE GPS SET HABILITADO"; +_skmt.ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + //BA.debugLineNum = 683;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + }; + }; + }; + //BA.debugLineNum = 688;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 689;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 690;BA.debugLine="If result.Tag = \"carga_encuesta\" Then 'query ta"; +if ((_result.Tag /*Object*/ ).equals((Object)("carga_encuesta"))) { + //BA.debugLineNum = 691;BA.debugLine="For Each records() As Object In result.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group143 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen143 = group143.getSize() +;int index143 = 0; +; +for (; index143 < groupLen143;index143++){ +_records = (Object[])(group143.Get(index143)); + //BA.debugLineNum = 692;BA.debugLine="Dim CAT_EP_ID As String = records(result.COLU"; +_cat_ep_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ID"))))]); + //BA.debugLineNum = 693;BA.debugLine="Dim CAT_EP_IDTIPOPREGUNTA As String = records"; +_cat_ep_idtipopregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_IDTIPOPREGUNTA"))))]); + //BA.debugLineNum = 694;BA.debugLine="Dim CAT_CE_DESCRIPCION As String = records(re"; +_cat_ce_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CE_DESCRIPCION"))))]); + //BA.debugLineNum = 695;BA.debugLine="Dim CAT_EP_PREGUNTA As String = records(resul"; +_cat_ep_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_PREGUNTA"))))]); + //BA.debugLineNum = 696;BA.debugLine="Dim CAT_EP_RES1_PRED As String = records(resu"; +_cat_ep_res1_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES1_PRED"))))]); + //BA.debugLineNum = 697;BA.debugLine="Dim CAT_EP_RES2_PRED As String = records(resu"; +_cat_ep_res2_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES2_PRED"))))]); + //BA.debugLineNum = 698;BA.debugLine="Dim CAT_EP_RES3_PRED As String = records(resu"; +_cat_ep_res3_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES3_PRED"))))]); + //BA.debugLineNum = 699;BA.debugLine="Dim CAT_EP_ORDEN_PREGUNTA As String = records"; +_cat_ep_orden_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ORDEN_PREGUNTA"))))]); + //BA.debugLineNum = 700;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ENCUESTA_"; +_skmt.ExecNonQuery2("INSERT INTO CAT_ENCUESTA_PREGUNTA (CAT_EP_ID ,CAT_EP_IDTIPOPREGUNTA ,CAT_CE_DESCRIPCION ,CAT_EP_PREGUNTA ,CAT_EP_RES1_PRED ,CAT_EP_RES2_PRED ,CAT_EP_RES3_PRED ,CAT_EP_ORDEN_PREGUNTA ) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ep_id),(Object)(_cat_ep_idtipopregunta),(Object)(_cat_ce_descripcion),(Object)(_cat_ep_pregunta),(Object)(_cat_ep_res1_pred),(Object)(_cat_ep_res2_pred),(Object)(_cat_ep_res3_pred),(Object)(_cat_ep_orden_pregunta)})); + } +}; + }; + }; + //BA.debugLineNum = 704;BA.debugLine="Job.Release"; +_job._release /*String*/ (); + }; + //BA.debugLineNum = 707;BA.debugLine="Log($\"Paso1 = ${paso1} - Name: ${name} - IMEI: ${"; +__c.LogImpl("31573036",("Paso1 = "+__c.SmartStringFormatter("",(Object)(_paso1))+" - Name: "+__c.SmartStringFormatter("",(Object)(_name))+" - IMEI: "+__c.SmartStringFormatter("",(Object)(_imei))+" - IMEI_BASE: "+__c.SmartStringFormatter("",(Object)(_imei_base))+""),0); + //BA.debugLineNum = 708;BA.debugLine="If paso1 = 1 Then"; +if ((_paso1).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 709;BA.debugLine="If IMEI = \"\" Then"; +if ((_imei).equals("")) { + //BA.debugLineNum = 710;BA.debugLine="If user.Text = \"KMTS1\" Then name = \"OKActivo\""; +if ((_user.getText()).equals("KMTS1")) { +_name = "OKActivo";}; + //BA.debugLineNum = 711;BA.debugLine="If name = \"OKActivo\" Then"; +if ((_name).equals("OKActivo")) { + //BA.debugLineNum = 712;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")"; +_skmt.ExecNonQuery("delete from usuarioa"); + //BA.debugLineNum = 713;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALUE"; +_skmt.ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())})); + //BA.debugLineNum = 714;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")"; +_skmt.ExecNonQuery("delete from cat_almacen"); + //BA.debugLineNum = 715;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(ID"; +_skmt.ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)})); + //BA.debugLineNum = 716;BA.debugLine="usuario = user.Text"; +_usuario = _user.getText(); + //BA.debugLineNum = 717;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + }else if((_name).equals("OKExpirado")) { + //BA.debugLineNum = 719;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrad"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba); + }else if((_name).equals("OKCancelado")) { + //BA.debugLineNum = 721;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administra"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba); + }else { + //BA.debugLineNum = 723;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'Ig"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba); + }; + //BA.debugLineNum = 725;BA.debugLine="paso1 = 0"; +_paso1 = BA.NumberToString(0); + }else { + //BA.debugLineNum = 727;BA.debugLine="If name = \"OKActivo\" & IMEI And IMEI = IMEI_BA"; +if ((_name).equals("OKActivo"+_imei) && (_imei).equals(_imei_base)) { + //BA.debugLineNum = 728;BA.debugLine="If name = \"OKActivo\" & IMEI Then"; +if ((_name).equals("OKActivo"+_imei)) { + //BA.debugLineNum = 729;BA.debugLine="skmt.ExecNonQuery(\"delete from usuarioa\")"; +_skmt.ExecNonQuery("delete from usuarioa"); + //BA.debugLineNum = 730;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO USUARIOA VALU"; +_skmt.ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())})); + //BA.debugLineNum = 731;BA.debugLine="skmt.ExecNonQuery(\"delete from cat_almacen\")"; +_skmt.ExecNonQuery("delete from cat_almacen"); + //BA.debugLineNum = 732;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMACEN(I"; +_skmt.ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)})); + //BA.debugLineNum = 733;BA.debugLine="usuario = user.Text"; +_usuario = _user.getText(); + //BA.debugLineNum = 734;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + }else if((_name).equals("OKExpirado"+_imei)) { + //BA.debugLineNum = 736;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba); + }else if((_name).equals("OKCancelado"+_imei)) { + //BA.debugLineNum = 738;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba); + }else { + //BA.debugLineNum = 740;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba); + }; + //BA.debugLineNum = 742;BA.debugLine="paso1 = 0"; +_paso1 = BA.NumberToString(0); + }else if((_name).equals("OKActivo")) { + //BA.debugLineNum = 744;BA.debugLine="Msgbox(\"Telefono no VALIDO!\",\"\") 'ignore"; +__c.Msgbox(BA.ObjectToCharSequence("Telefono no VALIDO!"),BA.ObjectToCharSequence(""),ba); + }else { + //BA.debugLineNum = 746;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ig"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba); + }; + }; + }; + //BA.debugLineNum = 750;BA.debugLine="End Sub"; +return ""; +} +public String _lv_server_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 897;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,"; + //BA.debugLineNum = 898;BA.debugLine="Starter.server = Value"; +_starter._server /*String*/ = BA.ObjectToString(_value); + //BA.debugLineNum = 899;BA.debugLine="l_server.Text = Value"; +_l_server.setText(BA.ObjectToCharSequence(_value)); + //BA.debugLineNum = 900;BA.debugLine="et_server.Text = Value"; +_et_server.setText(BA.ObjectToCharSequence(_value)); + //BA.debugLineNum = 901;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES whe"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer")})); + //BA.debugLineNum = 902;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CAT"; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer"),_value})); + //BA.debugLineNum = 903;BA.debugLine="Starter.reqManager.Initialize(Me, Value)"; +_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (ba,this,BA.ObjectToString(_value)); + //BA.debugLineNum = 904;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False); + //BA.debugLineNum = 905;BA.debugLine="End Sub"; +return ""; +} +public String _muestraprogreso(String _mensaje) throws Exception{ + //BA.debugLineNum = 850;BA.debugLine="Sub muestraProgreso(mensaje As String)"; + //BA.debugLineNum = 851;BA.debugLine="ProgressDialogShow(mensaje)"; +__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje)); + //BA.debugLineNum = 852;BA.debugLine="End Sub"; +return ""; +} +public String _ocultaprogreso() throws Exception{ + //BA.debugLineNum = 855;BA.debugLine="Sub ocultaProgreso"; + //BA.debugLineNum = 856;BA.debugLine="ProgressDialogHide"; +__c.ProgressDialogHide(); + //BA.debugLineNum = 857;BA.debugLine="End Sub"; +return ""; +} +public String _p_validacion_click() throws Exception{ + //BA.debugLineNum = 960;BA.debugLine="Private Sub p_validacion_Click"; + //BA.debugLineNum = 961;BA.debugLine="End Sub"; +return ""; +} +public String _pdf_click() throws Exception{ + //BA.debugLineNum = 786;BA.debugLine="Sub PDF_Click"; + //BA.debugLineNum = 788;BA.debugLine="End Sub"; +return ""; +} +public String _popupmenu_dismiss() throws Exception{ + //BA.debugLineNum = 773;BA.debugLine="Sub PopupMenu_Dismiss"; + //BA.debugLineNum = 774;BA.debugLine="ToastMessageShow(\"PopupMenu dismissed\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("PopupMenu dismissed"),__c.False); + //BA.debugLineNum = 775;BA.debugLine="End Sub"; +return ""; +} +public boolean _popupmenu_menuitemclick(int _itemid) throws Exception{ + //BA.debugLineNum = 777;BA.debugLine="Sub PopupMenu_MenuItemClick (ItemId As Int) As Boo"; + //BA.debugLineNum = 778;BA.debugLine="ToastMessageShow(\"Item \" & ItemId & \" clicked.\","; +__c.ToastMessageShow(BA.ObjectToCharSequence("Item "+BA.NumberToString(_itemid)+" clicked."),__c.False); + //BA.debugLineNum = 779;BA.debugLine="Return False"; +if (true) return __c.False; + //BA.debugLineNum = 780;BA.debugLine="End Sub"; +return false; +} +public void _revisaactualizacion() throws Exception{ +ResumableSub_revisaActualizacion rsub = new ResumableSub_revisaActualizacion(this); +rsub.resume(ba, null); +} +public static class ResumableSub_revisaActualizacion extends BA.ResumableSub { +public ResumableSub_revisaActualizacion(gunav2.keymon.com.mx.b4xmainpage parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.b4xmainpage parent; +String _link = ""; +gunav2.keymon.com.mx.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 = 1025;BA.debugLine="LogColor(\"Buscarmos archivo Ver\", Colors.red)"; +parent.__c.LogImpl("32949126","Buscarmos archivo Ver",parent.__c.Colors.Red); + //BA.debugLineNum = 1026;BA.debugLine="Private link As String = \"https://keymon.net/movi"; +_link = "https://keymon.net/movil/guna/gunaPreventa.ver"; + //BA.debugLineNum = 1027;BA.debugLine="Wait For (traeArchivoVer(Me, link)) JobDone (j As"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(parent._traearchivover(parent,_link))); +this.state = 28; +return; +case 28: +//C +this.state = 1; +_j = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 1028;BA.debugLine="If j.Success Then"; +if (true) break; + +case 1: +//if +this.state = 27; +if (_j._success /*boolean*/ ) { +this.state = 3; +}else { +this.state = 22; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 1029;BA.debugLine="LogColor(\"Archivo .VER encontrado.\", Colors.red)"; +parent.__c.LogImpl("32949130","Archivo .VER encontrado.",parent.__c.Colors.Red); + //BA.debugLineNum = 1030;BA.debugLine="Try"; +if (true) break; + +case 4: +//try +this.state = 20; +this.catchState = 15; +this.state = 6; +if (true) break; + +case 6: +//C +this.state = 7; +this.catchState = 15; + //BA.debugLineNum = 1031;BA.debugLine="Dim app() As String = Regex.Split(Chr(9),j.GetS"; +_app = parent.__c.Regex.Split(BA.ObjectToString(parent.__c.Chr((int) (9))),_j._getstring /*String*/ ()); + //BA.debugLineNum = 1033;BA.debugLine="Starter.newApp.appLink = app(3) 'Liga a nuevo"; +parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .appLink /*String*/ = _app[(int) (3)]; + //BA.debugLineNum = 1034;BA.debugLine="Starter.newApp.newMsg = app(1) 'Texto de que h"; +parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .newMsg /*String*/ = _app[(int) (1)]; + //BA.debugLineNum = 1035;BA.debugLine="Starter.newApp.okMsg = app(2) 'Texto de app"; +parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .okMsg /*String*/ = _app[(int) (2)]; + //BA.debugLineNum = 1036;BA.debugLine="Starter.newApp.version = app(0) 'Version actu"; +parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .version /*String*/ = _app[(int) (0)]; + //BA.debugLineNum = 1037;BA.debugLine="Log($\"Application.VersionName=${Application.Ver"; +parent.__c.LogImpl("32949138",("Application.VersionName="+parent.__c.SmartStringFormatter("",(Object)(parent.__c.Application.getVersionName()))+", newApp="+parent.__c.SmartStringFormatter("",(Object)(parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ ))+""),0); + //BA.debugLineNum = 1039;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; +parent.__c.DateTime.setDateFormat("yyyyMMdd"); + //BA.debugLineNum = 1040;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES w"; +parent._skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("REVISION_APK")})); + //BA.debugLineNum = 1041;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(C"; +parent._skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("REVISION_APK"),(Object)(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()))})); + //BA.debugLineNum = 1043;BA.debugLine="If Starter.newApp.version = Application.Version"; +if (true) break; + +case 7: +//if +this.state = 10; +if ((parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .version /*String*/ ).equals(parent.__c.Application.getVersionName())) { +this.state = 9; +}if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 1044;BA.debugLine="Starter.newApp.update = False"; +parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .update /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 1045;BA.debugLine="LogColor(\"No hay nuevo APK\", Colors.red)"; +parent.__c.LogImpl("32949146","No hay nuevo APK",parent.__c.Colors.Red); + //BA.debugLineNum = 1046;BA.debugLine="B4XPages.MainPage.Entrar.Enabled = True"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._entrar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(parent.__c.True); + if (true) break; +; + //BA.debugLineNum = 1048;BA.debugLine="If Starter.newApp.version <> Application.Versio"; + +case 10: +//if +this.state = 13; +if ((parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .version /*String*/ ).equals(parent.__c.Application.getVersionName()) == false) { +this.state = 12; +}if (true) break; + +case 12: +//C +this.state = 13; + //BA.debugLineNum = 1049;BA.debugLine="Starter.newApp.update = True"; +parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .update /*boolean*/ = parent.__c.True; + //BA.debugLineNum = 1050;BA.debugLine="LogColor(\"Hay nuevo APK\", Colors.red)"; +parent.__c.LogImpl("32949151","Hay nuevo APK",parent.__c.Colors.Red); + //BA.debugLineNum = 1051;BA.debugLine="b_actualizacion.Visible = True"; +parent._b_actualizacion.setVisible(parent.__c.True); + //BA.debugLineNum = 1052;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")"; +parent.__c.CallSubDelayed(ba,(Object)(parent._appupdater.getObject()),"download_newApk"); + if (true) break; + +case 13: +//C +this.state = 20; +; + if (true) break; + +case 15: +//C +this.state = 16; +this.catchState = 0; + //BA.debugLineNum = 1055;BA.debugLine="LogColor(\"appUpdater(), Job Failed, error \" &"; +parent.__c.LogImpl("32949156","appUpdater(), Job Failed, error "+parent.__c.LastException(ba).getMessage(),parent.__c.Colors.Red); + //BA.debugLineNum = 1056;BA.debugLine="If Msgbox2(\"Hubo un error: \" & LastException.Me"; +if (true) break; + +case 16: +//if +this.state = 19; +if (parent.__c.Msgbox2(BA.ObjectToCharSequence("Hubo un error: "+parent.__c.LastException(ba).getMessage()),BA.ObjectToCharSequence("FALLO LA ACTUALIZACIÓN"),"OK","","",(android.graphics.Bitmap)(parent.__c.Null),ba)==parent.__c.DialogResponse.POSITIVE) { +this.state = 18; +}if (true) break; + +case 18: +//C +this.state = 19; + //BA.debugLineNum = 1057;BA.debugLine="ExitApplication"; +parent.__c.ExitApplication(); + if (true) break; + +case 19: +//C +this.state = 20; +; + if (true) break; +if (true) break; + +case 20: +//C +this.state = 27; +this.catchState = 0; +; + if (true) break; + +case 22: +//C +this.state = 23; + //BA.debugLineNum = 1062;BA.debugLine="If Msgbox2(\"Es necesaria una conexión a internet"; +if (true) break; + +case 23: +//if +this.state = 26; +if (parent.__c.Msgbox2(BA.ObjectToCharSequence("Es necesaria una conexión a internet, por favor revise su conexión y vuelva a intentar"),BA.ObjectToCharSequence("ATENCIÓN"),"OK","","",(android.graphics.Bitmap)(parent.__c.Null),ba)==parent.__c.DialogResponse.POSITIVE) { +this.state = 25; +}if (true) break; + +case 25: +//C +this.state = 26; + //BA.debugLineNum = 1063;BA.debugLine="ExitApplication"; +parent.__c.ExitApplication(); + if (true) break; + +case 26: +//C +this.state = 27; +; + if (true) break; + +case 27: +//C +this.state = -1; +; + //BA.debugLineNum = 1066;BA.debugLine="j.Release"; +_j._release /*String*/ (); + //BA.debugLineNum = 1067;BA.debugLine="End Sub"; +if (true) break; +}} + catch (Exception e0) { + +if (catchState == 0) + throw e0; +else { + state = catchState; +ba.setLastException(e0);} + } + } + } +} +public gunav2.keymon.com.mx.httpjob _traearchivover(Object _callback,String _link) throws Exception{ +gunav2.keymon.com.mx.httpjob _j = null; + //BA.debugLineNum = 1075;BA.debugLine="Sub traeArchivoVer (Callback As Object, link As St"; + //BA.debugLineNum = 1076;BA.debugLine="Dim j As HttpJob"; +_j = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 1077;BA.debugLine="j.Initialize(\"\", Callback)"; +_j._initialize /*String*/ (ba,"",_callback); + //BA.debugLineNum = 1078;BA.debugLine="j.GetRequest.Timeout = 5000"; +_j._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().setTimeout((int) (5000)); + //BA.debugLineNum = 1079;BA.debugLine="j.Download(link)"; +_j._download /*String*/ (_link); + //BA.debugLineNum = 1080;BA.debugLine="Return j"; +if (true) return _j; + //BA.debugLineNum = 1081;BA.debugLine="End Sub"; +return null; +} +public String _user_enterpressed() throws Exception{ + //BA.debugLineNum = 531;BA.debugLine="Private Sub user_EnterPressed"; + //BA.debugLineNum = 532;BA.debugLine="If user.text = \"KMTS1\" Then Entrar.Enabled = True"; +if ((_user.getText()).equals("KMTS1")) { +_entrar.setEnabled(__c.True);}; + //BA.debugLineNum = 533;BA.debugLine="End Sub"; +return ""; +} +public boolean _versionrevisadahoy() throws Exception{ +boolean _revisada = false; + //BA.debugLineNum = 1084;BA.debugLine="Sub versionRevisadaHoy As Boolean"; + //BA.debugLineNum = 1085;BA.debugLine="Private revisada As Boolean = False"; +_revisada = __c.False; + //BA.debugLineNum = 1086;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"REVISION_APK"}))); + //BA.debugLineNum = 1087;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1088;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1089;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; +__c.DateTime.setDateFormat("yyyyMMdd"); + //BA.debugLineNum = 1090;BA.debugLine="If DateTime.Date(DateTime.Now) = c.GetString(\"CA"; +if ((__c.DateTime.Date(__c.DateTime.getNow())).equals(_c.GetString("CAT_VA_VALOR"))) { + //BA.debugLineNum = 1091;BA.debugLine="revisada = True"; +_revisada = __c.True; + //BA.debugLineNum = 1092;BA.debugLine="LogColor(\"La versión ya se revisó el día de hoy"; +__c.LogImpl("33080200","La versión ya se revisó el día de hoy.",__c.Colors.Red); + }; + }; + //BA.debugLineNum = 1098;BA.debugLine="Return False"; +if (true) return __c.False; + //BA.debugLineNum = 1100;BA.debugLine="End Sub"; +return false; +} +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((gunav2.keymon.com.mx.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xorderedmap.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xorderedmap.java new file mode 100644 index 0000000..7972c0e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xorderedmap.java @@ -0,0 +1,177 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xorderedmap"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xpages.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xpages.java new file mode 100644 index 0000000..a23331b --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xpages.java @@ -0,0 +1,140 @@ +package gunav2.keymon.com.mx; + + +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 gunav2.keymon.com.mx.b4xpagesdelegator _delegate = null; +public static Object _globalcontext = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo*/ (_b4xpage).Parent /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xpagesmanager; + //BA.debugLineNum = 11;BA.debugLine="End Sub"; +return false; +} +public static gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xpagesdelegator.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xpagesdelegator.java new file mode 100644 index 0000000..0dc4a09 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xpagesdelegator.java @@ -0,0 +1,104 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xpagesdelegator"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.b4xpagesmanager*/ (getActivityBA())._raiseevent /*String*/ (_b4xpages._getmanager /*gunav2.keymon.com.mx.b4xpagesmanager*/ (getActivityBA())._gettoppage /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xpagesmanager.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xpagesmanager.java new file mode 100644 index 0000000..13ac153 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xpagesmanager.java @@ -0,0 +1,1074 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xpagesmanager"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.b4xpagesmanager.class).invoke(this, new Object[] {null}); + else + ba.raiseEvent2(null, true, "class_globals", false); + } + + public anywheresoftware.b4a.keywords.Common __c = null; +public gunav2.keymon.com.mx.b4xorderedmap _idtob4xpage = null; +public gunav2.keymon.com.mx.b4xorderedmap _rootb4xtopage = null; +public anywheresoftware.b4j.object.JavaObject _context = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xmainpage _mainpage = null; +public String _stackstring = ""; +public boolean _logevents = false; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xpagesmanager._b4xpageparent(); +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public String _activity_actionbarhomeclick() throws Exception{ +gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xpagesmanager._b4amenuitem _addmenuitem(Object _b4xpage,Object _title) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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("938141955",("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 = ""; +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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("938010901","#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 gunav2.keymon.com.mx.b4xorderedmap(); + //BA.debugLineNum = 24;BA.debugLine="Private RootB4XToPage As B4XOrderedMap"; +_rootb4xtopage = new gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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("938404100","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("938404103","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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _createb4xpageinfo(Object _b4xpage,String _id,boolean _created,Object _title) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xpagesmanager._b4xpageparent _createb4xpageparent(Object _nativetype) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _pi = null; +anywheresoftware.b4j.object.JavaObject _jo = null; +gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen4 = group4.getSize() +;int index4 = 0; +; +for (; index4 < groupLen4;index4++){ +_mi = (gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.b4xpagesmanager._b4xpageparent*/ = _createb4xpageparent((Object)(_mmainform.getObject())); + //BA.debugLineNum = 384;BA.debugLine="pi.Parent.MenuItems.Initialize"; +_pi.Parent /*gunav2.keymon.com.mx.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); + //BA.debugLineNum = 392;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _findpifromb4xpage(Object _page) throws Exception{ +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _getpagefromid(String _id) throws Exception{ +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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("939059459","Error: page id not found: "+_id,0); + //BA.debugLineNum = 402;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore"; +__c.LogImpl("939059460","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 gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo)(_rootb4xtopage._get /*Object*/ ((Object)(_root.getObject()))); + //BA.debugLineNum = 409;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.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 (gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo)(__c.Null);}; + //BA.debugLineNum = 594;BA.debugLine="Return IdToB4XPage.Get(mStackOfPageIds.AsList.Get"; +if (true) return (gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xpagesmanager parent,gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _pi) { +this.parent = parent; +this._pi = _pi; +} +gunav2.keymon.com.mx.b4xpagesmanager parent; +gunav2.keymon.com.mx.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("937945371","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(gunav2.keymon.com.mx.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("940173571",_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(gunav2.keymon.com.mx.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("939649294","Too many parameters",0); + break; } +} +; + //BA.debugLineNum = 564;BA.debugLine="End Sub"; +return ""; +} +public Object _raiseeventwithresult(gunav2.keymon.com.mx.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("939714830","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{ +gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _pi = null; +gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.b4xpagesmanager._b4xpageinfo _pi = null; +gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.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{ +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xplusminus.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xplusminus.java new file mode 100644 index 0000000..01f5645 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xplusminus.java @@ -0,0 +1,590 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xplusminus"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xformatter _formatter = null; +public boolean _stringmode = false; +public int _size = 0; +public boolean _mhaptic = false; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 /*gunav2.keymon.com.mx.b4xformatter._b4xformatdata*/ ().FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _mainlabel.getFont(); + //BA.debugLineNum = 63;BA.debugLine="Formatter.GetDefaultFormat.TextColor = MainLabel."; +_formatter._getdefaultformat /*gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xplusminus parent,boolean _up) { +this.parent = parent; +this._up = _up; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xradiobutton.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xradiobutton.java new file mode 100644 index 0000000..21e9fcc --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xradiobutton.java @@ -0,0 +1,612 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xradiobutton"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xradiobutton parent,boolean _b,boolean _immediate) { +this.parent = parent; +this._b = _b; +this._immediate = _immediate; +} +gunav2.keymon.com.mx.b4xradiobutton parent; +boolean _b; +boolean _immediate; +int _i = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _v = null; +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xsearchtemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xsearchtemplate.java new file mode 100644 index 0000000..78c7683 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xsearchtemplate.java @@ -0,0 +1,523 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xsearchtemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xdialog _xdialog = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4xdialog(); + //BA.debugLineNum = 6;BA.debugLine="Public SearchField As B4XFloatTextField"; +_searchfield = new gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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("959047967","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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xsearchtemplate parent,gunav2.keymon.com.mx.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +gunav2.keymon.com.mx.b4xsearchtemplate parent; +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xseekbar.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xseekbar.java new file mode 100644 index 0000000..6a1c973 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xseekbar.java @@ -0,0 +1,298 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xseekbar"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xset.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xset.java new file mode 100644 index 0000000..7cdcf2e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xset.java @@ -0,0 +1,102 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xset"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.b4xset.class).invoke(this, new Object[] {null}); + else + ba.raiseEvent2(null, true, "class_globals", false); + } + + public anywheresoftware.b4a.keywords.Common __c = null; +public gunav2.keymon.com.mx.b4xorderedmap _map = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xsignaturetemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xsignaturetemplate.java new file mode 100644 index 0000000..6615a14 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xsignaturetemplate.java @@ -0,0 +1,181 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xsignaturetemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +if (BA.fastSubCompare(sub, "SHOW")) + return _show((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/b4xswitch.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xswitch.java new file mode 100644 index 0000000..cf52e61 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xswitch.java @@ -0,0 +1,506 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xswitch"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xswitch parent,boolean _b,boolean _immediate) { +this.parent = parent; +this._b = _b; +this._immediate = _immediate; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/b4xtimedtemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/b4xtimedtemplate.java new file mode 100644 index 0000000..9f17260 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/b4xtimedtemplate.java @@ -0,0 +1,187 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.b4xtimedtemplate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.anotherprogressbar _anotherprogressbar1 = null; +public Object _mtemplate = null; +public int _timeoutmilliseconds = 0; +public int _index = 0; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.b4xtimedtemplate parent,gunav2.keymon.com.mx.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +gunav2.keymon.com.mx.b4xtimedtemplate parent; +gunav2.keymon.com.mx.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((gunav2.keymon.com.mx.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/batteryutilities.java b/B4A/Objects/src/gunav2/keymon/com/mx/batteryutilities.java new file mode 100644 index 0000000..6278895 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/batteryutilities.java @@ -0,0 +1,164 @@ +package gunav2.keymon.com.mx; + +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, "gunav2.keymon.com.mx.batteryutilities"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 = 5;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 = 28;BA.debugLine="End Sub"; +return null; +} +public String _getbatterytechnolgy() throws Exception{ +String _batterytech = ""; + //BA.debugLineNum = 30;BA.debugLine="Public Sub getBatteryTechnolgy() As String"; + //BA.debugLineNum = 32;BA.debugLine="Dim batterytech As String"; +_batterytech = ""; + //BA.debugLineNum = 33;BA.debugLine="batterytech = nativeMe.RunMethod(\"getBatteryTechn"; +_batterytech = BA.ObjectToString(_nativeme.RunMethod("getBatteryTechnology",(Object[])(__c.Null))); + //BA.debugLineNum = 34;BA.debugLine="Return batterytech"; +if (true) return _batterytech; + //BA.debugLineNum = 36;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/gunav2/keymon/com/mx/c_bitacora.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_bitacora.java new file mode 100644 index 0000000..ea8d570 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_bitacora.java @@ -0,0 +1,457 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class c_bitacora 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, "gunav2.keymon.com.mx.c_bitacora"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_bitacora.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 _db = null; +public anywheresoftware.b4a.objects.B4XViewWrapper _root2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_transparenteiniciofin2 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_inicio_fin_venta2 = null; +public int _contadoriniciarventa = 0; +public int _precision = 0; +public boolean _inivenno = false; +public boolean _dentrodegeocerca = false; +public boolean _enventa = false; +public String _motivonoventa = ""; +public String _motivonovisita = ""; +public String _banderageocerca = ""; +public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _agregacolumna(String _tabla,String _columna,String _tipo) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 196;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri"; + //BA.debugLineNum = 197;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 198;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+__c.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+__c.SmartStringFormatter("",(Object)(_columna))+"'")))); + //BA.debugLineNum = 199;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 200;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; +if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 201;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"")); + //BA.debugLineNum = 202;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +__c.LogImpl("369468166",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0); + }; + } + catch (Exception e9) { + ba.setLastException(e9); //BA.debugLineNum = 206;BA.debugLine="Try"; +try { //BA.debugLineNum = 207;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"")); + //BA.debugLineNum = 208;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +__c.LogImpl("369468172",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0); + } + catch (Exception e13) { + ba.setLastException(e13); //BA.debugLineNum = 210;BA.debugLine="Log(LastException)"; +__c.LogImpl("369468174",BA.ObjectToString(__c.LastException(ba)),0); + }; + //BA.debugLineNum = 212;BA.debugLine="Log(2)"; +__c.LogImpl("369468176",BA.NumberToString(2),0); + }; + //BA.debugLineNum = 214;BA.debugLine="End Sub"; +return ""; +} +public String _b_inicio_fin_venta2_click() throws Exception{ + //BA.debugLineNum = 128;BA.debugLine="Private Sub b_Inicio_Fin_venta2_Click"; + //BA.debugLineNum = 131;BA.debugLine="contadorIniciarVenta = 0"; +_contadoriniciarventa = (int) (0); + //BA.debugLineNum = 132;BA.debugLine="IniVenNO = False"; +_inivenno = __c.False; + //BA.debugLineNum = 133;BA.debugLine="If dentroDeGeocerca Then precision = 1"; +if (_dentrodegeocerca) { +_precision = (int) (1);}; + //BA.debugLineNum = 135;BA.debugLine="LogColor($\">>>>>>>>>>>> EN VENTA : ${enVenta}"; +__c.LogImpl("369206023",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue); + //BA.debugLineNum = 136;BA.debugLine="motivoNoVenta = \"\""; +_motivonoventa = ""; + //BA.debugLineNum = 137;BA.debugLine="motivoNoVisita = \"\""; +_motivonovisita = ""; + //BA.debugLineNum = 138;BA.debugLine="p_transparenteInicioFin2.Visible = False"; +_p_transparenteiniciofin2.setVisible(__c.False); + //BA.debugLineNum = 139;BA.debugLine="If b_Inicio_Fin_venta2.Text = \"TERMINAR VISITA\" T"; +if ((_b_inicio_fin_venta2.getText()).equals("TERMINAR VISITA")) { + //BA.debugLineNum = 140;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), Su"; +_mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._traeusuariodebd /*String*/ (ba),_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"Termina Venta",_subs._traecliente /*String*/ (ba),"",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(_precision),_motivonoventa,_motivonovisita,_banderageocerca); + //BA.debugLineNum = 141;BA.debugLine="enVenta = False"; +_enventa = __c.False; + //BA.debugLineNum = 142;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Colors"; +__c.LogImpl("369206030",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red); + //BA.debugLineNum = 143;BA.debugLine="iniciamosVenta"; +_iniciamosventa(); + //BA.debugLineNum = 144;BA.debugLine="B4XPages.ShowPageAndRemovePreviousPages(\"Princip"; +_b4xpages._showpageandremovepreviouspages /*String*/ (ba,"Principal"); + }else if((_b_inicio_fin_venta2.getText()).equals("INICIAR VISITA")) { + //BA.debugLineNum = 147;BA.debugLine="contadorIniciarVenta = 0"; +_contadoriniciarventa = (int) (0); + //BA.debugLineNum = 148;BA.debugLine="IniVenNO = False"; +_inivenno = __c.False; + //BA.debugLineNum = 149;BA.debugLine="contadorIniciarVenta = contadorIniciarVenta + 1"; +_contadoriniciarventa = (int) (_contadoriniciarventa+1); + //BA.debugLineNum = 150;BA.debugLine="If contadorIniciarVenta = 1 And IniVenNO = False"; +if (_contadoriniciarventa==1 && _inivenno==__c.False && (_motivonoventa).equals("NO VENTA") == false) { + //BA.debugLineNum = 151;BA.debugLine="IniVenNO = True"; +_inivenno = __c.True; + //BA.debugLineNum = 152;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), S"; +_mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._traeusuariodebd /*String*/ (ba),_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"Inicia Venta",_subs._traecliente /*String*/ (ba),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),"",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(_precision),"","",_banderageocerca); + //BA.debugLineNum = 153;BA.debugLine="enVenta = True"; +_enventa = __c.True; + //BA.debugLineNum = 154;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color"; +__c.LogImpl("369206042",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red); + }else if(_contadoriniciarventa==1 && _inivenno==__c.False && (_motivonoventa).equals("NO VENTA")) { + //BA.debugLineNum = 157;BA.debugLine="IniVenNO = True"; +_inivenno = __c.True; + //BA.debugLineNum = 158;BA.debugLine="mandaBitacora(Subs.fechanormal(DateTime.Now), S"; +_mandabitacora(_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._traeusuariodebd /*String*/ (ba),_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"Inicia Venta",_subs._traecliente /*String*/ (ba),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),"",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(_precision),_motivonoventa,"",_banderageocerca); + //BA.debugLineNum = 159;BA.debugLine="enVenta = True"; +_enventa = __c.True; + //BA.debugLineNum = 160;BA.debugLine="LogColor($\">>>>>> EN VENTA: ${enVenta}\"$, Color"; +__c.LogImpl("369206048",(">>>>>> EN VENTA: "+__c.SmartStringFormatter("",(Object)(_enventa))+""),__c.Colors.Red); + }else if(_contadoriniciarventa>1) { + //BA.debugLineNum = 162;BA.debugLine="p_transparenteInicioFin2.Visible = False"; +_p_transparenteiniciofin2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 165;BA.debugLine="p_transparenteInicioFin2.Visible = False"; +_p_transparenteiniciofin2.setVisible(__c.False); + //BA.debugLineNum = 166;BA.debugLine="LogColor($\">>>>>>>>>>>> EN VENTA : ${enVenta}"; +__c.LogImpl("369206054",(">>>>>>>>>>>> EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue); + //BA.debugLineNum = 167;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 28;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 29;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 31;BA.debugLine="End Sub"; +return ""; +} +public String _borradatosbitacora() throws Exception{ + //BA.debugLineNum = 217;BA.debugLine="Sub borraDatosBitacora"; + //BA.debugLineNum = 218;BA.debugLine="db.ExecNonQuery(\"DELETE FROM BITACORAGPS\")"; +_db.ExecNonQuery("DELETE FROM BITACORAGPS"); + //BA.debugLineNum = 219;BA.debugLine="End Sub"; +return ""; +} +public String _cargamospanel() throws Exception{ + //BA.debugLineNum = 170;BA.debugLine="private Sub cargamosPanel"; + //BA.debugLineNum = 171;BA.debugLine="Log(p_transparenteInicioFin2.IsInitialized)"; +__c.LogImpl("369271553",BA.ObjectToString(_p_transparenteiniciofin2.IsInitialized()),0); + //BA.debugLineNum = 173;BA.debugLine="If Not(p_transparenteInicioFin2.IsInitialized) Th"; +if (__c.Not(_p_transparenteiniciofin2.IsInitialized())) { + //BA.debugLineNum = 174;BA.debugLine="LogColor(\">>>>>>> CARGAMOS PANEL BITACORA\", Co"; +__c.LogImpl("369271556",">>>>>>> CARGAMOS PANEL BITACORA",__c.Colors.Red); + //BA.debugLineNum = 175;BA.debugLine="Root2.LoadLayout(\"inicioFinVenta\")"; +_root2.LoadLayout("inicioFinVenta",ba); + //BA.debugLineNum = 176;BA.debugLine="p_transparenteInicioFin2.Width = Root2.Width"; +_p_transparenteiniciofin2.setWidth(_root2.getWidth()); + //BA.debugLineNum = 177;BA.debugLine="p_transparenteInicioFin2.Height = Root2.Height"; +_p_transparenteiniciofin2.setHeight(_root2.getHeight()); + //BA.debugLineNum = 178;BA.debugLine="b_Inicio_Fin_venta2.top = 700"; +_b_inicio_fin_venta2.setTop((int) (700)); + //BA.debugLineNum = 179;BA.debugLine="b_Inicio_Fin_venta2.Left = 5"; +_b_inicio_fin_venta2.setLeft((int) (5)); + //BA.debugLineNum = 180;BA.debugLine="b_Inicio_Fin_venta2.Width = Root2.Width - 20"; +_b_inicio_fin_venta2.setWidth((int) (_root2.getWidth()-20)); + //BA.debugLineNum = 181;BA.debugLine="b_Inicio_Fin_venta2.Text = \"INICIAR VISITA\""; +_b_inicio_fin_venta2.setText(BA.ObjectToCharSequence("INICIAR VISITA")); + //BA.debugLineNum = 182;BA.debugLine="p_transparenteInicioFin2.BringToFront"; +_p_transparenteiniciofin2.BringToFront(); + }; + //BA.debugLineNum = 184;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 db As SQL"; +_db = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 5;BA.debugLine="Private Root2 As B4XView"; +_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 6;BA.debugLine="Dim p_transparenteInicioFin2 As Panel"; +_p_transparenteiniciofin2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Dim b_Inicio_Fin_venta2 As Button"; +_b_inicio_fin_venta2 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Dim contadorIniciarVenta, precision As Int"; +_contadoriniciarventa = 0; +_precision = 0; + //BA.debugLineNum = 9;BA.debugLine="Dim IniVenNO, dentroDeGeocerca, enVenta As Boolea"; +_inivenno = false; +_dentrodegeocerca = false; +_enventa = false; + //BA.debugLineNum = 10;BA.debugLine="Dim motivoNoVenta, motivoNoVisita As String"; +_motivonoventa = ""; +_motivonovisita = ""; + //BA.debugLineNum = 11;BA.debugLine="Dim banderaGeoCerca As String"; +_banderageocerca = ""; + //BA.debugLineNum = 12;BA.debugLine="Private reqManager As DBRequestManager"; +_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager(); + //BA.debugLineNum = 13;BA.debugLine="End Sub"; +return ""; +} +public String _iniciamosventa() throws Exception{ + //BA.debugLineNum = 191;BA.debugLine="Sub iniciamosVenta"; + //BA.debugLineNum = 192;BA.debugLine="enVenta = False"; +_enventa = __c.False; + //BA.debugLineNum = 193;BA.debugLine="b_Inicio_Fin_venta2.Text = \"INICIAR VISITA\""; +_b_inicio_fin_venta2.setText(BA.ObjectToCharSequence("INICIAR VISITA")); + //BA.debugLineNum = 194;BA.debugLine="End Sub"; +return ""; +} +public String _iniciofin() throws Exception{ + //BA.debugLineNum = 112;BA.debugLine="Sub inicioFin"; + //BA.debugLineNum = 113;BA.debugLine="LogColor($\">>>>>>>>>>>> XX EN VENTA : ${enVenta"; +__c.LogImpl("369140481",(">>>>>>>>>>>> XX EN VENTA : "+__c.SmartStringFormatter("",(Object)(_enventa))+" <<<<<<<<<<<<"),__c.Colors.Blue); + //BA.debugLineNum = 114;BA.debugLine="Log(b_Inicio_Fin_venta2.Text)"; +__c.LogImpl("369140482",_b_inicio_fin_venta2.getText(),0); + //BA.debugLineNum = 115;BA.debugLine="If enVenta = False Then"; +if (_enventa==__c.False) { + //BA.debugLineNum = 116;BA.debugLine="p_transparenteInicioFin2.BringToFront"; +_p_transparenteiniciofin2.BringToFront(); + //BA.debugLineNum = 117;BA.debugLine="p_transparenteInicioFin2.Visible = True"; +_p_transparenteiniciofin2.setVisible(__c.True); + }else { + //BA.debugLineNum = 121;BA.debugLine="If b_Inicio_Fin_venta2.Text <> \"TERMINAR VISITA\""; +if ((_b_inicio_fin_venta2.getText()).equals("TERMINAR VISITA") == false) { + //BA.debugLineNum = 122;BA.debugLine="p_transparenteInicioFin2.Visible = False"; +_p_transparenteiniciofin2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 126;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname,anywheresoftware.b4a.objects.B4XViewWrapper _vroot,anywheresoftware.b4a.sql.SQL _db1,gunav2.keymon.com.mx.dbrequestmanager _dbreq) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 16;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent"; + //BA.debugLineNum = 17;BA.debugLine="db = db1"; +_db = _db1; + //BA.debugLineNum = 18;BA.debugLine="Root2 = vRoot"; +_root2 = _vroot; + //BA.debugLineNum = 19;BA.debugLine="reqManager = DBReq"; +_reqmanager = _dbreq; + //BA.debugLineNum = 20;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS BITAC"; +_db.ExecNonQuery("CREATE TABLE IF NOT EXISTS BITACORAGPS(fechab TEXT, usuariob TEXT, almacenb TEXT, rutab TEXT, eventob TEXT, clienteb TEXT, iniciob TEXT, finb TEXT, latitudb TEXT, longitudb TEXT, precision TEXT, motivonoventa TEXT, motivonovisita TEXT, BAN_GEOB TEXT)"); + //BA.debugLineNum = 21;BA.debugLine="agregaColumna(\"BITACORAGPS\", \"BAN_GEOB\", \"TEXT\")"; +_agregacolumna("BITACORAGPS","BAN_GEOB","TEXT"); + //BA.debugLineNum = 22;BA.debugLine="contadorIniciarVenta = 0"; +_contadoriniciarventa = (int) (0); + //BA.debugLineNum = 23;BA.debugLine="cargamosPanel"; +_cargamospanel(); + //BA.debugLineNum = 24;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; +return null; +} +public String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null; + //BA.debugLineNum = 221;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 222;BA.debugLine="Log(\"JOBDONE BITACORA\")"; +__c.LogImpl("369599233","JOBDONE BITACORA",0); + //BA.debugLineNum = 223;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 224;BA.debugLine="Dim RESULT As DBResult = reqManager.HandleJob(Jo"; +_result = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 225;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success}"; +__c.LogImpl("369599236",("Tag: "+__c.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+__c.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0); + }; + //BA.debugLineNum = 228;BA.debugLine="If Job.Success = False Then"; +if (_job._success /*boolean*/ ==__c.False) { + //BA.debugLineNum = 230;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re"; +__c.LogImpl("369599241","Error: "+_job._errormessage /*String*/ ,__c.Colors.Red); + }else { + }; + //BA.debugLineNum = 234;BA.debugLine="End Sub"; +return ""; +} +public String _mandabitacora(String _fechab,String _usuariob,String _almacenb,String _rutab,String _eventob,String _clienteb,String _iniciob,String _finb,String _latitudb,String _longitudb,String _precisionb,String _motivonoventab,String _motivonovisitab,String _ban_geob) throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; +String _nombrecliente = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 37;BA.debugLine="Sub mandaBitacora(fechab As String, usuariob As St"; + //BA.debugLineNum = 38;BA.debugLine="Log(motivoNoVisitab)"; +__c.LogImpl("368943873",_motivonovisitab,0); + //BA.debugLineNum = 40;BA.debugLine="Private cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 41;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 42;BA.debugLine="cmd.Name = \"mandaBitacora3_GUNA\""; +_cmd.Name /*String*/ = "mandaBitacora3_GUNA"; + //BA.debugLineNum = 44;BA.debugLine="Private nombreCliente As String = traeNombreClien"; +_nombrecliente = _traenombrecliente(_clienteb); + //BA.debugLineNum = 45;BA.debugLine="If eventob = \"Llega a almacen\" Then"; +if ((_eventob).equals("Llega a almacen")) { + //BA.debugLineNum = 46;BA.debugLine="nombreCliente = \"BOLETA\""; +_nombrecliente = "BOLETA"; + //BA.debugLineNum = 47;BA.debugLine="clienteb = \"\""; +_clienteb = ""; + //BA.debugLineNum = 48;BA.debugLine="finb = iniciob"; +_finb = _iniciob; + }; + //BA.debugLineNum = 50;BA.debugLine="If eventob = \"Salida almacen\" Then nombreCliente"; +if ((_eventob).equals("Salida almacen")) { +_nombrecliente = "CHECKLIST";}; + //BA.debugLineNum = 51;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FIN"; +if ((_eventob).equals("Fin Día")) { +_nombrecliente = "FIN DIA";}; + //BA.debugLineNum = 52;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"CA"; +if ((_eventob).equals("Carga día")) { +_nombrecliente = "CARGA DIA";}; + //BA.debugLineNum = 53;BA.debugLine="If eventob = \"Carga día suplencia\" Then nombreCli"; +if ((_eventob).equals("Carga día suplencia")) { +_nombrecliente = _traerutassup();}; + //BA.debugLineNum = 54;BA.debugLine="If eventob <> \"Termina Venta\" And eventob <> \"No"; +if ((_eventob).equals("Termina Venta") == false && (_eventob).equals("No Venta") == false) { + //BA.debugLineNum = 55;BA.debugLine="db.ExecNonQuery($\"INSERT INTO BITACORAGPS (fecha"; +_db.ExecNonQuery(("INSERT INTO BITACORAGPS (fechab, usuariob , almacenb , rutab , eventob , clienteb , iniciob , finb , latitudb, longitudb , precision , motivonoventa , motivonovisita, BAN_GEOB) VALUES ('"+__c.SmartStringFormatter("",(Object)(_fechab))+"' ,'"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' , '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' , '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' , '"+__c.SmartStringFormatter("",(Object)(_eventob))+"' , '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' , '"+__c.SmartStringFormatter("",(Object)(_iniciob))+"' , '"+__c.SmartStringFormatter("",(Object)(_finb))+"' , '"+__c.SmartStringFormatter("",(Object)(_latitudb))+"' , '"+__c.SmartStringFormatter("",(Object)(_longitudb))+"' , '"+__c.SmartStringFormatter("",(Object)(_precisionb))+"' , '"+__c.SmartStringFormatter("",(Object)(_motivonoventab))+"' , '"+__c.SmartStringFormatter("",(Object)(_motivonovisitab))+"', '"+__c.SmartStringFormatter("",(Object)(_ban_geob))+"')")); + }else { + //BA.debugLineNum = 57;BA.debugLine="Private e As Cursor = db.ExecQuery($\"select fech"; +_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_db.ExecQuery(("select fechab from BITACORAGPS where usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' and eventob = 'Inicia Venta' order by fechab desc")))); + //BA.debugLineNum = 58;BA.debugLine="If e.RowCount > 0 Then"; +if (_e.getRowCount()>0) { + //BA.debugLineNum = 59;BA.debugLine="e.Position = 0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 60;BA.debugLine="Log(\"ACTUALIZA BITACORA\")"; +__c.LogImpl("368943895","ACTUALIZA BITACORA",0); + //BA.debugLineNum = 61;BA.debugLine="If eventob = \"Termina Venta\" Then"; +if ((_eventob).equals("Termina Venta")) { + //BA.debugLineNum = 62;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb"; +_db.ExecNonQuery(("update BITACORAGPS set finb = '"+__c.SmartStringFormatter("",(Object)(_finb))+"' where rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' and fechab = '"+__c.SmartStringFormatter("",(Object)(_e.GetString("fechab")))+"' ")); + //BA.debugLineNum = 63;BA.debugLine="cmd.Parameters = Array As Object(finb, rutab,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_finb),(Object)(_rutab),(Object)(_almacenb),(Object)(_usuariob),(Object)(_clienteb),(Object)("Inicia Venta"),(Object)(_e.GetString("fechab"))}; + }else if((_eventob).equals("No Venta")) { + //BA.debugLineNum = 65;BA.debugLine="db.ExecNonQuery($\"update BITACORAGPS set finb"; +_db.ExecNonQuery(("update BITACORAGPS set finb = '"+__c.SmartStringFormatter("",(Object)(_finb))+"', motivonoventa = '"+__c.SmartStringFormatter("",(Object)(_motivonoventab))+"', motivonovisita = '"+__c.SmartStringFormatter("",(Object)(_motivonovisitab))+"' where rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' and fechab = '"+__c.SmartStringFormatter("",(Object)(_e.GetString("fechab")))+"' ")); + //BA.debugLineNum = 66;BA.debugLine="cmd.Parameters = Array As Object(finb, motivoN"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_finb),(Object)(_motivonoventab),(Object)(_motivonovisitab),(Object)(_rutab),(Object)(_almacenb),(Object)(_usuariob),(Object)(_clienteb),(Object)("Inicia Venta"),(Object)(_e.GetString("fechab"))}; + }; + }; + }; + //BA.debugLineNum = 70;BA.debugLine="If eventob <> \"Inicia Venta\" Then"; +if ((_eventob).equals("Inicia Venta") == false) { + //BA.debugLineNum = 71;BA.debugLine="Private c As Cursor = db.ExecQuery($\"select * fr"; +_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)(_db.ExecQuery(("select * from BITACORAGPS where usuariob = '"+__c.SmartStringFormatter("",(Object)(_usuariob))+"' and almacenb = '"+__c.SmartStringFormatter("",(Object)(_almacenb))+"' and rutab = '"+__c.SmartStringFormatter("",(Object)(_rutab))+"' and clienteb = '"+__c.SmartStringFormatter("",(Object)(_clienteb))+"' order by fechab desc")))); + //BA.debugLineNum = 72;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 73;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 74;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"a"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("almacenb")),(Object)(_c.GetString("usuariob")),(Object)(_c.GetString("rutab")),(Object)(_c.GetString("eventob")),(Object)(_c.GetString("clienteb")),(Object)(_nombrecliente),(Object)(_c.GetString("iniciob")),(Object)(_c.GetString("finb")),(Object)(_c.GetString("latitudb")),(Object)(_c.GetString("longitudb")),(Object)(_c.GetString("precision")),(Object)(_c.GetString("motivonoventa")),(Object)(_c.GetString("motivonovisita")),(Object)(_c.GetString("fechab")),(Object)(_c.GetString("BAN_GEOB"))}; + //BA.debugLineNum = 75;BA.debugLine="reqManager.ExecuteCommand(cmd , \"mandaBitacora\""; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("mandaBitacora")); + }; + }; + //BA.debugLineNum = 79;BA.debugLine="End Sub"; +return ""; +} +public String _p_transparenteiniciofin2_click() throws Exception{ + //BA.debugLineNum = 186;BA.debugLine="Sub p_transparenteInicioFin2_click"; + //BA.debugLineNum = 188;BA.debugLine="End Sub"; +return ""; +} +public String _traenombrecliente(String _id) throws Exception{ +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _c = null; +String _n = ""; + //BA.debugLineNum = 82;BA.debugLine="Sub traeNombreCliente(id As String) As String"; + //BA.debugLineNum = 83;BA.debugLine="Private c As ResultSet = B4XPages.MainPage.skmt.E"; +_c = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_c = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_NOMBRE from kmt_info3 where CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 84;BA.debugLine="Private n As String = \"N/A\""; +_n = "N/A"; + //BA.debugLineNum = 85;BA.debugLine="Do While c.NextRow"; +while (_c.NextRow()) { + //BA.debugLineNum = 86;BA.debugLine="n = c.GetString(\"CAT_CL_NOMBRE\")"; +_n = _c.GetString("CAT_CL_NOMBRE"); + } +; + //BA.debugLineNum = 88;BA.debugLine="Return n"; +if (true) return _n; + //BA.debugLineNum = 89;BA.debugLine="End Sub"; +return ""; +} +public String _traerutassup() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _rutas = ""; +int _i = 0; + //BA.debugLineNum = 92;BA.debugLine="Sub traeRutasSup As String"; + //BA.debugLineNum = 93;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 94;BA.debugLine="Dim rutas As String"; +_rutas = ""; + //BA.debugLineNum = 95;BA.debugLine="rutas = \"\""; +_rutas = ""; + //BA.debugLineNum = 97;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info3"))); + //BA.debugLineNum = 99;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 100;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 = 101;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 102;BA.debugLine="rutas = rutas & c.GetString(\"CAT_CL_RUTA\") & \","; +_rutas = _rutas+_c.GetString("CAT_CL_RUTA")+", "; + } +}; + //BA.debugLineNum = 104;BA.debugLine="If rutas.Length > 0 Then rutas = rutas.SubString"; +if (_rutas.length()>0) { +_rutas = _rutas.substring((int) (0),(int) (_rutas.length()-2));}; + }; + //BA.debugLineNum = 107;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 108;BA.debugLine="Return rutas"; +if (true) return _rutas; + //BA.debugLineNum = 109;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((gunav2.keymon.com.mx.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/c_cliente.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_cliente.java new file mode 100644 index 0000000..71aff60 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_cliente.java @@ -0,0 +1,18878 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_cliente"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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.objects.PanelWrapper _p_cliente = null; +public gunav2.keymon.com.mx.c_cuestionario _cuest = null; +public anywheresoftware.b4a.gps.GPS _g = null; +public String _ruta = ""; +public anywheresoftware.b4a.sql.SQL _skmt = null; +public String _clie_id = ""; +public String _sdate = ""; +public String _stime = ""; +public String _usuario = ""; +public String _total_cliente = ""; +public String _m_lat = ""; +public String _m_lon = ""; +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 String _cuenta = ""; +public String _tipo_venta = ""; +public String _mac_impresora = ""; +public gunav2.keymon.com.mx.escposprinter _printer1 = null; +public anywheresoftware.b4a.gps.LocationWrapper _location2 = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _dd = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = 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 anywheresoftware.b4a.objects.LabelWrapper _l_cajetillas = null; +public anywheresoftware.b4a.objects.ButtonWrapper _tels = null; +public anywheresoftware.b4a.objects.LabelWrapper _label10 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label11 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _tar = null; +public anywheresoftware.b4a.objects.Timer _t1 = null; +public anywheresoftware.b4a.objects.Timer _t2 = 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.sql.SQL.CursorWrapper _s2 = null; +public String _res = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _hist = null; +public String _monto_compra = ""; +public String _meta = ""; +public String _meta2 = ""; +public String _verifica = ""; +public anywheresoftware.b4a.objects.LabelWrapper _l_qr = null; +public anywheresoftware.b4a.objects.ButtonWrapper _bt_qr = null; +public String _codigo = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_mapa = null; +public String _cuantos = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_imp = null; +public com.rootsoft.togglelibrary.ToggleLibrary _toggla = null; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _i_compra = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guarda_c = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_venta = null; +public String _almacen = ""; +public anywheresoftware.b4a.objects.LabelWrapper _la_gps = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_e_next = null; +public anywheresoftware.b4a.objects.EditTextWrapper _e_res_e = null; +public anywheresoftware.b4a.objects.LabelWrapper _t_tenc = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel2 = null; +public String _contador_e = ""; +public String _hr_res1 = ""; +public String _hr_res2 = ""; +public String _hr_res3 = ""; +public String _existe = ""; +public String _telefono = ""; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb5 = null; +public String _stay_hh = ""; +public String _stay_mi = ""; +public String _stay_ss = ""; +public anywheresoftware.b4a.objects.LabelWrapper _la_geo = null; +public int _result = 0; +public String _cercavalor = ""; +public String _la_ruta = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_like = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_gps = null; +public ice.zxing.b4aZXingLib _sc = null; +public anywheresoftware.b4a.objects.ScrollViewWrapper _sv_encuesta = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_e1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_e1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_e1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chb3 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel5 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton4 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton5 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton6 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton7 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton8 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton9 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton10 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton11 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton12 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton13 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton14 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox4 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox5 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox6 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox7 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _checkbox8 = null; +public anywheresoftware.b4a.objects.collections.Map _encuentasmapa = null; +public anywheresoftware.b4a.objects.EditTextWrapper _p6 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _p7 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _p8 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel7 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton17 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton16 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _radiobutton15 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p1_m2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb7_p6_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb6_p6_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb5_p6_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_p6_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_p6_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p6_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p6_m2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p5_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd3_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd2_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd1_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_p3_m2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p3_m2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel7_m2 = null; +public String _p4_m2 = ""; +public String _p3_m2 = ""; +public String _p6_m2 = ""; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p3_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb6_p3_m2 = null; +public String _existe2 = ""; +public String _existe3 = ""; +public String _existe4 = ""; +public String _existe5 = ""; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p1_m3 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p3_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p3_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p3_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p3_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p3_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p4_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p4_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p4_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p4_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p4_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd1_p5_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rd2_p5_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p6_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p6_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p6_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p6_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb5_p6_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb6_p6_m3 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p6_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p7_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p7_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p7_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p7_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p8_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p8_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p8_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p9_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p9_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_p9_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_p9_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb5_p9_m3 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m3 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_gallina = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_acepta_gallina = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_cancela_gallina = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_gallina = null; +public anywheresoftware.b4a.objects.LabelWrapper _la_cuenta_gallina = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_pregunta = null; +public String _girotienda = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_pregunta1 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_preguntag = null; +public String _en_que_encuesta = ""; +public String _encuesta = ""; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p1_m4 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m4 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p3_m4 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p4_1_m4 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p4_2_m4 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p4_3_m4 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p4_4_m4 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p4_5_m4 = null; +public String _itemselect2 = ""; +public String _itemselect3 = ""; +public String _itemselect4 = ""; +public String _itemselect5 = ""; +public String _itemselect6 = ""; +public String _itemselect7 = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m4 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_modulo5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p1_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p2_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p3_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p4_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p5_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p6_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p7_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p8_m5 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_p9_m5 = null; +public String _itemselect8 = ""; +public String _itemselect9 = ""; +public String _itemselect10 = ""; +public String _itemselect11 = ""; +public String _itemselect12 = ""; +public String _itemselect13 = ""; +public String _itemselect14 = ""; +public String _itemselect15 = ""; +public String _itemselect16 = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guardaencuesta_m5 = null; +public String _pasa = ""; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_p4_m2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel7_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb1_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb2_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p4_m2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb4_p4_m2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_guarda_ce_ped = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_01 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_02 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_03 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_04 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_05 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_06 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_07 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_08 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_09 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_10 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_11 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_12 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_13 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_14 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_15 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_16 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_17 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_18 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_19 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kp_20 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_01 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_02 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_03 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_04 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_05 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _kg_06 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_01 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_02 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_03 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_04 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_05 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_06 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_07 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _pk_08 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_01 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_02 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_03 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_04 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_05 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_06 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_07 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_08 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_09 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hpg_10 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_01 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_02 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_03 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _hc_04 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _b_01 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _b_02 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _ch_factura = null; +public String _que_modulo = ""; +public String _cuenta_modulo = ""; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_m3_p1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_m3_p1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_m3_p1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_m3_p1 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb1_m3_p2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb2_m3_p2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb3_m3_p2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _rb4_m3_p2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_p2_m3_1 = null; +public String _textemp2 = ""; +public String _textemp3 = ""; +public String _textemp4 = ""; +public String _textemp5 = ""; +public String _textemp6 = ""; +public String _textemp7 = ""; +public String _textemp8 = ""; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb3_p8_m3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _cb7_p6_m3 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_m1 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_m2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_m3 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_m4 = null; +public boolean _impresoraconectada = false; +public int _errorimpresora = 0; +public String _idencuestaaguardar = ""; +public int _botonpresionado = 0; +public String _encuestares = ""; +public int _indicepregunta = 0; +public String _tomar_foto = ""; +public int _cursor_foto = 0; +public String _id_encuesta = ""; +public String _chk_1_valor = ""; +public String _chk_2_valor = ""; +public String _chk_3_valor = ""; +public anywheresoftware.b4a.objects.PanelWrapper _panel10 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_chk_e = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chk_3 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chk_2 = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _chk_1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_chk_e = null; +public anywheresoftware.b4a.objects.LabelWrapper _label28 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_encuesta = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_continuar = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_3 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_2 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_encuesta_1 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_encuesta = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_txtencuesta = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_titencuesta = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imageview11 = null; +public long _distance = 0L; +public long _distancealm = 0L; +public anywheresoftware.b4a.objects.PanelWrapper _p_pidegeopass = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_geopass = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_geopass = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_geopass = null; +public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null; +public anywheresoftware.b4a.objects.IME _ime = null; +public gunav2.keymon.com.mx.cameraexclass _camex = null; +public boolean _frontcamera = false; +public anywheresoftware.b4a.objects.PanelWrapper _p_cam = null; +public String _nombrefoto = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null; +public anywheresoftware.b4a.objects.IME _teclado = null; +public String _fototomada = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_foto = null; +public String _precision = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_inicio_fin_venta = null; +public boolean _dentrodegeocerca = false; +public String _motivonoventa = ""; +public String _motivonovisita = ""; +public int _contadoriniciarventa = 0; +public boolean _inivenno = false; +public int _geocont = 0; +public anywheresoftware.b4a.objects.LabelWrapper _l_version = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_preventa = null; +public gunav2.keymon.com.mx.c_bitacora _bitacora = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_transparenteticketimpreso = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_codigoautorizacion = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_codigoautorizacion = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarcodigoautorizacion = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_ticketimpreso = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_enviarticket = null; +public String _archivoticketpdf = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_transparentepdf = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_enviopdf = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelarenviopdf = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_enviopdf = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_numeropdf = null; +public anywheresoftware.b4a.objects.ButtonWrapper _btnplanlealtad = null; +public anywheresoftware.b4a.objects.PanelWrapper _pnl_btns = null; +public anywheresoftware.b4a.objects.PanelWrapper _pnlplanlealtad = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imgplanlealtad = null; +public anywheresoftware.b4a.objects.ButtonWrapper _btnaceptaplanlealtad = null; +public anywheresoftware.b4a.objects.ButtonWrapper _btncancelarplanlealtad = null; +public String _bcredito = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_comentarios = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_comentario = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_agregarcom = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_cerarcom = null; +public anywheresoftware.b4a.objects.LabelWrapper _label19 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_comentario = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_comentarios = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imageview4 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_cliente_ = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_limite = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_credito = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_tipocliente = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_deuda = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_deuda = null; +public anywheresoftware.b4a.objects.LabelWrapper _label22 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_animal = null; +public int _contiguales = 0; +public anywheresoftware.b4a.objects.ButtonWrapper _b_preventa2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_atiende = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_atiende = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_cancelatiende = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_acepatiende = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_telefono = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_canceltelefono = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptelefono = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_telefono = null; +public double _totalpromos = 0; +public double _totalpromostotal = 0; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b_acepatiende_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null; + //BA.debugLineNum = 7919;BA.debugLine="Private Sub b_acepatiende_Click"; + //BA.debugLineNum = 7920;BA.debugLine="If et_atiende.Text <> \"\" Then"; +if ((_et_atiende.getText()).equals("") == false) { + //BA.debugLineNum = 7922;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skmt"; +_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_coord = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from ATIENDE where CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7924;BA.debugLine="If coord.RowCount = 0 Then"; +if (_coord.getRowCount()==0) { + //BA.debugLineNum = 7925;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ATIENDE(ATIENDE"; +_skmt.ExecNonQuery2("INSERT INTO ATIENDE(ATIENDE,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_atiende.getText(),_subs._traecliente /*String*/ (ba)})); + //BA.debugLineNum = 7926;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_ATIENDE1 = '"+__c.SmartStringFormatter("",(Object)(_et_atiende.getText()))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)")); + //BA.debugLineNum = 7927;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 7928;BA.debugLine="l_atiende.Text = et_atiende.Text"; +_l_atiende.setText(BA.ObjectToCharSequence(_et_atiende.getText())); + //BA.debugLineNum = 7929;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 7930;BA.debugLine="p_atiende.Visible = False"; +_p_atiende.setVisible(__c.False); + //BA.debugLineNum = 7931;BA.debugLine="et_atiende.Text = \"\""; +_et_atiende.setText(BA.ObjectToCharSequence("")); + }else { + //BA.debugLineNum = 7933;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE ATIENDE SET ATIENDE"; +_skmt.ExecNonQuery2("UPDATE ATIENDE SET ATIENDE = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_atiende.getText()})); + //BA.debugLineNum = 7934;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE km"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_ATIENDE1 = '"+__c.SmartStringFormatter("",(Object)(_et_atiende.getText()))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)")); + //BA.debugLineNum = 7935;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 7936;BA.debugLine="l_atiende.Text = et_atiende.Text"; +_l_atiende.setText(BA.ObjectToCharSequence(_et_atiende.getText())); + //BA.debugLineNum = 7937;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 7938;BA.debugLine="p_atiende.Visible = False"; +_p_atiende.setVisible(__c.False); + //BA.debugLineNum = 7939;BA.debugLine="et_atiende.Text = \"\""; +_et_atiende.setText(BA.ObjectToCharSequence("")); + }; + }else { + //BA.debugLineNum = 7944;BA.debugLine="MsgboxAsync(\"Por favor captura un nombre valido."; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un nombre valido."),BA.ObjectToCharSequence("Atención"),ba); + }; + //BA.debugLineNum = 7946;BA.debugLine="End Sub"; +return ""; +} +public String _b_acepta_gallina_click() throws Exception{ + //BA.debugLineNum = 5430;BA.debugLine="Private Sub B_ACEPTA_GALLINA_Click"; + //BA.debugLineNum = 5433;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 5434;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 5435;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 5436;BA.debugLine="c=skmt.ExecQuery(\"Select CUENTA from cuentaa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 5437;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5438;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 5439;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 5440;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 5441;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5442;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 5443;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 5444;BA.debugLine="c=skmt.ExecQuery(\"select ID_ALMACEN from CAT_ALMA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 5445;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 5446;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5447;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + }; + //BA.debugLineNum = 5449;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 5450;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO PEDIDO (PE_CEDIS"; +_skmt.ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRO1771"),(Object)(0),(Object)(0),(Object)(1),(Object)("1 KNORR SUIZA EXH C/50/22 GR +1 KNORR SUIZA GALLINA $279.00"),(Object)("PRO1771"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)})); + //BA.debugLineNum = 5451;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO PEDIDO (PE_CEDIS"; +_skmt.ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRO1771"),(Object)(139.5),(Object)(139.5),(Object)(1),(Object)("KNORR SUIZA EXH C/50/22 GR"),(Object)("UNI047"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)})); + //BA.debugLineNum = 5452;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO PEDIDO (PE_CEDIS"; +_skmt.ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRO1771"),(Object)(139.5),(Object)(139.5),(Object)(1),(Object)("KNORR SUIZA GALLINA"),(Object)("UNI860"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)})); + //BA.debugLineNum = 5454;BA.debugLine="c=skmt.ExecQuery(\"select sum(pe_costo_tot) as TOT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 5455;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5456;BA.debugLine="skmt.ExecNonQuery(\"delete from pedido_cliente whe"; +_skmt.ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 5457;BA.debugLine="skmt.ExecNonQuery2(\"insert into pedido_cliente(PC"; +_skmt.ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_almacen),(Object)(_la_ruta),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 5458;BA.debugLine="skmt.ExecNonQuery(\"UPDATE kmt_info3 set gestion ="; +_skmt.ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 5462;BA.debugLine="B_GALLINA.Visible = False"; +_b_gallina.setVisible(__c.False); + //BA.debugLineNum = 5463;BA.debugLine="b_like.Visible = True"; +_b_like.setVisible(__c.True); + //BA.debugLineNum = 5464;BA.debugLine="Tar.Visible = True"; +_tar.setVisible(__c.True); + //BA.debugLineNum = 5465;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 5466;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 5468;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 5469;BA.debugLine="Guardar.Visible = True"; +_guardar.setVisible(__c.True); + //BA.debugLineNum = 5470;BA.debugLine="P_gallina.Visible = False"; +_p_gallina.setVisible(__c.False); + //BA.debugLineNum = 5471;BA.debugLine="End Sub"; +return ""; +} +public String _b_aceptelefono_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null; + //BA.debugLineNum = 7966;BA.debugLine="Private Sub b_aceptelefono_Click"; + //BA.debugLineNum = 7967;BA.debugLine="If et_telefono.Text <> \"\" Then"; +if ((_et_telefono.getText()).equals("") == false) { + //BA.debugLineNum = 7968;BA.debugLine="If et_telefono.Text.Length = 10 Then"; +if (_et_telefono.getText().length()==10) { + //BA.debugLineNum = 7970;BA.debugLine="Private coord As Cursor = B4XPages.MainPage.skm"; +_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_coord = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * from TELEFONO where CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7972;BA.debugLine="If coord.RowCount = 0 Then"; +if (_coord.getRowCount()==0) { + //BA.debugLineNum = 7973;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO TELEFONO(TELEF"; +_skmt.ExecNonQuery2("INSERT INTO TELEFONO(TELEFONO,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_telefono.getText(),_subs._traecliente /*String*/ (ba)})); + //BA.debugLineNum = 7974;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE k"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_TELEFONO = '"+__c.SmartStringFormatter("",(Object)(_et_telefono.getText()))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)")); + //BA.debugLineNum = 7975;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 7976;BA.debugLine="Label19.Text = et_telefono.Text"; +_label19.setText(BA.ObjectToCharSequence(_et_telefono.getText())); + //BA.debugLineNum = 7977;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 7978;BA.debugLine="p_telefono.Visible = False"; +_p_telefono.setVisible(__c.False); + //BA.debugLineNum = 7979;BA.debugLine="et_telefono.Text = \"\""; +_et_telefono.setText(BA.ObjectToCharSequence("")); + }else { + //BA.debugLineNum = 7981;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE TELEFONO SET TELEFO"; +_skmt.ExecNonQuery2("UPDATE TELEFONO SET TELEFONO = ? where CLIENTE IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_et_telefono.getText()})); + //BA.debugLineNum = 7982;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"UPDATE k"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info3 set CAT_CL_TELEFONO = '"+__c.SmartStringFormatter("",(Object)(_et_telefono.getText()))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)")); + //BA.debugLineNum = 7983;BA.debugLine="MsgboxAsync(\"Datos actualizados.\",\"Atención\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Datos actualizados."),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 7984;BA.debugLine="Label19.Text = et_telefono.Text"; +_label19.setText(BA.ObjectToCharSequence(_et_telefono.getText())); + //BA.debugLineNum = 7986;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 7987;BA.debugLine="p_telefono.Visible = False"; +_p_telefono.setVisible(__c.False); + //BA.debugLineNum = 7988;BA.debugLine="et_telefono.Text = \"\""; +_et_telefono.setText(BA.ObjectToCharSequence("")); + }; + }else { + //BA.debugLineNum = 7992;BA.debugLine="MsgboxAsync(\"Por favor captura un numero de tel"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un numero de teléfono valido."),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 7995;BA.debugLine="MsgboxAsync(\"Por favor captura un numero de telé"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura un numero de teléfono valido."),BA.ObjectToCharSequence("Atención"),ba); + }; + //BA.debugLineNum = 7997;BA.debugLine="End Sub"; +return ""; +} +public String _b_agregarcom_click() throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _i = 0; +String _itemtext = ""; + //BA.debugLineNum = 7618;BA.debugLine="Private Sub b_agregarcom_Click"; + //BA.debugLineNum = 7620;BA.debugLine="If et_comentario.Text <> \"\" Then"; +if ((_et_comentario.getText()).equals("") == false) { + //BA.debugLineNum = 7621;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into COMENTARIOS (COMENTARTIO, CLIENTE) values ('"+__c.SmartStringFormatter("",(Object)(_et_comentario.getText()))+"','"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"')")); + //BA.debugLineNum = 7623;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 7624;BA.debugLine="label1 = lv_comentarios.SingleLineLayout.Label"; +_label1 = _lv_comentarios.getSingleLineLayout().Label; + //BA.debugLineNum = 7625;BA.debugLine="label1.TextSize = 16"; +_label1.setTextSize((float) (16)); + //BA.debugLineNum = 7626;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 7631;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DE"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 7636;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"se"; +_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 COMENTARTIO FROM COMENTARIOS WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7637;BA.debugLine="lv_comentarios.SingleLineLayout.Label.TextColor"; +_lv_comentarios.getSingleLineLayout().Label.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 7638;BA.debugLine="lv_comentarios.Clear"; +_lv_comentarios.Clear(); + //BA.debugLineNum = 7639;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 7640;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step12 = 1; +final int limit12 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit12 ;_i = _i + step12 ) { + //BA.debugLineNum = 7641;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 7642;BA.debugLine="Dim itemText As String"; +_itemtext = ""; + //BA.debugLineNum = 7644;BA.debugLine="itemText = $\"${c.GetString(\"COMENTARTIO\")}\"$"; +_itemtext = (""+__c.SmartStringFormatter("",(Object)(_c.GetString("COMENTARTIO")))+""); + //BA.debugLineNum = 7645;BA.debugLine="lv_comentarios.AddSingleLine(itemText)"; +_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence(_itemtext)); + } +}; + }else { + //BA.debugLineNum = 7649;BA.debugLine="lv_comentarios.AddSingleLine(\"No hay datos disp"; +_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles.")); + }; + //BA.debugLineNum = 7651;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 7652;BA.debugLine="et_comentario.Text = \"\""; +_et_comentario.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 7655;BA.debugLine="End Sub"; +return ""; +} +public String _b_cancela_gallina_click() throws Exception{ + //BA.debugLineNum = 5473;BA.debugLine="Private Sub B_CANCELA_GALLINA_Click"; + //BA.debugLineNum = 5474;BA.debugLine="P_gallina.Visible = False"; +_p_gallina.setVisible(__c.False); + //BA.debugLineNum = 5476;BA.debugLine="B_GALLINA.Visible = False"; +_b_gallina.setVisible(__c.False); + //BA.debugLineNum = 5477;BA.debugLine="b_like.Visible = True"; +_b_like.setVisible(__c.True); + //BA.debugLineNum = 5478;BA.debugLine="Tar.Visible = True"; +_tar.setVisible(__c.True); + //BA.debugLineNum = 5479;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 5480;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 5482;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 5483;BA.debugLine="Guardar.Visible = True"; +_guardar.setVisible(__c.True); + //BA.debugLineNum = 5486;BA.debugLine="End Sub"; +return ""; +} +public String _b_cancelarcodigoautorizacion_click() throws Exception{ + //BA.debugLineNum = 6755;BA.debugLine="Private Sub b_cancelarCodigoAutorizacion_Click"; + //BA.debugLineNum = 6756;BA.debugLine="p_transparenteTicketImpreso.Visible = False"; +_p_transparenteticketimpreso.setVisible(__c.False); + //BA.debugLineNum = 6757;BA.debugLine="End Sub"; +return ""; +} +public String _b_cancelarenviopdf_click() throws Exception{ + //BA.debugLineNum = 7485;BA.debugLine="Private Sub b_cancelarEnvioPDF_Click"; + //BA.debugLineNum = 7486;BA.debugLine="p_transparentePDF.Visible = False"; +_p_transparentepdf.setVisible(__c.False); + //BA.debugLineNum = 7487;BA.debugLine="End Sub"; +return ""; +} +public String _b_cancelatiende_click() throws Exception{ + //BA.debugLineNum = 7948;BA.debugLine="Private Sub b_cancelatiende_Click"; + //BA.debugLineNum = 7949;BA.debugLine="p_atiende.Visible = False"; +_p_atiende.setVisible(__c.False); + //BA.debugLineNum = 7950;BA.debugLine="et_atiende.Text = \"\""; +_et_atiende.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 7951;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 7952;BA.debugLine="End Sub"; +return ""; +} +public String _b_canceltelefono_click() throws Exception{ + //BA.debugLineNum = 7999;BA.debugLine="Private Sub b_canceltelefono_Click"; + //BA.debugLineNum = 8000;BA.debugLine="p_telefono.Visible = False"; +_p_telefono.setVisible(__c.False); + //BA.debugLineNum = 8001;BA.debugLine="et_telefono.Text = \"\""; +_et_telefono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 8002;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 8003;BA.debugLine="End Sub"; +return ""; +} +public String _b_cerarcom_click() throws Exception{ + //BA.debugLineNum = 7613;BA.debugLine="Private Sub b_cerarcom_Click"; + //BA.debugLineNum = 7614;BA.debugLine="p_comentario.Visible = False"; +_p_comentario.setVisible(__c.False); + //BA.debugLineNum = 7615;BA.debugLine="et_comentario.Text = \"\""; +_et_comentario.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 7616;BA.debugLine="End Sub"; +return ""; +} +public String _b_chk_e_click() throws Exception{ + //BA.debugLineNum = 6502;BA.debugLine="Private Sub b_chk_e_Click"; + //BA.debugLineNum = 6504;BA.debugLine="End Sub"; +return ""; +} +public String _b_codigoautorizacion_click() throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; + //BA.debugLineNum = 6737;BA.debugLine="Private Sub b_codigoAutorizacion_Click"; + //BA.debugLineNum = 6738;BA.debugLine="If et_codigoAutorizacion.Text <> \"KMTS1\" Then"; +if ((_et_codigoautorizacion.getText()).equals("KMTS1") == false) { + //BA.debugLineNum = 6739;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 6740;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 6741;BA.debugLine="cmd.Name = \"select_codigoAutorizacion\""; +_cmd.Name /*String*/ = "select_codigoAutorizacion"; + //BA.debugLineNum = 6742;BA.debugLine="cmd.Parameters = Array As Object(et_codigoAutori"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_et_codigoautorizacion.getText().trim()),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_subs._traealmacen /*String*/ (ba))}; + //BA.debugLineNum = 6743;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"codigoAutoriza"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("codigoAutorizacion")); + }else { + //BA.debugLineNum = 6745;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from ticket_im"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ticket_impreso where idCliente in (select cuenta from cuentaa)"); + //BA.debugLineNum = 6746;BA.debugLine="p_transparenteTicketImpreso.Visible = False"; +_p_transparenteticketimpreso.setVisible(__c.False); + //BA.debugLineNum = 6747;BA.debugLine="et_codigoAutorizacion.Text = \"\""; +_et_codigoautorizacion.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 6748;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 6749;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CREDIT"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + }; + //BA.debugLineNum = 6751;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 6753;BA.debugLine="End Sub"; +return ""; +} +public String _b_comentarios_click() throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _i = 0; +String _itemtext = ""; + //BA.debugLineNum = 7577;BA.debugLine="Private Sub b_comentarios_Click"; + //BA.debugLineNum = 7578;BA.debugLine="p_comentario.Visible = True"; +_p_comentario.setVisible(__c.True); + //BA.debugLineNum = 7579;BA.debugLine="et_comentario.Text = \"\""; +_et_comentario.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 7580;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 7581;BA.debugLine="label1 = lv_comentarios.SingleLineLayout.Label"; +_label1 = _lv_comentarios.getSingleLineLayout().Label; + //BA.debugLineNum = 7582;BA.debugLine="label1.TextSize = 16"; +_label1.setTextSize((float) (16)); + //BA.debugLineNum = 7583;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 7588;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DEF"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 7593;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 COMENTARTIO FROM COMENTARIOS WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7594;BA.debugLine="lv_comentarios.SingleLineLayout.Label.TextColor ="; +_lv_comentarios.getSingleLineLayout().Label.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 7595;BA.debugLine="lv_comentarios.Clear"; +_lv_comentarios.Clear(); + //BA.debugLineNum = 7596;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 7597;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step12 = 1; +final int limit12 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit12 ;_i = _i + step12 ) { + //BA.debugLineNum = 7598;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 7599;BA.debugLine="Dim itemText As String"; +_itemtext = ""; + //BA.debugLineNum = 7601;BA.debugLine="itemText = $\"${c.GetString(\"COMENTARTIO\")}\"$"; +_itemtext = (""+__c.SmartStringFormatter("",(Object)(_c.GetString("COMENTARTIO")))+""); + //BA.debugLineNum = 7602;BA.debugLine="lv_comentarios.AddSingleLine(itemText)"; +_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence(_itemtext)); + } +}; + }else { + //BA.debugLineNum = 7606;BA.debugLine="lv_comentarios.AddSingleLine(\"No hay datos dispo"; +_lv_comentarios.AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles.")); + }; + //BA.debugLineNum = 7611;BA.debugLine="End Sub"; +return ""; +} +public String _b_e_next_click() throws Exception{ + //BA.debugLineNum = 4642;BA.debugLine="Sub B_E_NEXT_Click"; + //BA.debugLineNum = 4643;BA.debugLine="If E_RES_E.Text <> \"\" Then"; +if ((_e_res_e.getText()).equals("") == false) { + //BA.debugLineNum = 4644;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_la_cuenta.getText()),(Object)(_e_res_e.getText()),(Object)(_sdate+_stime),(Object)("DONDE")})); + //BA.debugLineNum = 4645;BA.debugLine="Panel2.Visible = False"; +_panel2.setVisible(__c.False); + //BA.debugLineNum = 4646;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }else { + //BA.debugLineNum = 4648;BA.debugLine="Msgbox(\"SIN RESPUESTA\",\"AVISO\") 'Ignore"; +__c.Msgbox(BA.ObjectToCharSequence("SIN RESPUESTA"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 4650;BA.debugLine="End Sub"; +return ""; +} +public String _b_encuesta_1_click() throws Exception{ +anywheresoftware.b4a.objects.ButtonWrapper _btn = null; + //BA.debugLineNum = 6426;BA.debugLine="Private Sub b_encuesta_1_Click"; + //BA.debugLineNum = 6427;BA.debugLine="Log(\"BOTON 1 CLICK\")"; +__c.LogImpl("324248321","BOTON 1 CLICK",0); + //BA.debugLineNum = 6428;BA.debugLine="Dim btn As Button = Sender"; +_btn = new anywheresoftware.b4a.objects.ButtonWrapper(); +_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba))); + //BA.debugLineNum = 6429;BA.debugLine="Log(\"BOTON 1 CLICKED \"& \" clicked - \" & btn.Text"; +__c.LogImpl("324248323","BOTON 1 CLICKED "+" clicked - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0); + //BA.debugLineNum = 6430;BA.debugLine="encuestaRes = btn.Text"; +_encuestares = _btn.getText(); + //BA.debugLineNum = 6431;BA.debugLine="indicePregunta = btn.Tag"; +_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag())); + //BA.debugLineNum = 6432;BA.debugLine="ocultaPanelEncuesta"; +_ocultapanelencuesta(); + //BA.debugLineNum = 6433;BA.debugLine="botonPresionado = 1"; +_botonpresionado = (int) (1); + //BA.debugLineNum = 6434;BA.debugLine="End Sub"; +return ""; +} +public String _b_encuesta_2_click() throws Exception{ +anywheresoftware.b4a.objects.ButtonWrapper _btn = null; + //BA.debugLineNum = 6436;BA.debugLine="Private Sub b_encuesta_2_Click"; + //BA.debugLineNum = 6437;BA.debugLine="Log(\"BOTON 2 CLICK\")"; +__c.LogImpl("324313857","BOTON 2 CLICK",0); + //BA.debugLineNum = 6438;BA.debugLine="Dim btn As Button = Sender"; +_btn = new anywheresoftware.b4a.objects.ButtonWrapper(); +_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba))); + //BA.debugLineNum = 6439;BA.debugLine="Log(\"BOTON 2 CLICKED \"& \" clicked - \" & btn.Text"; +__c.LogImpl("324313859","BOTON 2 CLICKED "+" clicked - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0); + //BA.debugLineNum = 6440;BA.debugLine="encuestaRes = btn.Text"; +_encuestares = _btn.getText(); + //BA.debugLineNum = 6441;BA.debugLine="indicePregunta = btn.Tag"; +_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag())); + //BA.debugLineNum = 6442;BA.debugLine="ocultaPanelEncuesta"; +_ocultapanelencuesta(); + //BA.debugLineNum = 6443;BA.debugLine="botonPresionado = 1"; +_botonpresionado = (int) (1); + //BA.debugLineNum = 6444;BA.debugLine="End Sub"; +return ""; +} +public String _b_encuesta_3_click() throws Exception{ +anywheresoftware.b4a.objects.ButtonWrapper _btn = null; + //BA.debugLineNum = 6446;BA.debugLine="Private Sub b_encuesta_3_Click"; + //BA.debugLineNum = 6447;BA.debugLine="Log(\"BOTON 3 CLICK\")"; +__c.LogImpl("324379393","BOTON 3 CLICK",0); + //BA.debugLineNum = 6448;BA.debugLine="Dim btn As Button = Sender"; +_btn = new anywheresoftware.b4a.objects.ButtonWrapper(); +_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba))); + //BA.debugLineNum = 6449;BA.debugLine="Log(\"BOTON 3 CLICKED \"& \" clicked - \" & btn.Text"; +__c.LogImpl("324379395","BOTON 3 CLICKED "+" clicked - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0); + //BA.debugLineNum = 6450;BA.debugLine="encuestaRes = btn.Text"; +_encuestares = _btn.getText(); + //BA.debugLineNum = 6451;BA.debugLine="indicePregunta = btn.Tag"; +_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag())); + //BA.debugLineNum = 6452;BA.debugLine="ocultaPanelEncuesta"; +_ocultapanelencuesta(); + //BA.debugLineNum = 6453;BA.debugLine="botonPresionado = 1"; +_botonpresionado = (int) (1); + //BA.debugLineNum = 6454;BA.debugLine="End Sub"; +return ""; +} +public String _b_encuesta_continuar_click() throws Exception{ +anywheresoftware.b4a.objects.ButtonWrapper _btn = null; + //BA.debugLineNum = 6456;BA.debugLine="Private Sub b_encuesta_continuar_Click"; + //BA.debugLineNum = 6457;BA.debugLine="Dim btn As Button = Sender"; +_btn = new anywheresoftware.b4a.objects.ButtonWrapper(); +_btn = (anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba))); + //BA.debugLineNum = 6458;BA.debugLine="Log(\"BOTON CONTINUAR CLICK - \" & btn.Text & \" - \""; +__c.LogImpl("324444930","BOTON CONTINUAR CLICK - "+_btn.getText()+" - "+BA.ObjectToString(_btn.getTag()),0); + //BA.debugLineNum = 6459;BA.debugLine="encuestaRes = et_encuesta.Text"; +_encuestares = _et_encuesta.getText(); + //BA.debugLineNum = 6460;BA.debugLine="indicePregunta = btn.Tag"; +_indicepregunta = (int)(BA.ObjectToNumber(_btn.getTag())); + //BA.debugLineNum = 6461;BA.debugLine="et_encuesta.Text = \"\""; +_et_encuesta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 6462;BA.debugLine="et_encuesta.Visible = False"; +_et_encuesta.setVisible(__c.False); + //BA.debugLineNum = 6463;BA.debugLine="b_encuesta_continuar.Visible = False"; +_b_encuesta_continuar.setVisible(__c.False); + //BA.debugLineNum = 6464;BA.debugLine="ocultaPanelEncuesta"; +_ocultapanelencuesta(); + //BA.debugLineNum = 6465;BA.debugLine="botonPresionado = 1"; +_botonpresionado = (int) (1); + //BA.debugLineNum = 6466;BA.debugLine="End Sub"; +return ""; +} +public String _b_enviarticket_click() throws Exception{ + //BA.debugLineNum = 7308;BA.debugLine="Private Sub b_enviarTicket_Click"; + //BA.debugLineNum = 7309;BA.debugLine="et_numeroPDF.Text = telefono.trim"; +_et_numeropdf.setText(BA.ObjectToCharSequence(_telefono.trim())); + //BA.debugLineNum = 7310;BA.debugLine="p_transparentePDF.Visible = True"; +_p_transparentepdf.setVisible(__c.True); + //BA.debugLineNum = 7318;BA.debugLine="Log(\"Progress 2\")"; +__c.LogImpl("325755658","Progress 2",0); + //BA.debugLineNum = 7319;BA.debugLine="End Sub"; +return ""; +} +public String _b_enviarticket_longclick() throws Exception{ + //BA.debugLineNum = 7321;BA.debugLine="Private Sub b_enviarTicket_LongClick"; + //BA.debugLineNum = 7327;BA.debugLine="End Sub"; +return ""; +} +public void _b_enviopdf_click() throws Exception{ +ResumableSub_b_envioPDF_Click rsub = new ResumableSub_b_envioPDF_Click(this); +rsub.resume(ba, null); +} +public static class ResumableSub_b_envioPDF_Click extends BA.ResumableSub { +public ResumableSub_b_envioPDF_Click(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = 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 = 7451;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then"; +if (true) break; + +case 1: +//if +this.state = 12; +if ((parent._almacen).equals(BA.NumberToString(87)) || (parent._almacen).equals(BA.NumberToString(6))) { +this.state = 3; +}else { +this.state = 11; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 7452;BA.debugLine="If Subs.traemontoprod Then"; +if (true) break; + +case 4: +//if +this.state = 9; +if (parent._subs._traemontoprod /*boolean*/ (ba)) { +this.state = 6; +}else { +this.state = 8; +}if (true) break; + +case 6: +//C +this.state = 9; + //BA.debugLineNum = 7453;BA.debugLine="PDFGENERAR2"; +parent._pdfgenerar2(); + if (true) break; + +case 8: +//C +this.state = 9; + //BA.debugLineNum = 7455;BA.debugLine="PDFGENERAR"; +parent._pdfgenerar(); + if (true) break; + +case 9: +//C +this.state = 12; +; + if (true) break; + +case 11: +//C +this.state = 12; + //BA.debugLineNum = 7458;BA.debugLine="PDFGENERAR"; +parent._pdfgenerar(); + if (true) break; + +case 12: +//C +this.state = -1; +; + //BA.debugLineNum = 7461;BA.debugLine="Sleep(3000)"; +parent.__c.Sleep(ba,this,(int) (3000)); +this.state = 13; +return; +case 13: +//C +this.state = -1; +; + //BA.debugLineNum = 7462;BA.debugLine="EnviarPDFWhatsAppNumero(et_numeroPDF.Text)"; +parent._enviarpdfwhatsappnumero(parent._et_numeropdf.getText()); + //BA.debugLineNum = 7464;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from TICKET_IMPRESO where idCliente In (select cuenta from cuentaa)"); + //BA.debugLineNum = 7465;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into TICKET_IMPRESO (idCliente) values ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"')")); + //BA.debugLineNum = 7467;BA.debugLine="DateTime.DateFormat = \"YYYY/MM/dd HH:mm:ss\""; +parent.__c.DateTime.setDateFormat("YYYY/MM/dd HH:mm:ss"); + //BA.debugLineNum = 7468;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 7469;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 7470;BA.debugLine="cmd.Name = \"insertEnvioTicketPDF\""; +_cmd.Name /*String*/ = "insertEnvioTicketPDF"; + //BA.debugLineNum = 7471;BA.debugLine="Log(DateTime.Date(DateTime.Now))"; +parent.__c.LogImpl("326083349",parent.__c.DateTime.Date(parent.__c.DateTime.getNow()),0); + //BA.debugLineNum = 7472;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeCliente"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(parent._subs._traecliente /*String*/ (ba)),(Object)(parent._subs._traeusuariodebd /*String*/ (ba)),(Object)(parent._et_numeropdf.getText()),(Object)(parent.__c.DateTime.Date(parent.__c.DateTime.getNow()))}; + //BA.debugLineNum = 7473;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insertEnvioTicke"; +parent._reqmanager._executecommand /*String*/ (_cmd,(Object)("insertEnvioTicketPDF")); + //BA.debugLineNum = 7475;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 7476;BA.debugLine="cmd.Name = \"insertaTelefonoTicketPDF\""; +_cmd.Name /*String*/ = "insertaTelefonoTicketPDF"; + //BA.debugLineNum = 7477;BA.debugLine="Log(DateTime.Date(DateTime.Now))"; +parent.__c.LogImpl("326083355",parent.__c.DateTime.Date(parent.__c.DateTime.getNow()),0); + //BA.debugLineNum = 7478;BA.debugLine="cmd.Parameters = Array As Object(Subs.traeAlmacen"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(parent._subs._traealmacen /*String*/ (ba)),(Object)(parent._subs._traeruta /*String*/ (ba)),(Object)(parent._subs._traecliente /*String*/ (ba)),(Object)(parent._et_numeropdf.getText())}; + //BA.debugLineNum = 7479;BA.debugLine="reqManager.ExecuteCommand(cmd , \"insertTelefonoTi"; +parent._reqmanager._executecommand /*String*/ (_cmd,(Object)("insertTelefonoTicketPDF")); + //BA.debugLineNum = 7481;BA.debugLine="Guardar_Click"; +parent._guardar_click(); + //BA.debugLineNum = 7482;BA.debugLine="p_transparentePDF.Visible = False"; +parent._p_transparentepdf.setVisible(parent.__c.False); + //BA.debugLineNum = 7483;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b_foto_click() throws Exception{ + //BA.debugLineNum = 7766;BA.debugLine="Private Sub b_foto_Click"; + //BA.debugLineNum = 7788;BA.debugLine="camEx.TakePicture"; +_camex._takepicture /*String*/ (); + //BA.debugLineNum = 7789;BA.debugLine="p_camara.Visible = False"; +_p_camara.setVisible(__c.False); + //BA.debugLineNum = 7793;BA.debugLine="End Sub"; +return ""; +} +public String _b_gallina_click() throws Exception{ + //BA.debugLineNum = 5488;BA.debugLine="Private Sub B_GALLINA_Click"; + //BA.debugLineNum = 5489;BA.debugLine="P_gallina.Visible = True"; +_p_gallina.setVisible(__c.True); + //BA.debugLineNum = 5491;BA.debugLine="B_GALLINA.Visible = False"; +_b_gallina.setVisible(__c.False); + //BA.debugLineNum = 5492;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 5493;BA.debugLine="BT_QR.Visible = False"; +_bt_qr.setVisible(__c.False); + //BA.debugLineNum = 5495;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 5496;BA.debugLine="Tar.Visible = False"; +_tar.setVisible(__c.False); + //BA.debugLineNum = 5497;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 5498;BA.debugLine="gest.Visible = False ': ToastMessageShow(\"ccc\", F"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 5499;BA.debugLine="b_venta.Visible = False"; +_b_venta.setVisible(__c.False); + //BA.debugLineNum = 5500;BA.debugLine="Guardar.Visible = False"; +_guardar.setVisible(__c.False); + //BA.debugLineNum = 5501;BA.debugLine="HIST.Visible = False"; +_hist.setVisible(__c.False); + //BA.debugLineNum = 5502;BA.debugLine="End Sub"; +return ""; +} +public String _b_geopass_click() throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; + //BA.debugLineNum = 1914;BA.debugLine="Private Sub b_geopass_Click"; + //BA.debugLineNum = 1915;BA.debugLine="If et_geopass.Text.trim = \"KMTS1\" Then"; +if ((_et_geopass.getText().trim()).equals("KMTS1")) { + //BA.debugLineNum = 1916;BA.debugLine="m_lat = B4XPages.MainPage.lat_gps"; +_m_lat = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ; + //BA.debugLineNum = 1917;BA.debugLine="m_lon = B4XPages.MainPage.lon_gps"; +_m_lon = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ; + //BA.debugLineNum = 1918;BA.debugLine="GPS_LocationChanged(Starter.ubicacionActual)"; +_gps_locationchanged(_starter._ubicacionactual /*anywheresoftware.b4a.gps.LocationWrapper*/ ); + //BA.debugLineNum = 1919;BA.debugLine="skmt.ExecNonQuery($\"update kmt_info3 set CAT_CL_"; +_skmt.ExecNonQuery(("update kmt_info3 set CAT_CL_LAT = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ))+"', CAT_CL_LONG = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ))+"' where CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"'")); + //BA.debugLineNum = 1920;BA.debugLine="et_geopass.Text = \"\""; +_et_geopass.setText(BA.ObjectToCharSequence("")); + }else { + //BA.debugLineNum = 1922;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1923;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1924;BA.debugLine="cmd.Name = \"select_geoPass_GUNA\""; +_cmd.Name /*String*/ = "select_geoPass_GUNA"; + //BA.debugLineNum = 1925;BA.debugLine="cmd.Parameters = Array As Object(et_geopass.Text"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_et_geopass.getText().trim()),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))}; + //BA.debugLineNum = 1926;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeGeoPass\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("traeGeoPass")); + //BA.debugLineNum = 1927;BA.debugLine="Log($\"${Starter.server}, ${et_geopass.Text}, ${S"; +__c.LogImpl("314483469",(""+__c.SmartStringFormatter("",(Object)(_starter._server /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(_et_geopass.getText()))+", "+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+""),0); + //BA.debugLineNum = 1928;BA.debugLine="et_geopass.Text = \"\""; +_et_geopass.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 1930;BA.debugLine="p_pideGeoPass.Visible = False"; +_p_pidegeopass.setVisible(__c.False); + //BA.debugLineNum = 1937;BA.debugLine="End Sub"; +return ""; +} +public String _b_gps_click() throws Exception{ + //BA.debugLineNum = 4686;BA.debugLine="Sub B_GPS_Click"; + //BA.debugLineNum = 4687;BA.debugLine="Dim result As Int"; +_result = 0; + //BA.debugLineNum = 4688;BA.debugLine="result = Msgbox2(\"Esta seguro de cambiar las coor"; +_result = __c.Msgbox2(BA.ObjectToCharSequence("Esta seguro de cambiar las coordenadas de este cliente"),BA.ObjectToCharSequence("Aviso GPS"),"SI","","NO",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alerta.jpg").getObject()),ba); + //BA.debugLineNum = 4689;BA.debugLine="If result = DialogResponse.Positive Then"; +if (_result==__c.DialogResponse.POSITIVE) { + //BA.debugLineNum = 4690;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE kmt"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 SET CAT_CL_LAT = ?, CAT_CL_LONG = ? where CAT_CL_CODIGO In (Select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 4691;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + //BA.debugLineNum = 4693;BA.debugLine="End Sub"; +return ""; +} +public String _b_guarda_c_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null; + //BA.debugLineNum = 4577;BA.debugLine="Sub B_GUARDA_C_Click"; + //BA.debugLineNum = 4578;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 4579;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 4580;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 4581;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 4582;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 4583;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 4584;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 4585;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 4586;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 4587;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 4588;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 4589;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("4"),(Object)(.01),(Object)(.01),(Object)(2),(Object)("KNORR RINDE MAS 70 GR"),(Object)("GUNA2"),(Object)(_la_cuenta.getText()),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_la_ruta)})); + //BA.debugLineNum = 4590;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_FACE(HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN) VALUES (?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_la_cuenta.getText()),(Object)(_i_compra.getText()),(Object)(_la_ruta),(Object)(_almacen)})); + //BA.debugLineNum = 4591;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 4592;BA.debugLine="b_like.Visible = True"; +_b_like.setVisible(__c.True); + //BA.debugLineNum = 4593;BA.debugLine="Tar.Visible = True"; +_tar.setVisible(__c.True); + //BA.debugLineNum = 4594;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 4595;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 4596;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Exe"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 4597;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 4598;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 4599;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 4600;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 4602;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 4605;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 4606;BA.debugLine="Guardar.Visible = True"; +_guardar.setVisible(__c.True); + //BA.debugLineNum = 4607;BA.debugLine="End Sub"; +return ""; +} +public String _b_guarda_ce_ped_click() throws Exception{ + //BA.debugLineNum = 5617;BA.debugLine="Private Sub B_GUARDA_CE_PED_Click"; + //BA.debugLineNum = 5619;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 5620;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 5621;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 5622;BA.debugLine="c=skmt.ExecQuery(\"Select CUENTA from cuentaa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 5623;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5624;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 5625;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 5626;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 5627;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5628;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 5629;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 5630;BA.debugLine="c=skmt.ExecQuery(\"select ID_ALMACEN from CAT_ALMA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 5631;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 5632;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 5633;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + }; + //BA.debugLineNum = 5635;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 5652;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO HIST_ENCUESTA_PED"; +_skmt.ExecNonQuery2("INSERT INTO HIST_ENCUESTA_PED_DIST_1(ALMACEN , TIENDA , KP_01 , KP_02 , KP_03 , KP_04 , KP_05 , KP_06 , KP_07 , KP_08 , KP_09 , KP_10 , KP_11 , KP_12 , KP_13 , KP_14 , KP_15 , KP_16 , KP_17 , KP_18 , KP_19 , KP_20 , KG_01 , KG_02 , KG_03 , KG_04 , KG_05 , KG_06 , PK_01 , PK_02 , PK_03 , PK_04 , PK_05 , PK_06 , PK_07 , PK_08) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_clie_id),(Object)(_kp_01.getChecked()),(Object)(_kp_02.getChecked()),(Object)(_kp_03.getChecked()),(Object)(_kp_04.getChecked()),(Object)(_kp_05.getChecked()),(Object)(_kp_06.getChecked()),(Object)(_kp_07.getChecked()),(Object)(_kp_08.getChecked()),(Object)(_kp_09.getChecked()),(Object)(_kp_10.getChecked()),(Object)(_kp_11.getChecked()),(Object)(_kp_12.getChecked()),(Object)(_kp_13.getChecked()),(Object)(_kp_14.getChecked()),(Object)(_kp_15.getChecked()),(Object)(_kp_16.getChecked()),(Object)(_kp_17.getChecked()),(Object)(_kp_18.getChecked()),(Object)(_kp_19.getChecked()),(Object)(_kp_20.getChecked()),(Object)(_kg_01.getChecked()),(Object)(_kg_02.getChecked()),(Object)(_kg_03.getChecked()),(Object)(_kg_04.getChecked()),(Object)(_kg_05.getChecked()),(Object)(_kg_06.getChecked()),(Object)(_pk_01.getChecked()),(Object)(_pk_02.getChecked()),(Object)(_pk_03.getChecked()),(Object)(_pk_04.getChecked()),(Object)(_pk_05.getChecked()),(Object)(_pk_06.getChecked()),(Object)(_pk_07.getChecked()),(Object)(_pk_08.getChecked())})); + //BA.debugLineNum = 5654;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO HIST_ENCUESTA_PED"; +_skmt.ExecNonQuery2("INSERT INTO HIST_ENCUESTA_PED_DIST_2(ALMACEN , TIENDA , HPG_01 , HPG_02 , HPG_03 , HPG_04 , HPG_05 , HPG_06 , HPG_07 , HPG_08 , HPG_09 , HPG_10 , HC_01 , HC_02 , HC_03 , HC_04 , B_01 , B_02) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_clie_id),(Object)(_hpg_01.getChecked()),(Object)(_hpg_02.getChecked()),(Object)(_hpg_03.getChecked()),(Object)(_hpg_04.getChecked()),(Object)(_hpg_05.getChecked()),(Object)(_hpg_06.getChecked()),(Object)(_hpg_07.getChecked()),(Object)(_hpg_08.getChecked()),(Object)(_hpg_09.getChecked()),(Object)(_hpg_10.getChecked()),(Object)(_hc_01.getChecked()),(Object)(_hc_02.getChecked()),(Object)(_hc_03.getChecked()),(Object)(_hc_04.getChecked()),(Object)(_b_01.getChecked()),(Object)(_b_02.getChecked())})); + //BA.debugLineNum = 5667;BA.debugLine="I_COMPRA.TEXT = \"\""; +_i_compra.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5668;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5669;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 5671;BA.debugLine="b_like.Visible = True"; +_b_like.setVisible(__c.True); + //BA.debugLineNum = 5672;BA.debugLine="Tar.Visible = True"; +_tar.setVisible(__c.True); + //BA.debugLineNum = 5673;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 5674;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 5676;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 5677;BA.debugLine="Guardar.Visible = True"; +_guardar.setVisible(__c.True); + //BA.debugLineNum = 5679;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + //BA.debugLineNum = 5681;BA.debugLine="End Sub"; +return ""; +} +public String _b_guardaencuesta_click() throws Exception{ +String _si_guardar = ""; + //BA.debugLineNum = 2811;BA.debugLine="Sub B_guardaencuesta_Click"; + //BA.debugLineNum = 2812;BA.debugLine="Dim SI_GUARDAR As String"; +_si_guardar = ""; + //BA.debugLineNum = 2813;BA.debugLine="SI_GUARDAR = 1"; +_si_guardar = BA.NumberToString(1); + //BA.debugLineNum = 2815;BA.debugLine="If RB1_E1.Checked = False And RB2_E1.Checked = Fa"; +if (_rb1_e1.getChecked()==__c.False && _rb2_e1.getChecked()==__c.False && _rb3_e1.getChecked()==__c.False) { + //BA.debugLineNum = 2816;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2819;BA.debugLine="If Panel7.Visible = True Then"; +if (_panel7.getVisible()==__c.True) { + //BA.debugLineNum = 2820;BA.debugLine="If RadioButton15.Checked = False And RadioButton"; +if (_radiobutton15.getChecked()==__c.False && _radiobutton16.getChecked()==__c.False && _radiobutton17.getChecked()==__c.False) { + //BA.debugLineNum = 2821;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + }; + //BA.debugLineNum = 2825;BA.debugLine="If RadioButton1.Checked = False And RadioButton2"; +if (_radiobutton1.getChecked()==__c.False && _radiobutton2.getChecked()==__c.False && _radiobutton3.getChecked()==__c.False && _radiobutton4.getChecked()==__c.False) { + //BA.debugLineNum = 2826;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2829;BA.debugLine="If RadioButton5.Checked = False And RadioButton6"; +if (_radiobutton5.getChecked()==__c.False && _radiobutton6.getChecked()==__c.False && _radiobutton7.getChecked()==__c.False && _radiobutton8.getChecked()==__c.False && _radiobutton9.getChecked()==__c.False) { + //BA.debugLineNum = 2830;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2833;BA.debugLine="If RadioButton10.Checked = False And RadioButton"; +if (_radiobutton10.getChecked()==__c.False && _radiobutton11.getChecked()==__c.False && _radiobutton12.getChecked()==__c.False && _radiobutton13.getChecked()==__c.False && _radiobutton14.getChecked()==__c.False) { + //BA.debugLineNum = 2834;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2837;BA.debugLine="If p6.Text = \"\" Then"; +if ((_p6.getText()).equals("")) { + //BA.debugLineNum = 2838;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2840;BA.debugLine="If p7.Text = \"\" Then"; +if ((_p7.getText()).equals("")) { + //BA.debugLineNum = 2841;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2843;BA.debugLine="If p8.Text = \"\" Then"; +if ((_p8.getText()).equals("")) { + //BA.debugLineNum = 2844;BA.debugLine="SI_GUARDAR = 0"; +_si_guardar = BA.NumberToString(0); + }; + //BA.debugLineNum = 2847;BA.debugLine="If CheckBox1.Checked = False And CheckBox2.Checke"; +if (_checkbox1.getChecked()==__c.False && _checkbox2.getChecked()==__c.False && _checkbox3.getChecked()==__c.False && _checkbox4.getChecked()==__c.False && _checkbox5.getChecked()==__c.False && _checkbox6.getChecked()==__c.False && _checkbox7.getChecked()==__c.False && _checkbox8.getChecked()==__c.False) { + //BA.debugLineNum = 2848;BA.debugLine="encuentasmapa.Put(\"P9\", \"\")"; +_encuentasmapa.Put((Object)("P9"),(Object)("")); + //BA.debugLineNum = 2849;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("316056358",BA.ObjectToString(_encuentasmapa),0); + }; + //BA.debugLineNum = 2852;BA.debugLine="If SI_GUARDAR = 1 Then"; +if ((_si_guardar).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 2853;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO1"; +_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO1 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6, P7, P8, P9) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),_encuentasmapa.Get((Object)("P3")),_encuentasmapa.Get((Object)("P1")),_encuentasmapa.Get((Object)("P2")),_encuentasmapa.Get((Object)("P4")),_encuentasmapa.Get((Object)("P5")),(Object)(_p6.getText()),(Object)(_p7.getText()),(Object)(_p8.getText()),_encuentasmapa.Get((Object)("P9"))})); + //BA.debugLineNum = 2859;BA.debugLine="RB1_E1.Checked = False"; +_rb1_e1.setChecked(__c.False); + //BA.debugLineNum = 2860;BA.debugLine="RB2_E1.Checked = False"; +_rb2_e1.setChecked(__c.False); + //BA.debugLineNum = 2861;BA.debugLine="RB3_E1.Checked = False"; +_rb3_e1.setChecked(__c.False); + //BA.debugLineNum = 2862;BA.debugLine="RadioButton15.Checked = False"; +_radiobutton15.setChecked(__c.False); + //BA.debugLineNum = 2863;BA.debugLine="RadioButton16.Checked = False"; +_radiobutton16.setChecked(__c.False); + //BA.debugLineNum = 2864;BA.debugLine="RadioButton17.Checked = False"; +_radiobutton17.setChecked(__c.False); + //BA.debugLineNum = 2865;BA.debugLine="RadioButton1.Checked = False"; +_radiobutton1.setChecked(__c.False); + //BA.debugLineNum = 2866;BA.debugLine="RadioButton2.Checked = False"; +_radiobutton2.setChecked(__c.False); + //BA.debugLineNum = 2867;BA.debugLine="RadioButton3.Checked = False"; +_radiobutton3.setChecked(__c.False); + //BA.debugLineNum = 2868;BA.debugLine="RadioButton4.Checked = False"; +_radiobutton4.setChecked(__c.False); + //BA.debugLineNum = 2869;BA.debugLine="RadioButton5.Checked = False"; +_radiobutton5.setChecked(__c.False); + //BA.debugLineNum = 2870;BA.debugLine="RadioButton6.Checked = False"; +_radiobutton6.setChecked(__c.False); + //BA.debugLineNum = 2871;BA.debugLine="RadioButton7.Checked = False"; +_radiobutton7.setChecked(__c.False); + //BA.debugLineNum = 2872;BA.debugLine="RadioButton8.Checked = False"; +_radiobutton8.setChecked(__c.False); + //BA.debugLineNum = 2873;BA.debugLine="RadioButton9.Checked = False"; +_radiobutton9.setChecked(__c.False); + //BA.debugLineNum = 2874;BA.debugLine="RadioButton10.Checked = False"; +_radiobutton10.setChecked(__c.False); + //BA.debugLineNum = 2875;BA.debugLine="RadioButton11.Checked = False"; +_radiobutton11.setChecked(__c.False); + //BA.debugLineNum = 2876;BA.debugLine="RadioButton12.Checked = False"; +_radiobutton12.setChecked(__c.False); + //BA.debugLineNum = 2877;BA.debugLine="RadioButton13.Checked = False"; +_radiobutton13.setChecked(__c.False); + //BA.debugLineNum = 2878;BA.debugLine="RadioButton14.Checked = False"; +_radiobutton14.setChecked(__c.False); + //BA.debugLineNum = 2879;BA.debugLine="p6.Text = \"\""; +_p6.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2880;BA.debugLine="p7.Text = \"\""; +_p7.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2881;BA.debugLine="p8.Text = \"\""; +_p8.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2882;BA.debugLine="CheckBox1.Checked = False"; +_checkbox1.setChecked(__c.False); + //BA.debugLineNum = 2883;BA.debugLine="CheckBox2.Checked = False"; +_checkbox2.setChecked(__c.False); + //BA.debugLineNum = 2884;BA.debugLine="CheckBox3.Checked = False"; +_checkbox3.setChecked(__c.False); + //BA.debugLineNum = 2885;BA.debugLine="CheckBox4.Checked = False"; +_checkbox4.setChecked(__c.False); + //BA.debugLineNum = 2886;BA.debugLine="CheckBox5.Checked = False"; +_checkbox5.setChecked(__c.False); + //BA.debugLineNum = 2887;BA.debugLine="CheckBox6.Checked = False"; +_checkbox6.setChecked(__c.False); + //BA.debugLineNum = 2888;BA.debugLine="CheckBox7.Checked = False"; +_checkbox7.setChecked(__c.False); + //BA.debugLineNum = 2889;BA.debugLine="CheckBox8.Checked = False"; +_checkbox8.setChecked(__c.False); + //BA.debugLineNum = 2891;BA.debugLine="If ENCUESTA > 1 Then"; +if ((double)(Double.parseDouble(_encuesta))>1) { + //BA.debugLineNum = 2893;BA.debugLine="If p_m1.IsInitialized And p_m1.Visible Then"; +if (_p_m1.IsInitialized() && _p_m1.getVisible()) { + //BA.debugLineNum = 2894;BA.debugLine="p_m1.Visible = False"; +_p_m1.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 2898;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2899;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 2900;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 2901;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ESNCUESTA_m2\")"; +_sv_encuesta.getPanel().LoadLayout("ESNCUESTA_m2",ba); + //BA.debugLineNum = 2902;BA.debugLine="p_m2.Width = Root.Width * 0.94"; +_p_m2.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 2903;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m2.Height + 60"; +_sv_encuesta.getPanel().setHeight((int) (_p_m2.getHeight()+60)); + //BA.debugLineNum = 2904;BA.debugLine="Panel7_M2.Visible = False"; +_panel7_m2.setVisible(__c.False); + }else { + //BA.debugLineNum = 2906;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2907;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 2908;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 2911;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + }; + }else { + //BA.debugLineNum = 2914;BA.debugLine="Msgbox(\"FALTAN DATOS DE CAPTURA FAVOR DE VALIDAR"; +__c.Msgbox(BA.ObjectToCharSequence("FALTAN DATOS DE CAPTURA FAVOR DE VALIDAR"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 2916;BA.debugLine="End Sub"; +return ""; +} +public String _b_guardaencuesta_m2_click() throws Exception{ + //BA.debugLineNum = 4950;BA.debugLine="Private Sub B_guardaencuesta_m2_Click"; + //BA.debugLineNum = 4951;BA.debugLine="P3_M2 = \"\""; +_p3_m2 = ""; + //BA.debugLineNum = 4952;BA.debugLine="P6_M2 = \"\""; +_p6_m2 = ""; + //BA.debugLineNum = 4953;BA.debugLine="P4_M2 = \"\""; +_p4_m2 = ""; + //BA.debugLineNum = 4955;BA.debugLine="PASA = \"1\""; +_pasa = "1"; + //BA.debugLineNum = 4956;BA.debugLine="If et_p1_m2.Text = \"\" Then PASA = \"0\""; +if ((_et_p1_m2.getText()).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 4957;BA.debugLine="If et_p2_m2.Text = \"\" Then PASA = \"0\""; +if ((_et_p2_m2.getText()).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 4958;BA.debugLine="P4_M2 = \"\""; +_p4_m2 = ""; + //BA.debugLineNum = 4959;BA.debugLine="If rd1_p4_m2.Checked Then P4_M2 = \"ALTO\""; +if (_rd1_p4_m2.getChecked()) { +_p4_m2 = "ALTO";}; + //BA.debugLineNum = 4960;BA.debugLine="If rd2_p4_m2.Checked Then P4_M2 = \"MEDIO\""; +if (_rd2_p4_m2.getChecked()) { +_p4_m2 = "MEDIO";}; + //BA.debugLineNum = 4961;BA.debugLine="If rd3_p4_m2.Checked Then P4_M2 = \"BAJO\""; +if (_rd3_p4_m2.getChecked()) { +_p4_m2 = "BAJO";}; + //BA.debugLineNum = 4963;BA.debugLine="If P4_M2 = \"\" Then PASA = \"0\""; +if ((_p4_m2).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 4965;BA.debugLine="P6_M2 = \"\""; +_p6_m2 = ""; + //BA.debugLineNum = 4966;BA.debugLine="If RB1_P6_M2.Checked Then P6_M2 = \"LUNES\""; +if (_rb1_p6_m2.getChecked()) { +_p6_m2 = "LUNES";}; + //BA.debugLineNum = 4967;BA.debugLine="If RB2_P6_M2.Checked Then P6_M2 = \"MARTES\""; +if (_rb2_p6_m2.getChecked()) { +_p6_m2 = "MARTES";}; + //BA.debugLineNum = 4968;BA.debugLine="If RB3_P6_M2.Checked Then P6_M2 = \"MIERCOLES\""; +if (_rb3_p6_m2.getChecked()) { +_p6_m2 = "MIERCOLES";}; + //BA.debugLineNum = 4969;BA.debugLine="If RB4_P6_M2.Checked Then P6_M2 = \"JUEVES\""; +if (_rb4_p6_m2.getChecked()) { +_p6_m2 = "JUEVES";}; + //BA.debugLineNum = 4970;BA.debugLine="If RB5_P6_M2.Checked Then P6_M2 = \"VIERNES\""; +if (_rb5_p6_m2.getChecked()) { +_p6_m2 = "VIERNES";}; + //BA.debugLineNum = 4971;BA.debugLine="If RB6_P6_M2.Checked Then P6_M2 = \"SABADO\""; +if (_rb6_p6_m2.getChecked()) { +_p6_m2 = "SABADO";}; + //BA.debugLineNum = 4972;BA.debugLine="If RB7_P6_M2.Checked Then P6_M2 = \"DOMINGO\""; +if (_rb7_p6_m2.getChecked()) { +_p6_m2 = "DOMINGO";}; + //BA.debugLineNum = 4974;BA.debugLine="If P6_M2 = \"\" Then PASA = \"0\""; +if ((_p6_m2).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 4977;BA.debugLine="If CB1_P3_M2.Checked = False And CB2_P3_M2.Chec"; +if (_cb1_p3_m2.getChecked()==__c.False && _cb2_p3_m2.getChecked()==__c.False && _cb3_p3_m2.getChecked()==__c.False && _cb4_p3_m2.getChecked()==__c.False && _cb5_p3_m2.getChecked()==__c.False && _cb6_p3_m2.getChecked()==__c.False && _rb1_p3_m2.getChecked()==__c.False && _rb2_p3_m2.getChecked()==__c.False && _rb3_p3_m2.getChecked()==__c.False && (_et_p3_m2.getText()).equals(BA.ObjectToString(__c.False)) && _cb1_p4_m2.getChecked()==__c.False && _cb2_p4_m2.getChecked()==__c.False && _cb3_p4_m2.getChecked()==__c.False && _cb4_p4_m2.getChecked()==__c.False) { +_pasa = "0";}; + //BA.debugLineNum = 4978;BA.debugLine="If et_p5_m2.Text = \"\" Then PASA = \"0\""; +if ((_et_p5_m2.getText()).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 4979;BA.debugLine="Log(textemp2)"; +__c.LogImpl("320447261",_textemp2,0); + //BA.debugLineNum = 4980;BA.debugLine="If textemp2 <> \"\" And textemp2.SubString2(0,2) ="; +if ((_textemp2).equals("") == false && (_textemp2.substring((int) (0),(int) (2))).equals(", ")) { +_textemp2 = _textemp2.substring((int) (2));}; + //BA.debugLineNum = 4981;BA.debugLine="Log(textemp2)"; +__c.LogImpl("320447263",_textemp2,0); + //BA.debugLineNum = 4982;BA.debugLine="P3_M2 = textemp2"; +_p3_m2 = _textemp2; + //BA.debugLineNum = 4983;BA.debugLine="If RB2_P4_M2.Checked Then"; +if (_rb2_p4_m2.getChecked()) { + //BA.debugLineNum = 4984;BA.debugLine="P3_M2 = P3_M2 &\"|\" & \"NO\""; +_p3_m2 = _p3_m2+"|"+"NO"; + }else if(_rb1_p4_m2.getChecked()) { + //BA.debugLineNum = 4987;BA.debugLine="P3_M2 = P3_M2 &\"|\" & \"SI\""; +_p3_m2 = _p3_m2+"|"+"SI"; + //BA.debugLineNum = 4988;BA.debugLine="If ET_P3_M2.Text = \"\" Then"; +if ((_et_p3_m2.getText()).equals("")) { + //BA.debugLineNum = 4989;BA.debugLine="If RB1_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb1_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Rappi";}; + //BA.debugLineNum = 4990;BA.debugLine="If RB2_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb2_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Coca Cola";}; + //BA.debugLineNum = 4991;BA.debugLine="If RB3_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb3_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Modelo";}; + //BA.debugLineNum = 4992;BA.debugLine="If RB4_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb4_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Rabbit";}; + }else if((_et_p3_m2.getText()).equals("") == false) { + //BA.debugLineNum = 4994;BA.debugLine="If RB1_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb1_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Rappi";}; + //BA.debugLineNum = 4995;BA.debugLine="If RB2_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb2_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Coca Cola";}; + //BA.debugLineNum = 4996;BA.debugLine="If RB3_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb3_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Modelo";}; + //BA.debugLineNum = 4997;BA.debugLine="If RB4_P3_M2.Checked Then P3_M2 = P3_M2 &\"|\" &"; +if (_rb4_p3_m2.getChecked()) { +_p3_m2 = _p3_m2+"|"+"Rabbit";}; + //BA.debugLineNum = 4998;BA.debugLine="P3_M2 = P3_M2 &\", \" & ET_P3_M2.Text"; +_p3_m2 = _p3_m2+", "+_et_p3_m2.getText(); + }; + }; + //BA.debugLineNum = 5001;BA.debugLine="If textemp3 <> \"\" And textemp3.SubString2(0,2) ="; +if ((_textemp3).equals("") == false && (_textemp3.substring((int) (0),(int) (2))).equals(", ")) { +_textemp3 = _textemp3.substring((int) (2));}; + //BA.debugLineNum = 5003;BA.debugLine="P3_M2 = P3_M2 &\"|\" & textemp3"; +_p3_m2 = _p3_m2+"|"+_textemp3; + //BA.debugLineNum = 5005;BA.debugLine="If P3_M2 <> \"\" And P3_M2.SubString2(0,2) = \", \" T"; +if ((_p3_m2).equals("") == false && (_p3_m2.substring((int) (0),(int) (2))).equals(", ")) { +_p3_m2 = _p3_m2.substring((int) (2));}; + //BA.debugLineNum = 5006;BA.debugLine="LogColor(P3_M2,Colors.BlUE)"; +__c.LogImpl("320447288",_p3_m2,__c.Colors.Blue); + //BA.debugLineNum = 5007;BA.debugLine="If PASA = \"1\" Then"; +if ((_pasa).equals("1")) { + //BA.debugLineNum = 5008;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO2"; +_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO2 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)(_et_p1_m2.getText()),(Object)(_et_p2_m2.getText()),(Object)(_p3_m2),(Object)(_p4_m2),(Object)(_et_p5_m2.getText()),(Object)(_p6_m2)})); + //BA.debugLineNum = 5009;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5010;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5011;BA.debugLine="et_p1_m2.Text = \"\""; +_et_p1_m2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5012;BA.debugLine="et_p2_m2.TEXT = \"\""; +_et_p2_m2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5013;BA.debugLine="RB7_P6_M2.Checked = False"; +_rb7_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5014;BA.debugLine="RB6_P6_M2.Checked = False"; +_rb6_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5015;BA.debugLine="RB5_P6_M2.Checked = False"; +_rb5_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5016;BA.debugLine="RB4_P6_M2.Checked = False"; +_rb4_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5017;BA.debugLine="RB3_P6_M2.Checked = False"; +_rb3_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5018;BA.debugLine="RB2_P6_M2.Checked = False"; +_rb2_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5019;BA.debugLine="RB1_P6_M2.Checked = False"; +_rb1_p6_m2.setChecked(__c.False); + //BA.debugLineNum = 5020;BA.debugLine="et_p5_m2.Text = \"\""; +_et_p5_m2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5021;BA.debugLine="rd3_p4_m2.Checked = False"; +_rd3_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5022;BA.debugLine="rd2_p4_m2.Checked = False"; +_rd2_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5023;BA.debugLine="rd1_p4_m2.Checked = False"; +_rd1_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5024;BA.debugLine="RB1_P3_M2.Checked = False"; +_rb1_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5025;BA.debugLine="RB2_P3_M2.Checked = False"; +_rb2_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5026;BA.debugLine="RB3_P3_M2.Checked = False"; +_rb3_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5027;BA.debugLine="RB4_P3_M2.Checked = False"; +_rb4_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5029;BA.debugLine="CB1_P3_M2.Checked = False"; +_cb1_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5030;BA.debugLine="CB2_P3_M2.Checked = False"; +_cb2_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5031;BA.debugLine="CB3_P3_M2.Checked = False"; +_cb3_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5032;BA.debugLine="CB4_P3_M2.Checked = False"; +_cb4_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5033;BA.debugLine="CB5_P3_M2.Checked = False"; +_cb5_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5034;BA.debugLine="CB6_P3_M2.Checked = False"; +_cb6_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5036;BA.debugLine="ET_P3_M2.Text = \"\""; +_et_p3_m2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5037;BA.debugLine="P3_M2 = \"\""; +_p3_m2 = ""; + //BA.debugLineNum = 5038;BA.debugLine="P4_M2 = \"\""; +_p4_m2 = ""; + //BA.debugLineNum = 5039;BA.debugLine="P6_M2 = \"\""; +_p6_m2 = ""; + //BA.debugLineNum = 5041;BA.debugLine="Panel7_M2.Visible = False"; +_panel7_m2.setVisible(__c.False); + //BA.debugLineNum = 5046;BA.debugLine="If ENCUESTA > 2 Then"; +if ((double)(Double.parseDouble(_encuesta))>2) { + //BA.debugLineNum = 5047;BA.debugLine="If p_m2.IsInitialized And p_m2.Visible Then"; +if (_p_m2.IsInitialized() && _p_m2.getVisible()) { + //BA.debugLineNum = 5048;BA.debugLine="p_m2.Visible = False"; +_p_m2.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 5052;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5053;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 5054;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 5055;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESSTA_M3\")"; +_sv_encuesta.getPanel().LoadLayout("ENCUESSTA_M3",ba); + //BA.debugLineNum = 5056;BA.debugLine="p_m3.Width = Root.Width * 0.94"; +_p_m3.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 5057;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m3.Height + 60"; +_sv_encuesta.getPanel().setHeight((int) (_p_m3.getHeight()+60)); + //BA.debugLineNum = 5059;BA.debugLine="If Subs.traeAlmacen = 1 Or Subs.traeAlmacen"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(1)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(2)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(4)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(5)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(35)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(36)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(45)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(46)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(47)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(54)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(64)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(65)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(71)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(3)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(25)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(27)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(38))) { + //BA.debugLineNum = 5060;BA.debugLine="CB1_P6_M3.Text = \"GARIS\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("GARIS")); + //BA.debugLineNum = 5061;BA.debugLine="CB2_P6_M3.Text = \"SAHUAYO\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5062;BA.debugLine="CB3_P6_M3.Text = \"ZORRO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("ZORRO")); + //BA.debugLineNum = 5063;BA.debugLine="CB4_P6_M3.Text = \"ESCORPION\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("ESCORPION")); + //BA.debugLineNum = 5064;BA.debugLine="CB5_P6_M3.Text = \"RABBIT\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("RABBIT")); + //BA.debugLineNum = 5065;BA.debugLine="CB6_P6_M3.Text = \"SAMS\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(12))) { + //BA.debugLineNum = 5068;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5069;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5070;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5071;BA.debugLine="CB4_P6_M3.Text = \"DUERO\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO")); + //BA.debugLineNum = 5072;BA.debugLine="CB5_P6_M3.Text = \"HUGOSS\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("HUGOSS")); + //BA.debugLineNum = 5073;BA.debugLine="CB6_P6_M3.Text = \"ZORRO\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("ZORRO")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(13))) { + //BA.debugLineNum = 5075;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5076;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5077;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5078;BA.debugLine="CB4_P6_M3.Text = \"SCORPION\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("SCORPION")); + //BA.debugLineNum = 5079;BA.debugLine="CB5_P6_M3.Text = \"ZORRO\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("ZORRO")); + //BA.debugLineNum = 5080;BA.debugLine="CB6_P6_M3.Text = \"GARIS\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("GARIS")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(14)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(69)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(37))) { + //BA.debugLineNum = 5082;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5083;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5084;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5085;BA.debugLine="CB4_P6_M3.Text = \"DUERO\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO")); + //BA.debugLineNum = 5086;BA.debugLine="CB5_P6_M3.Text = \"RIVERA/GRAN BODEGA\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("RIVERA/GRAN BODEGA")); + //BA.debugLineNum = 5087;BA.debugLine="CB6_P6_M3.Text = \"ZORRO\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("ZORRO")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(16)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(70))) { + //BA.debugLineNum = 5089;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5090;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5091;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5092;BA.debugLine="CB4_P6_M3.Text = \"DUERO\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO")); + //BA.debugLineNum = 5093;BA.debugLine="CB5_P6_M3.Text = \"RIVERA/GRAN BODEGA\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("RIVERA/GRAN BODEGA")); + //BA.debugLineNum = 5094;BA.debugLine="CB6_P6_M3.Text = \"SAMS\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(17))) { + //BA.debugLineNum = 5096;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5097;BA.debugLine="CB2_P6_M3.Text = \"SAHUAYO\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5098;BA.debugLine="CB3_P6_M3.Text = \"\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5099;BA.debugLine="CB4_P6_M3.Text = \"\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5100;BA.debugLine="CB5_P6_M3.Text = \"\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5101;BA.debugLine="CB6_P6_M3.Text = \"\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(29)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(31))) { + //BA.debugLineNum = 5103;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5104;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5105;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5106;BA.debugLine="CB4_P6_M3.Text = \"DUERO\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO")); + //BA.debugLineNum = 5107;BA.debugLine="CB5_P6_M3.Text = \"SAMS\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("SAMS")); + //BA.debugLineNum = 5108;BA.debugLine="CB6_P6_M3.Text = \"RIVERA/GRAN BODEGA\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("RIVERA/GRAN BODEGA")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(32)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(33))) { + //BA.debugLineNum = 5110;BA.debugLine="CB1_P6_M3.Text = \"MAS BODEGA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("MAS BODEGA")); + //BA.debugLineNum = 5111;BA.debugLine="CB2_P6_M3.Text = \"SAHUAYO\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5112;BA.debugLine="CB3_P6_M3.Text = \"TREVIÑO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("TREVIÑO")); + //BA.debugLineNum = 5113;BA.debugLine="CB4_P6_M3.Text = \"HUGOSS\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("HUGOSS")); + //BA.debugLineNum = 5114;BA.debugLine="CB5_P6_M3.Text = \"RABBIT\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("RABBIT")); + //BA.debugLineNum = 5115;BA.debugLine="CB6_P6_M3.Text = \"SAMS\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(66)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(67))) { + //BA.debugLineNum = 5117;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5118;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5119;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5120;BA.debugLine="CB4_P6_M3.Text = \"DUERO\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("DUERO")); + //BA.debugLineNum = 5121;BA.debugLine="CB5_P6_M3.Text = \"SCORPION\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("SCORPION")); + //BA.debugLineNum = 5122;BA.debugLine="CB6_P6_M3.Text = \"SAMS\""; +_cb6_p6_m3.setText(BA.ObjectToCharSequence("SAMS")); + }else if((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(22)) || (_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(34))) { + //BA.debugLineNum = 5125;BA.debugLine="CB1_P6_M3.Text = \"DECASA\""; +_cb1_p6_m3.setText(BA.ObjectToCharSequence("DECASA")); + //BA.debugLineNum = 5126;BA.debugLine="CB2_P6_M3.Text = \"ZETA\""; +_cb2_p6_m3.setText(BA.ObjectToCharSequence("ZETA")); + //BA.debugLineNum = 5127;BA.debugLine="CB3_P6_M3.Text = \"SAHUAYO\""; +_cb3_p6_m3.setText(BA.ObjectToCharSequence("SAHUAYO")); + //BA.debugLineNum = 5128;BA.debugLine="CB4_P6_M3.Text = \"MERZA/DUERO\""; +_cb4_p6_m3.setText(BA.ObjectToCharSequence("MERZA/DUERO")); + //BA.debugLineNum = 5129;BA.debugLine="CB5_P6_M3.Text = \"HUGOSS\""; +_cb5_p6_m3.setText(BA.ObjectToCharSequence("HUGOSS")); + }; + }else { + //BA.debugLineNum = 5132;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5133;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5134;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5136;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + //BA.debugLineNum = 5137;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba); + }; + }else { + //BA.debugLineNum = 5140;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")"; +__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 5142;BA.debugLine="End Sub"; +return ""; +} +public String _b_guardaencuesta_m3_click() throws Exception{ +String _p3_m3 = ""; +String _p4_m3 = ""; +String _p5_m3 = ""; +String _p6_m3 = ""; +String _p7_m3 = ""; +String _p8_m3 = ""; +String _p9_m3 = ""; +anywheresoftware.b4a.objects.collections.List _items2 = null; +anywheresoftware.b4a.objects.collections.List _items3 = null; + //BA.debugLineNum = 5154;BA.debugLine="Private Sub B_guardaencuesta_m3_Click"; + //BA.debugLineNum = 5156;BA.debugLine="PASA = \"1\""; +_pasa = "1"; + //BA.debugLineNum = 5162;BA.debugLine="Private P3_M3 As String = \"\""; +_p3_m3 = ""; + //BA.debugLineNum = 5163;BA.debugLine="Private P4_M3 As String = \"\""; +_p4_m3 = ""; + //BA.debugLineNum = 5164;BA.debugLine="Private P5_M3 As String = \"\""; +_p5_m3 = ""; + //BA.debugLineNum = 5165;BA.debugLine="Private P6_M3 As String = \"\""; +_p6_m3 = ""; + //BA.debugLineNum = 5166;BA.debugLine="Private P7_M3 As String = \"\""; +_p7_m3 = ""; + //BA.debugLineNum = 5167;BA.debugLine="Private P8_M3 As String = \"\""; +_p8_m3 = ""; + //BA.debugLineNum = 5168;BA.debugLine="Private P9_M3 As String = \"\""; +_p9_m3 = ""; + //BA.debugLineNum = 5174;BA.debugLine="If rd1_p5_m3.Checked Then P5_M3 = \"SI\""; +if (_rd1_p5_m3.getChecked()) { +_p5_m3 = "SI";}; + //BA.debugLineNum = 5175;BA.debugLine="If rd2_p5_m3.Checked Then P5_M3 = \"NO\""; +if (_rd2_p5_m3.getChecked()) { +_p5_m3 = "NO";}; + //BA.debugLineNum = 5177;BA.debugLine="If RB1_P9_M3.Checked Then P9_M3 = \"DIARIO\""; +if (_rb1_p9_m3.getChecked()) { +_p9_m3 = "DIARIO";}; + //BA.debugLineNum = 5178;BA.debugLine="If RB2_P9_M3.Checked Then P9_M3 = \"BISEMANAL\""; +if (_rb2_p9_m3.getChecked()) { +_p9_m3 = "BISEMANAL";}; + //BA.debugLineNum = 5179;BA.debugLine="If RB3_P9_M3.Checked Then P9_M3 = \"SEMANAL\""; +if (_rb3_p9_m3.getChecked()) { +_p9_m3 = "SEMANAL";}; + //BA.debugLineNum = 5180;BA.debugLine="If RB4_P9_M3.Checked Then P9_M3 = \"QUINCENAL\""; +if (_rb4_p9_m3.getChecked()) { +_p9_m3 = "QUINCENAL";}; + //BA.debugLineNum = 5181;BA.debugLine="If RB5_P9_M3.Checked Then P9_M3 = \"MENSUAL\""; +if (_rb5_p9_m3.getChecked()) { +_p9_m3 = "MENSUAL";}; + //BA.debugLineNum = 5182;BA.debugLine="If P9_M3 = \"\" Then PASA = \"0\""; +if ((_p9_m3).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 5183;BA.debugLine="If P5_M3 = \"\" Then PASA = \"0\""; +if ((_p5_m3).equals("")) { +_pasa = "0";}; + //BA.debugLineNum = 5186;BA.debugLine="If CB1_P3_M3.Checked = False And CB2_P3_M3.Check"; +if (_cb1_p3_m3.getChecked()==__c.False && _cb2_p3_m3.getChecked()==__c.False && _cb3_p3_m3.getChecked()==__c.False && _cb4_p3_m3.getChecked()==__c.False && _cb5_p3_m3.getChecked()==__c.False) { +_pasa = "0";}; + //BA.debugLineNum = 5188;BA.debugLine="If CB1_P4_M3.Checked = False And CB2_P4_M3.Che"; +if (_cb1_p4_m3.getChecked()==__c.False && _cb2_p4_m3.getChecked()==__c.False && _cb3_p4_m3.getChecked()==__c.False && _cb4_p4_m3.getChecked()==__c.False && _cb5_p4_m3.getChecked()==__c.False) { +_pasa = "0";}; + //BA.debugLineNum = 5193;BA.debugLine="If CB1_P7_M3.Checked = False And CB2_P7_M3.Chec"; +if (_cb1_p7_m3.getChecked()==__c.False && _cb2_p7_m3.getChecked()==__c.False && _cb3_p7_m3.getChecked()==__c.False && _cb4_p7_m3.getChecked()==__c.False) { +_pasa = "0";}; + //BA.debugLineNum = 5196;BA.debugLine="If CB1_P8_M3.Checked = False And CB2_P8_M3.Check"; +if (_cb1_p8_m3.getChecked()==__c.False && _cb2_p8_m3.getChecked()==__c.False && _cb3_p8_m3.getChecked()==__c.False && _cb4_p8_m3.getChecked()==__c.False) { +_pasa = "0";}; + //BA.debugLineNum = 5197;BA.debugLine="If rb1_m3_p1.Checked Then P3_M3 = \"7 A 9\""; +if (_rb1_m3_p1.getChecked()) { +_p3_m3 = "7 A 9";}; + //BA.debugLineNum = 5198;BA.debugLine="If RB2_M3_P1.Checked Then P3_M3 = \"9 A 11\""; +if (_rb2_m3_p1.getChecked()) { +_p3_m3 = "9 A 11";}; + //BA.debugLineNum = 5199;BA.debugLine="If RB3_M3_P1.Checked Then P3_M3 = \"11 A 13\""; +if (_rb3_m3_p1.getChecked()) { +_p3_m3 = "11 A 13";}; + //BA.debugLineNum = 5200;BA.debugLine="If RB4_M3_P1.Checked Then P3_M3 = \"13 +\""; +if (_rb4_m3_p1.getChecked()) { +_p3_m3 = "13 +";}; + //BA.debugLineNum = 5202;BA.debugLine="If RB1_M3_P2.Checked Then P4_M3 = \"2 A 4\""; +if (_rb1_m3_p2.getChecked()) { +_p4_m3 = "2 A 4";}; + //BA.debugLineNum = 5203;BA.debugLine="If RB2_M3_P2.Checked Then P4_M3 = \"4 A 6\""; +if (_rb2_m3_p2.getChecked()) { +_p4_m3 = "4 A 6";}; + //BA.debugLineNum = 5204;BA.debugLine="If RB3_M3_P2.Checked Then P4_M3 = \"6 A 8\""; +if (_rb3_m3_p2.getChecked()) { +_p4_m3 = "6 A 8";}; + //BA.debugLineNum = 5205;BA.debugLine="If RB4_M3_P2.Checked Then P4_M3 = \"8 +\""; +if (_rb4_m3_p2.getChecked()) { +_p4_m3 = "8 +";}; + //BA.debugLineNum = 5207;BA.debugLine="If CB5_P4_M3.Checked = True And ( CB2_P4_M3.Chec"; +if (_cb5_p4_m3.getChecked()==__c.True && (_cb2_p4_m3.getChecked()==__c.True || _cb3_p4_m3.getChecked()==__c.True || _cb4_p4_m3.getChecked()==__c.True || _cb1_p4_m3.getChecked()==__c.True)) { + //BA.debugLineNum = 5208;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + //BA.debugLineNum = 5209;BA.debugLine="CB5_P4_M3.Checked = False"; +_cb5_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5210;BA.debugLine="CB2_P4_M3.Checked = False"; +_cb2_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5211;BA.debugLine="CB3_P4_M3.Checked = False"; +_cb3_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5212;BA.debugLine="CB4_P4_M3.Checked = False"; +_cb4_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5213;BA.debugLine="CB1_P4_M3.Checked = False"; +_cb1_p4_m3.setChecked(__c.False); + }; + //BA.debugLineNum = 5217;BA.debugLine="If PASA = \"1\" Then"; +if ((_pasa).equals("1")) { + //BA.debugLineNum = 5218;BA.debugLine="If rb1_m3_p1.Checked Then P3_M3 = \"7 A 9\""; +if (_rb1_m3_p1.getChecked()) { +_p3_m3 = "7 A 9";}; + //BA.debugLineNum = 5219;BA.debugLine="If RB2_M3_P1.Checked Then P3_M3 = \"9 A 11\""; +if (_rb2_m3_p1.getChecked()) { +_p3_m3 = "9 A 11";}; + //BA.debugLineNum = 5220;BA.debugLine="If RB3_M3_P1.Checked Then P3_M3 = \"11 A 13\""; +if (_rb3_m3_p1.getChecked()) { +_p3_m3 = "11 A 13";}; + //BA.debugLineNum = 5221;BA.debugLine="If RB4_M3_P1.Checked Then P3_M3 = \"13 +\""; +if (_rb4_m3_p1.getChecked()) { +_p3_m3 = "13 +";}; + //BA.debugLineNum = 5223;BA.debugLine="If RB1_M3_P2.Checked Then P4_M3 = \"2 A 4\""; +if (_rb1_m3_p2.getChecked()) { +_p4_m3 = "2 A 4";}; + //BA.debugLineNum = 5224;BA.debugLine="If RB2_M3_P2.Checked Then P4_M3 = \"4 A 6\""; +if (_rb2_m3_p2.getChecked()) { +_p4_m3 = "4 A 6";}; + //BA.debugLineNum = 5225;BA.debugLine="If RB3_M3_P2.Checked Then P4_M3 = \"6 A 8\""; +if (_rb3_m3_p2.getChecked()) { +_p4_m3 = "6 A 8";}; + //BA.debugLineNum = 5226;BA.debugLine="If RB4_M3_P2.Checked Then P4_M3 = \"8 +\""; +if (_rb4_m3_p2.getChecked()) { +_p4_m3 = "8 +";}; + //BA.debugLineNum = 5228;BA.debugLine="If ET_P6_M3.Text <> \"\" Then"; +if ((_et_p6_m3.getText()).equals("") == false) { + //BA.debugLineNum = 5229;BA.debugLine="textemp6 = textemp6 & \", \" & ET_P6_M3.Text"; +_textemp6 = _textemp6+", "+_et_p6_m3.getText(); + }; + //BA.debugLineNum = 5232;BA.debugLine="If textemp4 <> \"\" And textemp4.SubString2(0,2) ="; +if ((_textemp4).equals("") == false && (_textemp4.substring((int) (0),(int) (2))).equals(", ")) { +_textemp4 = _textemp4.substring((int) (2));}; + //BA.debugLineNum = 5233;BA.debugLine="If textemp5 <> \"\" And textemp5.SubString2(0,2) ="; +if ((_textemp5).equals("") == false && (_textemp5.substring((int) (0),(int) (2))).equals(", ")) { +_textemp5 = _textemp5.substring((int) (2));}; + //BA.debugLineNum = 5234;BA.debugLine="If textemp6 <> \"\" And textemp6.SubString2(0,2) ="; +if ((_textemp6).equals("") == false && (_textemp6.substring((int) (0),(int) (2))).equals(", ")) { +_textemp6 = _textemp6.substring((int) (2));}; + //BA.debugLineNum = 5235;BA.debugLine="If textemp7 <> \"\" And textemp7.SubString2(0,2) ="; +if ((_textemp7).equals("") == false && (_textemp7.substring((int) (0),(int) (2))).equals(", ")) { +_textemp7 = _textemp7.substring((int) (2));}; + //BA.debugLineNum = 5236;BA.debugLine="If textemp8 <> \"\" And textemp8.SubString2(0,2) ="; +if ((_textemp8).equals("") == false && (_textemp8.substring((int) (0),(int) (2))).equals(", ")) { +_textemp8 = _textemp8.substring((int) (2));}; + //BA.debugLineNum = 5240;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO3"; +_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO3 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6,P7,P8,P9,P10,P11) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)("x"),(Object)("x"),(Object)(_p3_m3),(Object)(_p4_m3),(Object)(_textemp4),(Object)(_textemp5),(Object)(_p5_m3),(Object)(_textemp6),(Object)(_textemp7),(Object)(_textemp8),(Object)(_p9_m3)})); + //BA.debugLineNum = 5241;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5242;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5245;BA.debugLine="If ENCUESTA > 3 Then"; +if ((double)(Double.parseDouble(_encuesta))>3) { + //BA.debugLineNum = 5246;BA.debugLine="If p_m3.IsInitialized And p_m3.Visible Then"; +if (_p_m3.IsInitialized() && _p_m3.getVisible()) { + //BA.debugLineNum = 5247;BA.debugLine="p_m3.Visible = False"; +_p_m3.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 5251;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5252;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 5253;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 5254;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5255;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M4\")"; +_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M4",ba); + //BA.debugLineNum = 5256;BA.debugLine="p_m4.Width = Root.Width * 0.94"; +_p_m4.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 5257;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m4.Height + 60"; +_sv_encuesta.getPanel().setHeight((int) (_p_m4.getHeight()+60)); + //BA.debugLineNum = 5259;BA.debugLine="Dim Items2 As List"; +_items2 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 5260;BA.debugLine="Items2.Initialize"; +_items2.Initialize(); + //BA.debugLineNum = 5261;BA.debugLine="Items2.Add(\"Selecciona una opcion\")"; +_items2.Add((Object)("Selecciona una opcion")); + //BA.debugLineNum = 5262;BA.debugLine="Items2.Add(\"Propio\")"; +_items2.Add((Object)("Propio")); + //BA.debugLineNum = 5263;BA.debugLine="Items2.Add(\"Rentado\")"; +_items2.Add((Object)("Rentado")); + //BA.debugLineNum = 5264;BA.debugLine="cb_p3_m4.SetItems(Items2)"; +_cb_p3_m4._setitems /*String*/ (_items2); + //BA.debugLineNum = 5265;BA.debugLine="itemselect2 = \"Selecciona una opcion\""; +_itemselect2 = "Selecciona una opcion"; + //BA.debugLineNum = 5268;BA.debugLine="Dim Items3 As List"; +_items3 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 5269;BA.debugLine="Items3.Initialize"; +_items3.Initialize(); + //BA.debugLineNum = 5270;BA.debugLine="Items3.Add(\"Selecciona una opcion\")"; +_items3.Add((Object)("Selecciona una opcion")); + //BA.debugLineNum = 5271;BA.debugLine="Items3.Add(\"Completamente Surtido\")"; +_items3.Add((Object)("Completamente Surtido")); + //BA.debugLineNum = 5272;BA.debugLine="Items3.Add(\"Bien Surtido\")"; +_items3.Add((Object)("Bien Surtido")); + //BA.debugLineNum = 5273;BA.debugLine="Items3.Add(\"Poco Surtido\")"; +_items3.Add((Object)("Poco Surtido")); + //BA.debugLineNum = 5274;BA.debugLine="Items3.Add(\"Muy Poco Surtido\")"; +_items3.Add((Object)("Muy Poco Surtido")); + //BA.debugLineNum = 5275;BA.debugLine="Items3.Add(\"Sin Existencias\")"; +_items3.Add((Object)("Sin Existencias")); + //BA.debugLineNum = 5276;BA.debugLine="cb_p4_1_m4.SetItems(Items3)"; +_cb_p4_1_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 5277;BA.debugLine="itemselect3 = \"Selecciona una opcion\""; +_itemselect3 = "Selecciona una opcion"; + //BA.debugLineNum = 5278;BA.debugLine="cb_p4_2_m4.SetItems(Items3)"; +_cb_p4_2_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 5279;BA.debugLine="itemselect4 = \"Selecciona una opcion\""; +_itemselect4 = "Selecciona una opcion"; + //BA.debugLineNum = 5280;BA.debugLine="cb_p4_3_m4.SetItems(Items3)"; +_cb_p4_3_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 5281;BA.debugLine="itemselect5 = \"Selecciona una opcion\""; +_itemselect5 = "Selecciona una opcion"; + //BA.debugLineNum = 5282;BA.debugLine="cb_p4_4_m4.SetItems(Items3)"; +_cb_p4_4_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 5283;BA.debugLine="itemselect6 = \"Selecciona una opcion\""; +_itemselect6 = "Selecciona una opcion"; + //BA.debugLineNum = 5284;BA.debugLine="cb_p4_5_m4.SetItems(Items3)"; +_cb_p4_5_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 5285;BA.debugLine="itemselect7 = \"Selecciona una opcion\""; +_itemselect7 = "Selecciona una opcion"; + }else { + //BA.debugLineNum = 5287;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5288;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5289;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5291;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + //BA.debugLineNum = 5292;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba); + }; + }else { + //BA.debugLineNum = 5295;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")"; +__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 5297;BA.debugLine="End Sub"; +return ""; +} +public String _b_guardaencuesta_m4_click() throws Exception{ +anywheresoftware.b4a.objects.collections.List _items8 = null; + //BA.debugLineNum = 5299;BA.debugLine="Private Sub B_guardaencuesta_m4_Click"; + //BA.debugLineNum = 5301;BA.debugLine="PASA = \"1\""; +_pasa = "1"; + //BA.debugLineNum = 5303;BA.debugLine="If itemselect2 = \"Selecciona una opcion\" Then"; +if ((_itemselect2).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5304;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5306;BA.debugLine="If itemselect3 = \"Selecciona una opcion\" Then"; +if ((_itemselect3).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5307;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5309;BA.debugLine="If itemselect4 = \"Selecciona una opcion\" Then"; +if ((_itemselect4).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5310;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5312;BA.debugLine="If itemselect5 = \"Selecciona una opcion\" Then"; +if ((_itemselect5).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5313;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5315;BA.debugLine="If itemselect6 = \"Selecciona una opcion\" Then"; +if ((_itemselect6).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5316;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5318;BA.debugLine="If itemselect7 = \"Selecciona una opcion\" Then"; +if ((_itemselect7).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5319;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5321;BA.debugLine="If et_p1_m4.Text.Length < 2 Then"; +if (_et_p1_m4.getText().length()<2) { + //BA.debugLineNum = 5323;BA.debugLine="et_p1_m4.Text = \"\""; +_et_p1_m4.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5324;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5326;BA.debugLine="If PASA = \"1\" Then"; +if ((_pasa).equals("1")) { + //BA.debugLineNum = 5327;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO4"; +_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO4 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6, P7, P8) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)(_et_p1_m4.getText()),(Object)(_et_p2_m4.getText()),(Object)(_itemselect2),(Object)(_itemselect3),(Object)(_itemselect4),(Object)(_itemselect5),(Object)(_itemselect6),(Object)(_itemselect7)})); + //BA.debugLineNum = 5328;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5329;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5331;BA.debugLine="If ENCUESTA > 4 Then"; +if ((double)(Double.parseDouble(_encuesta))>4) { + //BA.debugLineNum = 5332;BA.debugLine="If p_m4.IsInitialized And p_m4.Visible Then"; +if (_p_m4.IsInitialized() && _p_m4.getVisible()) { + //BA.debugLineNum = 5333;BA.debugLine="p_m4.Visible = False"; +_p_m4.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 5337;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 5338;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 5339;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5340;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M5\")"; +_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M5",ba); + //BA.debugLineNum = 5341;BA.debugLine="p_modulo5.Width = Root.Width * 0.94"; +_p_modulo5.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 5342;BA.debugLine="SV_ENCUESTA.Panel.Height = p_modulo5.Height + 6"; +_sv_encuesta.getPanel().setHeight((int) (_p_modulo5.getHeight()+60)); + //BA.debugLineNum = 5344;BA.debugLine="Dim Items8 As List"; +_items8 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 5345;BA.debugLine="Items8.Initialize"; +_items8.Initialize(); + //BA.debugLineNum = 5346;BA.debugLine="Items8.Add(\"Selecciona una opcion\")"; +_items8.Add((Object)("Selecciona una opcion")); + //BA.debugLineNum = 5347;BA.debugLine="Items8.Add(\"Completamente Surtido\")"; +_items8.Add((Object)("Completamente Surtido")); + //BA.debugLineNum = 5348;BA.debugLine="Items8.Add(\"Bien Surtido\")"; +_items8.Add((Object)("Bien Surtido")); + //BA.debugLineNum = 5349;BA.debugLine="Items8.Add(\"Poco Surtido\")"; +_items8.Add((Object)("Poco Surtido")); + //BA.debugLineNum = 5350;BA.debugLine="Items8.Add(\"Muy Poco Surtido\")"; +_items8.Add((Object)("Muy Poco Surtido")); + //BA.debugLineNum = 5351;BA.debugLine="Items8.Add(\"Sin Existencias\")"; +_items8.Add((Object)("Sin Existencias")); + //BA.debugLineNum = 5352;BA.debugLine="cb_p1_m5.SetItems(Items8)"; +_cb_p1_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5353;BA.debugLine="itemselect8 = \"Selecciona una opcion\""; +_itemselect8 = "Selecciona una opcion"; + //BA.debugLineNum = 5354;BA.debugLine="cb_p2_m5.SetItems(Items8)"; +_cb_p2_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5355;BA.debugLine="itemselect9 = \"Selecciona una opcion\""; +_itemselect9 = "Selecciona una opcion"; + //BA.debugLineNum = 5356;BA.debugLine="cb_p3_m5.SetItems(Items8)"; +_cb_p3_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5357;BA.debugLine="itemselect10 = \"Selecciona una opcion\""; +_itemselect10 = "Selecciona una opcion"; + //BA.debugLineNum = 5358;BA.debugLine="cb_p4_m5.SetItems(Items8)"; +_cb_p4_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5359;BA.debugLine="itemselect11 = \"Selecciona una opcion\""; +_itemselect11 = "Selecciona una opcion"; + //BA.debugLineNum = 5360;BA.debugLine="cb_p5_m5.SetItems(Items8)"; +_cb_p5_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5361;BA.debugLine="itemselect12 = \"Selecciona una opcion\""; +_itemselect12 = "Selecciona una opcion"; + //BA.debugLineNum = 5362;BA.debugLine="cb_p6_m5.SetItems(Items8)"; +_cb_p6_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5363;BA.debugLine="itemselect13 = \"Selecciona una opcion\""; +_itemselect13 = "Selecciona una opcion"; + //BA.debugLineNum = 5364;BA.debugLine="cb_p7_m5.SetItems(Items8)"; +_cb_p7_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5365;BA.debugLine="itemselect14 = \"Selecciona una opcion\""; +_itemselect14 = "Selecciona una opcion"; + //BA.debugLineNum = 5366;BA.debugLine="cb_p8_m5.SetItems(Items8)"; +_cb_p8_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5367;BA.debugLine="itemselect15 = \"Selecciona una opcion\""; +_itemselect15 = "Selecciona una opcion"; + //BA.debugLineNum = 5368;BA.debugLine="cb_p9_m5.SetItems(Items8)"; +_cb_p9_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 5369;BA.debugLine="itemselect16 = \"Selecciona una opcion\""; +_itemselect16 = "Selecciona una opcion"; + //BA.debugLineNum = 5370;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba); + }else { + //BA.debugLineNum = 5372;BA.debugLine="B4XPages.MainPage.tipo_venta = tipo_venta"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ = _tipo_venta; + //BA.debugLineNum = 5374;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 5375;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5376;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5377;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + }; + }else { + //BA.debugLineNum = 5380;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")"; +__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 5383;BA.debugLine="End Sub"; +return ""; +} +public String _b_guardaencuesta_m5_click() throws Exception{ + //BA.debugLineNum = 5385;BA.debugLine="Private Sub B_guardaencuesta_m5_Click"; + //BA.debugLineNum = 5387;BA.debugLine="PASA = \"1\""; +_pasa = "1"; + //BA.debugLineNum = 5389;BA.debugLine="If itemselect8 = \"Selecciona una opcion\" Then"; +if ((_itemselect8).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5390;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5392;BA.debugLine="If itemselect9 = \"Selecciona una opcion\" Then"; +if ((_itemselect9).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5393;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5395;BA.debugLine="If itemselect10 = \"Selecciona una opcion\" Then"; +if ((_itemselect10).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5396;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5398;BA.debugLine="If itemselect11 = \"Selecciona una opcion\" Then"; +if ((_itemselect11).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5399;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5401;BA.debugLine="If itemselect12 = \"Selecciona una opcion\" Then"; +if ((_itemselect12).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5402;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5404;BA.debugLine="If itemselect13 = \"Selecciona una opcion\" Then"; +if ((_itemselect13).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5405;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5407;BA.debugLine="If itemselect14 = \"Selecciona una opcion\" Then"; +if ((_itemselect14).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5408;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5410;BA.debugLine="If itemselect15 = \"Selecciona una opcion\" Then"; +if ((_itemselect15).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5411;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5413;BA.debugLine="If itemselect16 = \"Selecciona una opcion\" Then"; +if ((_itemselect16).equals("Selecciona una opcion")) { + //BA.debugLineNum = 5414;BA.debugLine="PASA = \"0\""; +_pasa = "0"; + }; + //BA.debugLineNum = 5417;BA.debugLine="If PASA = \"1\" Then"; +if ((_pasa).equals("1")) { + //BA.debugLineNum = 5418;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO ENCUESTA_MODULO5"; +_skmt.ExecNonQuery2("INSERT INTO ENCUESTA_MODULO5 (CLIENTE, ALMACEN,P1, P2, P3, P4, P5, P6, P7, P8, P9) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traecliente /*String*/ (ba)),(Object)(_almacen),(Object)(_itemselect8),(Object)(_itemselect9),(Object)(_itemselect10),(Object)(_itemselect11),(Object)(_itemselect12),(Object)(_itemselect13),(Object)(_itemselect14),(Object)(_itemselect15),(Object)(_itemselect16)})); + //BA.debugLineNum = 5419;BA.debugLine="SV_ENCUESTA.Visible = False"; +_sv_encuesta.setVisible(__c.False); + //BA.debugLineNum = 5420;BA.debugLine="p_cliente.Visible = True"; +_p_cliente.setVisible(__c.True); + //BA.debugLineNum = 5421;BA.debugLine="B4XPages.MainPage.tipo_venta = tipo_venta"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ = _tipo_venta; + //BA.debugLineNum = 5422;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + //BA.debugLineNum = 5423;BA.debugLine="MsgboxAsync(\"Encuesta guardada\",\"\")"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Encuesta guardada"),BA.ObjectToCharSequence(""),ba); + }else { + //BA.debugLineNum = 5425;BA.debugLine="Msgbox(\"FAVOR DE CONTESTAR LA ENCUESTA\",\"AVISO\")"; +__c.Msgbox(BA.ObjectToCharSequence("FAVOR DE CONTESTAR LA ENCUESTA"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 5427;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(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +int _resultado = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _creditocod = null; +anywheresoftware.b4a.objects.CSBuilder _cs = 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 = 3144;BA.debugLine="If ALMACEN = 87 Then"; +if (true) break; + +case 1: +//if +this.state = 44; +if ((parent._almacen).equals(BA.NumberToString(87))) { +this.state = 3; +}else if((parent._almacen).equals(BA.NumberToString(88))) { +this.state = 11; +}else if((parent._almacen).equals(BA.NumberToString(81)) || (parent._almacen).equals(BA.NumberToString(102)) || (parent._almacen).equals(BA.NumberToString(94))) { +this.state = 13; +}else { +this.state = 43; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 3145;BA.debugLine="If Subs.traemontoprod Then"; +if (true) break; + +case 4: +//if +this.state = 9; +if (parent._subs._traemontoprod /*boolean*/ (ba)) { +this.state = 6; +}else { +this.state = 8; +}if (true) break; + +case 6: +//C +this.state = 9; + //BA.debugLineNum = 3146;BA.debugLine="Impresion2"; +parent._impresion2(); + if (true) break; + +case 8: +//C +this.state = 9; + //BA.debugLineNum = 3148;BA.debugLine="Impresion"; +parent._impresion(); + if (true) break; + +case 9: +//C +this.state = 44; +; + if (true) break; + +case 11: +//C +this.state = 44; + //BA.debugLineNum = 3152;BA.debugLine="Impresion4"; +parent._impresion4(); + if (true) break; + +case 13: +//C +this.state = 14; + //BA.debugLineNum = 3155;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO, IFNULL(CONFIRMADO,0) AS CONFIRMADO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 3156;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 3158;BA.debugLine="If c.GetString(\"CAT_CL_BCREDITO\") = 0 Then"; +if (true) break; + +case 14: +//if +this.state = 41; +if ((parent._c.GetString("CAT_CL_BCREDITO")).equals(BA.NumberToString(0))) { +this.state = 16; +}else if((parent._c.GetString("CAT_CL_BCREDITO")).equals(BA.NumberToString(1))) { +this.state = 18; +}if (true) break; + +case 16: +//C +this.state = 41; + //BA.debugLineNum = 3159;BA.debugLine="Impresion4"; +parent._impresion4(); + if (true) break; + +case 18: +//C +this.state = 19; + //BA.debugLineNum = 3162;BA.debugLine="If c.GetString(\"CONFIRMADO\") = 0 Then"; +if (true) break; + +case 19: +//if +this.state = 40; +if ((parent._c.GetString("CONFIRMADO")).equals(BA.NumberToString(0))) { +this.state = 21; +}else { +this.state = 39; +}if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 3164;BA.debugLine="Msgbox2Async(\"La entrega sera a credito o de c"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("La entrega sera a credito o de contado?"),BA.ObjectToCharSequence("Atención"),"Credito","Contado","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 3165;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 45; +return; +case 45: +//C +this.state = 22; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 3166;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 22: +//if +this.state = 37; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 24; +}else if(_resultado==parent.__c.DialogResponse.CANCEL) { +this.state = 36; +}if (true) break; + +case 24: +//C +this.state = 25; + //BA.debugLineNum = 3167;BA.debugLine="Dim creditocod As Cursor = Starter.skmt.ExecQ"; +_creditocod = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_creditocod = (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 FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 3168;BA.debugLine="If creditocod.RowCount > 0 Then"; +if (true) break; + +case 25: +//if +this.state = 34; +if (_creditocod.getRowCount()>0) { +this.state = 27; +}else { +this.state = 33; +}if (true) break; + +case 27: +//C +this.state = 28; + //BA.debugLineNum = 3169;BA.debugLine="creditocod.Position = 0"; +_creditocod.setPosition((int) (0)); + //BA.debugLineNum = 3170;BA.debugLine="Dim cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 3171;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 3174;BA.debugLine="cs.Size(16).Append(\"Proporciona el siguiente"; +_cs.Size((int) (16)).Append(BA.ObjectToCharSequence("Proporciona el siguiente codigo al cliente '")); + //BA.debugLineNum = 3177;BA.debugLine="cs.Bold.Append(creditocod.GetString(\"CODIGO\""; +_cs.Bold().Append(BA.ObjectToCharSequence(_creditocod.GetString("CODIGO"))).Pop(); + //BA.debugLineNum = 3180;BA.debugLine="cs.Append(\"' para su entrega\").PopAll"; +_cs.Append(BA.ObjectToCharSequence("' para su entrega")).PopAll(); + //BA.debugLineNum = 3183;BA.debugLine="Msgbox2Async(cs, \"Atención\", \"Ok\", \"\", \"\", L"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence(_cs.getObject()),BA.ObjectToCharSequence("Atención"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 3184;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 46; +return; +case 46: +//C +this.state = 28; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 3185;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 28: +//if +this.state = 31; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 30; +}if (true) break; + +case 30: +//C +this.state = 31; + //BA.debugLineNum = 3186;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 1 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 3187;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_C"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 1 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 3189;BA.debugLine="Impresion4"; +parent._impresion4(); + if (true) break; + +case 31: +//C +this.state = 34; +; + if (true) break; + +case 33: +//C +this.state = 34; + //BA.debugLineNum = 3192;BA.debugLine="Impresion4"; +parent._impresion4(); + if (true) break; + +case 34: +//C +this.state = 37; +; + if (true) break; + +case 36: +//C +this.state = 37; + //BA.debugLineNum = 3197;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 s"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 1 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 3198;BA.debugLine="Impresion4"; +parent._impresion4(); + if (true) break; + +case 37: +//C +this.state = 40; +; + if (true) break; + +case 39: +//C +this.state = 40; + //BA.debugLineNum = 3201;BA.debugLine="Impresion4"; +parent._impresion4(); + if (true) break; + +case 40: +//C +this.state = 41; +; + if (true) break; + +case 41: +//C +this.state = 44; +; + if (true) break; + +case 43: +//C +this.state = 44; + //BA.debugLineNum = 3206;BA.debugLine="Impresion"; +parent._impresion(); + if (true) break; + +case 44: +//C +this.state = -1; +; + //BA.debugLineNum = 3209;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from TICKET_IMPRESO where idCliente In (select cuenta from cuentaa)"); + //BA.debugLineNum = 3210;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into TICKET_IMPRESO (idCliente) values ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"')")); + //BA.debugLineNum = 3211;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _msgbox_result(int _resultado) throws Exception{ +} +public String _b_inicio_fin_venta_click() throws Exception{ + //BA.debugLineNum = 6674;BA.debugLine="Private Sub b_Inicio_Fin_venta_Click"; + //BA.debugLineNum = 6709;BA.debugLine="End Sub"; +return ""; +} +public String _b_like_click() throws Exception{ + //BA.debugLineNum = 4676;BA.debugLine="Sub b_like_Click"; + //BA.debugLineNum = 4677;BA.debugLine="Panel1.Visible = True"; +_panel1.setVisible(__c.True); + //BA.debugLineNum = 4678;BA.debugLine="b_like.Visible = False"; +_b_like.setVisible(__c.False); + //BA.debugLineNum = 4679;BA.debugLine="Tar.Visible = False"; +_tar.setVisible(__c.False); + //BA.debugLineNum = 4680;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 4681;BA.debugLine="gest.Visible = False ' : ToastMessageShow(\"bbbb\","; +_gest.setVisible(__c.False); + //BA.debugLineNum = 4682;BA.debugLine="b_venta.Visible = False"; +_b_venta.setVisible(__c.False); + //BA.debugLineNum = 4683;BA.debugLine="Guardar.Visible = False"; +_guardar.setVisible(__c.False); + //BA.debugLineNum = 4684;BA.debugLine="End Sub"; +return ""; +} +public String _b_mapa_click() throws Exception{ + //BA.debugLineNum = 3123;BA.debugLine="Sub b_mapa_Click"; + //BA.debugLineNum = 3124;BA.debugLine="B4XPages.ShowPage(\"mapas\")"; +_b4xpages._showpage /*String*/ (ba,"mapas"); + //BA.debugLineNum = 3125;BA.debugLine="End Sub"; +return ""; +} +public String _b_okdeuda_click() throws Exception{ + //BA.debugLineNum = 7864;BA.debugLine="Private Sub b_okdeuda_Click"; + //BA.debugLineNum = 7865;BA.debugLine="p_deuda.Visible = False"; +_p_deuda.setVisible(__c.False); + //BA.debugLineNum = 7866;BA.debugLine="End Sub"; +return ""; +} +public String _b_preguntag_click() throws Exception{ +anywheresoftware.b4a.objects.collections.List _items2 = null; +anywheresoftware.b4a.objects.collections.List _items3 = null; +anywheresoftware.b4a.objects.collections.List _items8 = null; + //BA.debugLineNum = 2393;BA.debugLine="Private Sub b_preguntag_Click"; + //BA.debugLineNum = 2394;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE kmt_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 SET CAT_CL_GIRO = ? WHERE CAT_CL_CODIGO = ? And CAT_CL_NOMBRE = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_girotienda),(Object)(_la_cuenta.getText()),(Object)(_la_nombre.getText())})); + //BA.debugLineNum = 2395;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO HIST_ENCUESTA_AVI"; +_skmt.ExecNonQuery2("INSERT INTO HIST_ENCUESTA_AVISO_GIRO(HEAV_CLIENTE , HEAV_MODULO , HEAV_AVISO ,HEAV_GIRO ) VALUES (?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_encuesta),(Object)("ACEPTA"),(Object)(_girotienda)})); + //BA.debugLineNum = 2396;BA.debugLine="If girotienda <> \"Selecciona una opcion\" Then"; +if ((_girotienda).equals("Selecciona una opcion") == false) { + //BA.debugLineNum = 2397;BA.debugLine="If girotienda = \"Tienda de Abarrotes (Abarrotes,"; +if ((_girotienda).equals("Tienda de Abarrotes (Abarrotes, Misceláneas, Minisupers, Particulares con Venta y Cremerías)")) { + //BA.debugLineNum = 2398;BA.debugLine="Dim result As Int= -3"; +_result = (int) (-3); + //BA.debugLineNum = 2399;BA.debugLine="Do While result=-3"; +while (_result==-3) { + //BA.debugLineNum = 2400;BA.debugLine="result = Msgbox2(\"Entiendo, acepto y consient"; +_result = __c.Msgbox2(BA.ObjectToCharSequence("Entiendo, acepto y consiento que GUNA usará mis datos Personales y serán tratados acorde con lo establecido en la Ley Federal de Protección de Datos Personales en Posesión de los Particulares (en lo sucesivo la “Ley”), y su respectivo Reglamento; bajo lo manifestado en el Aviso de Privacidad – Texto Completo – que se encuentra en la página www.guna.com.mx"),BA.ObjectToCharSequence("AVISO DE PRIVACIDAD"),"ACEPTO","","NO ACEPTO",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba); + //BA.debugLineNum = 2401;BA.debugLine="Select Case result"; +switch (BA.switchObjectToInt(_result,__c.DialogResponse.POSITIVE,__c.DialogResponse.NEGATIVE)) { +case 0: { + //BA.debugLineNum = 2420;BA.debugLine="Log(que_modulo)"; +__c.LogImpl("315007771",_que_modulo,0); + //BA.debugLineNum = 2421;BA.debugLine="If que_modulo = Null Or que_modulo = \" \" The"; +if (_que_modulo== null || (_que_modulo).equals(" ")) { +_que_modulo = "1";}; + //BA.debugLineNum = 2423;BA.debugLine="If que_modulo < = ENCUESTA Then"; +if ((double)(Double.parseDouble(_que_modulo))<=(double)(Double.parseDouble(_encuesta))) { + //BA.debugLineNum = 2424;BA.debugLine="If que_modulo = \"1\" Then"; +if ((_que_modulo).equals("1")) { + //BA.debugLineNum = 2427;BA.debugLine="If p_m2.IsInitialized And p_m2.Visible The"; +if (_p_m2.IsInitialized() && _p_m2.getVisible()) { + //BA.debugLineNum = 2428;BA.debugLine="p_m2.Visible = False"; +_p_m2.setVisible(__c.False); + }else if(_p_m3.IsInitialized() && _p_m3.getVisible()) { + //BA.debugLineNum = 2430;BA.debugLine="p_m3.Visible = False"; +_p_m3.setVisible(__c.False); + }else if(_p_m4.IsInitialized() && _p_m4.getVisible()) { + //BA.debugLineNum = 2432;BA.debugLine="p_m4.Visible = False"; +_p_m4.setVisible(__c.False); + }else if(_p_modulo5.IsInitialized() && _p_modulo5.getVisible()) { + //BA.debugLineNum = 2434;BA.debugLine="p_modulo5.Visible = False"; +_p_modulo5.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 2438;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2439;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 2440;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 2441;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA\")"; +_sv_encuesta.getPanel().LoadLayout("ENCUESTA",ba); + //BA.debugLineNum = 2442;BA.debugLine="p_m1.Width = Root.Width * 0.94"; +_p_m1.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 2443;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m1.Height + 6"; +_sv_encuesta.getPanel().setHeight((int) (_p_m1.getHeight()+60)); + //BA.debugLineNum = 2444;BA.debugLine="Panel7.Visible = False"; +_panel7.setVisible(__c.False); + }else if((_que_modulo).equals("2")) { + //BA.debugLineNum = 2448;BA.debugLine="If p_m1.IsInitialized And p_m1.Visible The"; +if (_p_m1.IsInitialized() && _p_m1.getVisible()) { + //BA.debugLineNum = 2449;BA.debugLine="p_m1.Visible = False"; +_p_m1.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 2453;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2454;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 2455;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 2456;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ESNCUESTA_m2"; +_sv_encuesta.getPanel().LoadLayout("ESNCUESTA_m2",ba); + //BA.debugLineNum = 2457;BA.debugLine="p_m2.Width = Root.Width * 0.94"; +_p_m2.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 2458;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m2.Height + 6"; +_sv_encuesta.getPanel().setHeight((int) (_p_m2.getHeight()+60)); + //BA.debugLineNum = 2459;BA.debugLine="Panel7_M2.Visible = False"; +_panel7_m2.setVisible(__c.False); + }else if((_que_modulo).equals("3")) { + //BA.debugLineNum = 2462;BA.debugLine="If p_m2.IsInitialized And p_m2.Visible The"; +if (_p_m2.IsInitialized() && _p_m2.getVisible()) { + //BA.debugLineNum = 2463;BA.debugLine="p_m2.Visible = False"; +_p_m2.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 2467;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2468;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 2469;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 2470;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESSTA_M3"; +_sv_encuesta.getPanel().LoadLayout("ENCUESSTA_M3",ba); + //BA.debugLineNum = 2472;BA.debugLine="p_m3.Width = Root.Width * 0.94"; +_p_m3.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 2473;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m3.Height + 6"; +_sv_encuesta.getPanel().setHeight((int) (_p_m3.getHeight()+60)); + }else if((_que_modulo).equals("4")) { + //BA.debugLineNum = 2476;BA.debugLine="If p_m3.IsInitialized And p_m3.Visible The"; +if (_p_m3.IsInitialized() && _p_m3.getVisible()) { + //BA.debugLineNum = 2478;BA.debugLine="p_m3.Visible = False"; +_p_m3.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 2481;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2482;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 2483;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 2484;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2485;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M4\""; +_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M4",ba); + //BA.debugLineNum = 2486;BA.debugLine="p_m4.Width = Root.Width * 0.94"; +_p_m4.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 2487;BA.debugLine="SV_ENCUESTA.Panel.Height = p_m4.Height + 6"; +_sv_encuesta.getPanel().setHeight((int) (_p_m4.getHeight()+60)); + //BA.debugLineNum = 2489;BA.debugLine="Dim Items2 As List"; +_items2 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2490;BA.debugLine="Items2.Initialize"; +_items2.Initialize(); + //BA.debugLineNum = 2491;BA.debugLine="Items2.Add(\"Selecciona una opcion\")"; +_items2.Add((Object)("Selecciona una opcion")); + //BA.debugLineNum = 2492;BA.debugLine="Items2.Add(\"Propio\")"; +_items2.Add((Object)("Propio")); + //BA.debugLineNum = 2493;BA.debugLine="Items2.Add(\"Rentado\")"; +_items2.Add((Object)("Rentado")); + //BA.debugLineNum = 2494;BA.debugLine="cb_p3_m4.SetItems(Items2)"; +_cb_p3_m4._setitems /*String*/ (_items2); + //BA.debugLineNum = 2495;BA.debugLine="itemselect2 = \"Selecciona una opcion\""; +_itemselect2 = "Selecciona una opcion"; + //BA.debugLineNum = 2497;BA.debugLine="Dim Items3 As List"; +_items3 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2498;BA.debugLine="Items3.Initialize"; +_items3.Initialize(); + //BA.debugLineNum = 2499;BA.debugLine="Items3.Add(\"Selecciona una opcion\")"; +_items3.Add((Object)("Selecciona una opcion")); + //BA.debugLineNum = 2500;BA.debugLine="Items3.Add(\"Completamente Surtido\")"; +_items3.Add((Object)("Completamente Surtido")); + //BA.debugLineNum = 2501;BA.debugLine="Items3.Add(\"Bien Surtido\")"; +_items3.Add((Object)("Bien Surtido")); + //BA.debugLineNum = 2502;BA.debugLine="Items3.Add(\"Poco Surtido\")"; +_items3.Add((Object)("Poco Surtido")); + //BA.debugLineNum = 2503;BA.debugLine="Items3.Add(\"Muy Poco Surtido\")"; +_items3.Add((Object)("Muy Poco Surtido")); + //BA.debugLineNum = 2504;BA.debugLine="Items3.Add(\"Sin Existencias\")"; +_items3.Add((Object)("Sin Existencias")); + //BA.debugLineNum = 2505;BA.debugLine="cb_p4_1_m4.SetItems(Items3)"; +_cb_p4_1_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 2506;BA.debugLine="itemselect3 = \"Selecciona una opcion\""; +_itemselect3 = "Selecciona una opcion"; + //BA.debugLineNum = 2507;BA.debugLine="cb_p4_2_m4.SetItems(Items3)"; +_cb_p4_2_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 2508;BA.debugLine="itemselect4 = \"Selecciona una opcion\""; +_itemselect4 = "Selecciona una opcion"; + //BA.debugLineNum = 2509;BA.debugLine="cb_p4_3_m4.SetItems(Items3)"; +_cb_p4_3_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 2510;BA.debugLine="itemselect5 = \"Selecciona una opcion\""; +_itemselect5 = "Selecciona una opcion"; + //BA.debugLineNum = 2511;BA.debugLine="cb_p4_4_m4.SetItems(Items3)"; +_cb_p4_4_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 2512;BA.debugLine="itemselect6 = \"Selecciona una opcion\""; +_itemselect6 = "Selecciona una opcion"; + //BA.debugLineNum = 2513;BA.debugLine="cb_p4_5_m4.SetItems(Items3)"; +_cb_p4_5_m4._setitems /*String*/ (_items3); + //BA.debugLineNum = 2514;BA.debugLine="itemselect7 = \"Selecciona una opcion\""; +_itemselect7 = "Selecciona una opcion"; + }else if((_que_modulo).equals("5")) { + //BA.debugLineNum = 2517;BA.debugLine="If p_m4.IsInitialized And p_m4.Visible The"; +if (_p_m4.IsInitialized() && _p_m4.getVisible()) { + //BA.debugLineNum = 2518;BA.debugLine="p_m4.Visible = False"; +_p_m4.setVisible(__c.False); + }else { + }; + //BA.debugLineNum = 2521;BA.debugLine="p_cliente.Visible = False"; +_p_cliente.setVisible(__c.False); + //BA.debugLineNum = 2522;BA.debugLine="SV_ENCUESTA.Visible = True"; +_sv_encuesta.setVisible(__c.True); + //BA.debugLineNum = 2523;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2524;BA.debugLine="SV_ENCUESTA.Panel.LoadLayout(\"ENCUESTA_M5\""; +_sv_encuesta.getPanel().LoadLayout("ENCUESTA_M5",ba); + //BA.debugLineNum = 2525;BA.debugLine="p_modulo5.Width = Root.Width * 0.94"; +_p_modulo5.setWidth((int) (_root.getWidth()*0.94)); + //BA.debugLineNum = 2526;BA.debugLine="SV_ENCUESTA.Panel.Height = p_modulo5.Heigh"; +_sv_encuesta.getPanel().setHeight((int) (_p_modulo5.getHeight()+30)); + //BA.debugLineNum = 2527;BA.debugLine="Dim Items8 As List"; +_items8 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2528;BA.debugLine="Items8.Initialize"; +_items8.Initialize(); + //BA.debugLineNum = 2529;BA.debugLine="Items8.Add(\"Selecciona una opcion\")"; +_items8.Add((Object)("Selecciona una opcion")); + //BA.debugLineNum = 2530;BA.debugLine="Items8.Add(\"Completamente Surtido\")"; +_items8.Add((Object)("Completamente Surtido")); + //BA.debugLineNum = 2531;BA.debugLine="Items8.Add(\"Bien Surtido\")"; +_items8.Add((Object)("Bien Surtido")); + //BA.debugLineNum = 2532;BA.debugLine="Items8.Add(\"Poco Surtido\")"; +_items8.Add((Object)("Poco Surtido")); + //BA.debugLineNum = 2533;BA.debugLine="Items8.Add(\"Muy Poco Surtido\")"; +_items8.Add((Object)("Muy Poco Surtido")); + //BA.debugLineNum = 2534;BA.debugLine="Items8.Add(\"Sin Existencias\")"; +_items8.Add((Object)("Sin Existencias")); + //BA.debugLineNum = 2535;BA.debugLine="cb_p1_m5.SetItems(Items8)"; +_cb_p1_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2536;BA.debugLine="itemselect8 = \"Selecciona una opcion\""; +_itemselect8 = "Selecciona una opcion"; + //BA.debugLineNum = 2537;BA.debugLine="cb_p2_m5.SetItems(Items8)"; +_cb_p2_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2538;BA.debugLine="itemselect9 = \"Selecciona una opcion\""; +_itemselect9 = "Selecciona una opcion"; + //BA.debugLineNum = 2539;BA.debugLine="cb_p3_m5.SetItems(Items8)"; +_cb_p3_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2540;BA.debugLine="itemselect10 = \"Selecciona una opcion\""; +_itemselect10 = "Selecciona una opcion"; + //BA.debugLineNum = 2541;BA.debugLine="cb_p4_m5.SetItems(Items8)"; +_cb_p4_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2542;BA.debugLine="itemselect11 = \"Selecciona una opcion\""; +_itemselect11 = "Selecciona una opcion"; + //BA.debugLineNum = 2543;BA.debugLine="cb_p5_m5.SetItems(Items8)"; +_cb_p5_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2544;BA.debugLine="itemselect12 = \"Selecciona una opcion\""; +_itemselect12 = "Selecciona una opcion"; + //BA.debugLineNum = 2545;BA.debugLine="cb_p6_m5.SetItems(Items8)"; +_cb_p6_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2546;BA.debugLine="itemselect13 = \"Selecciona una opcion\""; +_itemselect13 = "Selecciona una opcion"; + //BA.debugLineNum = 2547;BA.debugLine="cb_p7_m5.SetItems(Items8)"; +_cb_p7_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2548;BA.debugLine="itemselect14 = \"Selecciona una opcion\""; +_itemselect14 = "Selecciona una opcion"; + //BA.debugLineNum = 2549;BA.debugLine="cb_p8_m5.SetItems(Items8)"; +_cb_p8_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2550;BA.debugLine="itemselect15 = \"Selecciona una opcion\""; +_itemselect15 = "Selecciona una opcion"; + //BA.debugLineNum = 2551;BA.debugLine="cb_p9_m5.SetItems(Items8)"; +_cb_p9_m5._setitems /*String*/ (_items8); + //BA.debugLineNum = 2552;BA.debugLine="itemselect16 = \"Selecciona una opcion\""; +_itemselect16 = "Selecciona una opcion"; + }; + }else { + //BA.debugLineNum = 2555;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2556;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + }; + break; } +case 1: { + //BA.debugLineNum = 2560;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + break; } +} +; + } +; + }else { + //BA.debugLineNum = 2712;BA.debugLine="p_pregunta1.Visible = False"; +_p_pregunta1.setVisible(__c.False); + //BA.debugLineNum = 2713;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + }; + }else { + //BA.debugLineNum = 2716;BA.debugLine="Msgbox(\"Contesta la pregunta por favor\",\"AVISO\")"; +__c.Msgbox(BA.ObjectToCharSequence("Contesta la pregunta por favor"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 2718;BA.debugLine="End Sub"; +return ""; +} +public String _b_preventa_click() throws Exception{ + //BA.debugLineNum = 6729;BA.debugLine="Private Sub b_preventa_Click"; + //BA.debugLineNum = 6731;BA.debugLine="End Sub"; +return ""; +} +public void _b_preventa2_click() throws Exception{ +ResumableSub_b_preventa2_Click rsub = new ResumableSub_b_preventa2_Click(this); +rsub.resume(ba, null); +} +public static class ResumableSub_b_preventa2_Click extends BA.ResumableSub { +public ResumableSub_b_preventa2_Click(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null; +String _fechainicio = ""; +long _ticksinicio = 0L; +long _tickshoy = 0L; +int _diferenciadias = 0; +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 = 7876;BA.debugLine="B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTURA\""; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ = "PREVENTA_FUTURA"; + //BA.debugLineNum = 7877;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt."; +_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7878;BA.debugLine="If pagarepen.RowCount > 0 Then"; +if (true) break; + +case 1: +//if +this.state = 16; +if (_pagarepen.getRowCount()>0) { +this.state = 3; +}else { +this.state = 15; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 7879;BA.debugLine="pagarepen.Position = 0"; +_pagarepen.setPosition((int) (0)); + //BA.debugLineNum = 7880;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 7881;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString("; +_fechainicio = _pagarepen.GetString("FECHA"); + //BA.debugLineNum = 7883;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))"; +parent.__c.LogImpl("327852811",_pagarepen.GetString("FECHA"),0); + //BA.debugLineNum = 7886;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fec"; +_ticksinicio = parent.__c.DateTime.DateParse(_fechainicio); + //BA.debugLineNum = 7887;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateTi"; +_tickshoy = parent.__c.DateTime.DateParse(parent.__c.DateTime.Date(parent.__c.DateTime.getNow())); + //BA.debugLineNum = 7890;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIni"; +_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)parent.__c.DateTime.TicksPerDay); + //BA.debugLineNum = 7893;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)"; +parent.__c.LogImpl("327852821",("Días transcurridos: "+parent.__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0); + //BA.debugLineNum = 7895;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 7896;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 7898;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDIT"; +if (true) break; + +case 4: +//if +this.state = 13; +if (_diferenciadias<=parent._c.GetInt("CAT_CL_DIASCREDITO")+1) { +this.state = 6; +}else if(_diferenciadias>parent._c.GetInt("CAT_CL_DIASCREDITO")+1) { +this.state = 12; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 7900;BA.debugLine="Msgbox2Async($\"Favor de pagar su credito el día"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("Favor de pagar su credito el día de mañana por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Recordatorio"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 7901;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 17; +return; +case 17: +//C +this.state = 7; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 7902;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 7: +//if +this.state = 10; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 9; +}if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 7903;BA.debugLine="gestionar"; +parent._gestionar(); + if (true) break; + +case 10: +//C +this.state = 13; +; + if (true) break; + +case 12: +//C +this.state = 13; + //BA.debugLineNum = 7906;BA.debugLine="MsgboxAsync($\"No se puede realizar venta por qu"; +parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("No se puede realizar venta por que presenta "+parent.__c.SmartStringFormatter("",(Object)((_diferenciadias-(parent._c.GetInt("CAT_CL_DIASCREDITO")+1))))+" días de atraso en el credito, por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Atención"),ba); + if (true) break; + +case 13: +//C +this.state = 16; +; + if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 7909;BA.debugLine="gestionar"; +parent._gestionar(); + if (true) break; + +case 16: +//C +this.state = -1; +; + //BA.debugLineNum = 7911;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b_preventa2_longclick() throws Exception{ + //BA.debugLineNum = 3838;BA.debugLine="Private Sub b_preventa2_LongClick"; + //BA.debugLineNum = 3840;BA.debugLine="Log(NumberFormat2(Subs.calculaTotalConPromoXRango"; +__c.LogImpl("317367042",__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 3841;BA.debugLine="Log(NumberFormat2(Subs.calculaTotalConPromoXRango"; +__c.LogImpl("317367043",__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 3842;BA.debugLine="Log(NumberFormat2( (Subs.calculaTotalConPromoXRan"; +__c.LogImpl("317367044",__c.NumberFormat2(((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 3843;BA.debugLine="Log(NumberFormat2( (((Subs.calculaTotalConPromoXR"; +__c.LogImpl("317367045",__c.NumberFormat2(((((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))))*100)/(double)(double)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False)))),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 3846;BA.debugLine="End Sub"; +return ""; +} +public String _b_venta_click() throws Exception{ + //BA.debugLineNum = 4609;BA.debugLine="Sub b_venta_Click"; + //BA.debugLineNum = 4610;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 4611;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 4612;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 4640;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(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +String _permission = ""; +boolean _resultc = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar1 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar = null; +byte[] _fotomostrarfinal = null; +anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _inputstream1 = null; +anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bitmap1 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null; +int _resultado = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _j3 = null; +int _i = 0; +float _des = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +float _rec = 0f; +float _cantres = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null; +float _recalculo = 0f; +float _recalculototal = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null; +float _rec1 = 0f; +float _cantres1 = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null; +String _geo = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fac = null; +String _factura = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null; +String _fechainicio = ""; +long _ticksinicio = 0L; +long _tickshoy = 0L; +int _diferenciadias = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _coloressaldo = null; +int step266; +int limit266; +int step307; +int limit307; +int step327; +int limit327; +int step374; +int limit374; +int step395; +int limit395; +int step418; +int limit418; + +@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 = 551;BA.debugLine="Starter.enCliente = True"; +parent._starter._encliente /*boolean*/ = parent.__c.True; + //BA.debugLineNum = 552;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 553;BA.debugLine="gest.Visible = False"; +parent._gest.setVisible(parent.__c.False); + //BA.debugLineNum = 554;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + //BA.debugLineNum = 561;BA.debugLine="recalculoXcant"; +parent._recalculoxcant(); + //BA.debugLineNum = 563;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirAssets,\"im"; +parent._imageview4.setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"images.png").getObject())); + //BA.debugLineNum = 564;BA.debugLine="btnPlanLealtad.Visible = False"; +parent._btnplanlealtad.setVisible(parent.__c.False); + //BA.debugLineNum = 565;BA.debugLine="bitacora.inicioFin"; +parent._bitacora._iniciofin /*String*/ (); + //BA.debugLineNum = 567;BA.debugLine="que_modulo = 1"; +parent._que_modulo = BA.NumberToString(1); + //BA.debugLineNum = 568;BA.debugLine="dentroDeGeocerca = False"; +parent._dentrodegeocerca = parent.__c.False; + //BA.debugLineNum = 569;BA.debugLine="indicePregunta = 0"; +parent._indicepregunta = (int) (0); + //BA.debugLineNum = 570;BA.debugLine="l_credito.Visible = False"; +parent._l_credito.setVisible(parent.__c.False); + //BA.debugLineNum = 571;BA.debugLine="l_limite.Visible = False"; +parent._l_limite.setVisible(parent.__c.False); + //BA.debugLineNum = 572;BA.debugLine="pnlPlanLealtad.Top = 0"; +parent._pnlplanlealtad.setTop((int) (0)); + //BA.debugLineNum = 573;BA.debugLine="pnlPlanLealtad.Left = 0"; +parent._pnlplanlealtad.setLeft((int) (0)); + //BA.debugLineNum = 574;BA.debugLine="pnlPlanLealtad.Width = Root.Width"; +parent._pnlplanlealtad.setWidth(parent._root.getWidth()); + //BA.debugLineNum = 575;BA.debugLine="pnlPlanLealtad.Height = Root.Height"; +parent._pnlplanlealtad.setHeight(parent._root.getHeight()); + //BA.debugLineNum = 576;BA.debugLine="p_cliente.Width = Root.Width"; +parent._p_cliente.setWidth(parent._root.getWidth()); + //BA.debugLineNum = 577;BA.debugLine="p_cliente.Height = Root.Height"; +parent._p_cliente.setHeight(parent._root.getHeight()); + //BA.debugLineNum = 578;BA.debugLine="p_cliente_.Width = Root.Width"; +parent._p_cliente_.setWidth(parent._root.getWidth()); + //BA.debugLineNum = 579;BA.debugLine="Subs.centraPanel(p_atiende, Root.Width)"; +parent._subs._centrapanel /*String*/ (ba,parent._p_atiende,parent._root.getWidth()); + //BA.debugLineNum = 580;BA.debugLine="Subs.centraPanel(p_telefono, Root.Width)"; +parent._subs._centrapanel /*String*/ (ba,parent._p_telefono,parent._root.getWidth()); + //BA.debugLineNum = 583;BA.debugLine="If TOMAR_FOTO <> 0 Then Cuestionario"; +if (true) break; + +case 1: +//if +this.state = 6; +if ((parent._tomar_foto).equals(BA.NumberToString(0)) == false) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +parent._cuestionario(); +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 584;BA.debugLine="Starter.idCliente = Subs.traeCliente"; +parent._starter._idcliente /*String*/ = parent._subs._traecliente /*String*/ (ba); + //BA.debugLineNum = 586;BA.debugLine="If Subs.traeCliente = \"0\" Then"; +if (true) break; + +case 7: +//if +this.state = 12; +if ((parent._subs._traecliente /*String*/ (ba)).equals("0")) { +this.state = 9; +}else { +this.state = 11; +}if (true) break; + +case 9: +//C +this.state = 12; + //BA.debugLineNum = 587;BA.debugLine="tipo_venta = \"ABORDO\""; +parent._tipo_venta = "ABORDO"; + //BA.debugLineNum = 588;BA.debugLine="Log(1)"; +parent.__c.LogImpl("313828134",BA.NumberToString(1),0); + //BA.debugLineNum = 589;BA.debugLine="Log(\"ABORDO\")"; +parent.__c.LogImpl("313828135","ABORDO",0); + if (true) break; + +case 11: +//C +this.state = 12; + //BA.debugLineNum = 591;BA.debugLine="tipo_venta = Subs.traeTipoVentaDeBD"; +parent._tipo_venta = parent._subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 593;BA.debugLine="Log(Subs.traeTipoVentaDeBD)"; +parent.__c.LogImpl("313828139",parent._subs._traetipoventadebd /*String*/ (ba),0); + if (true) break; + +case 12: +//C +this.state = 13; +; + //BA.debugLineNum = 595;BA.debugLine="B4XPages.MainPage.tipo_venta = tipo_venta"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ = parent._tipo_venta; + //BA.debugLineNum = 596;BA.debugLine="Log($\"TIPO_VENTA: ${tipo_venta}\"$)"; +parent.__c.LogImpl("313828142",("TIPO_VENTA: "+parent.__c.SmartStringFormatter("",(Object)(parent._tipo_venta))+""),0); + //BA.debugLineNum = 597;BA.debugLine="encuentasmapa.Initialize"; +parent._encuentasmapa.Initialize(); + //BA.debugLineNum = 598;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 = 599;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); +this.state = 554; +return; +case 554: +//C +this.state = 13; +_permission = (String) result[0]; +_resultc = (Boolean) result[1]; +; + //BA.debugLineNum = 600;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_WRITE_EXTERNAL_STORAGE); + //BA.debugLineNum = 601;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); +this.state = 555; +return; +case 555: +//C +this.state = 13; +_permission = (String) result[0]; +_resultc = (Boolean) result[1]; +; + //BA.debugLineNum = 602;BA.debugLine="LA_GPS.TextColor = Colors.Red"; +parent._la_gps.setTextColor(parent.__c.Colors.Red); + //BA.debugLineNum = 603;BA.debugLine="LA_GPS.Text = \"SIN UBICACION GPS\""; +parent._la_gps.setText(BA.ObjectToCharSequence("SIN UBICACION GPS")); + //BA.debugLineNum = 604;BA.debugLine="cercavalor = 0"; +parent._cercavalor = BA.NumberToString(0); + //BA.debugLineNum = 605;BA.debugLine="l_version.Text = Application.VersionName"; +parent._l_version.setText(BA.ObjectToCharSequence(parent.__c.Application.getVersionName())); + //BA.debugLineNum = 606;BA.debugLine="b_preventa.left = (Root.Width / 2) - (b_preventa."; +parent._b_preventa.setLeft((int) ((parent._root.getWidth()/(double)2)-(parent._b_preventa.getWidth()/(double)2))); + //BA.debugLineNum = 621;BA.debugLine="If Subs.hayPedido Then 'Si hay pedido, deshabilit"; +if (true) break; + +case 13: +//if +this.state = 18; +if (parent._subs._haypedido /*boolean*/ (ba)) { +this.state = 15; +}else { +this.state = 17; +}if (true) break; + +case 15: +//C +this.state = 18; + //BA.debugLineNum = 622;BA.debugLine="Log(\">>>>> HAY PEDIDO\")"; +parent.__c.LogImpl("313828168",">>>>> HAY PEDIDO",0); + //BA.debugLineNum = 623;BA.debugLine="Tels.Enabled = False"; +parent._tels.setEnabled(parent.__c.False); + if (true) break; + +case 17: +//C +this.state = 18; + //BA.debugLineNum = 625;BA.debugLine="Tels.Enabled = True"; +parent._tels.setEnabled(parent.__c.True); + if (true) break; +; + //BA.debugLineNum = 628;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; + +case 18: +//if +this.state = 21; +if (parent.__c.Not(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { +this.state = 20; +}if (true) break; + +case 20: +//C +this.state = 21; + //BA.debugLineNum = 629;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),parent.__c.True); + //BA.debugLineNum = 630;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +parent.__c.StartActivity(ba,(Object)(parent._starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + if (true) break; + +case 21: +//C +this.state = 22; +; + //BA.debugLineNum = 632;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +parent._skmt.Initialize(parent._ruta,"kmt.db",parent.__c.True); + //BA.debugLineNum = 633;BA.debugLine="reqManager.Initialize(Me, Starter.server)"; +parent._reqmanager._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ ); + //BA.debugLineNum = 656;BA.debugLine="Dim fotomostrar1 As Cursor = Starter.skmt.ExecQue"; +_fotomostrar1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fotomostrar1 = (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 foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) AND foto IS NOT NULL"))); + //BA.debugLineNum = 657;BA.debugLine="If fotomostrar1.RowCount = 0 Then"; +if (true) break; + +case 22: +//if +this.state = 33; +if (_fotomostrar1.getRowCount()==0) { +this.state = 24; +}else { +this.state = 32; +}if (true) break; + +case 24: +//C +this.state = 25; + //BA.debugLineNum = 659;BA.debugLine="Dim fotomostrar As Cursor = Starter.skmt.ExecQue"; +_fotomostrar = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fotomostrar = (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 FOTO FROM FOTOS where CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 660;BA.debugLine="If fotomostrar.RowCount > 0 Then"; +if (true) break; + +case 25: +//if +this.state = 30; +if (_fotomostrar.getRowCount()>0) { +this.state = 27; +}else { +this.state = 29; +}if (true) break; + +case 27: +//C +this.state = 30; + //BA.debugLineNum = 662;BA.debugLine="fotomostrar.Position = 0"; +_fotomostrar.setPosition((int) (0)); + //BA.debugLineNum = 663;BA.debugLine="Private fotomostrarfinal() As Byte = fotomostra"; +_fotomostrarfinal = _fotomostrar.GetBlob("FOTO"); + //BA.debugLineNum = 664;BA.debugLine="Dim InputStream1 As InputStream"; +_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); + //BA.debugLineNum = 665;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomostr"; +_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length); + //BA.debugLineNum = 666;BA.debugLine="Dim Bitmap1 As Bitmap"; +_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 667;BA.debugLine="Bitmap1.Initialize2(InputStream1)"; +_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject())); + //BA.debugLineNum = 668;BA.debugLine="InputStream1.Close"; +_inputstream1.Close(); + //BA.debugLineNum = 669;BA.debugLine="ImageView4.Bitmap = Bitmap1"; +parent._imageview4.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject())); + //BA.debugLineNum = 670;BA.debugLine="Log(\"aqui si hay foto\")"; +parent.__c.LogImpl("313828216","aqui si hay foto",0); + if (true) break; + +case 29: +//C +this.state = 30; + //BA.debugLineNum = 672;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirAssets,\""; +parent._imageview4.setBitmap((android.graphics.Bitmap)(parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"images.png").getObject())); + //BA.debugLineNum = 673;BA.debugLine="Log(\"aqui no hay foto\")"; +parent.__c.LogImpl("313828219","aqui no hay foto",0); + if (true) break; + +case 30: +//C +this.state = 33; +; + if (true) break; + +case 32: +//C +this.state = 33; + //BA.debugLineNum = 677;BA.debugLine="fotomostrar1.Position = 0"; +_fotomostrar1.setPosition((int) (0)); + //BA.debugLineNum = 678;BA.debugLine="Private fotomostrarfinal() As Byte = fotomostrar"; +_fotomostrarfinal = _fotomostrar1.GetBlob("foto"); + //BA.debugLineNum = 679;BA.debugLine="Dim InputStream1 As InputStream"; +_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); + //BA.debugLineNum = 680;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomostra"; +_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length); + //BA.debugLineNum = 681;BA.debugLine="Dim Bitmap1 As Bitmap"; +_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 682;BA.debugLine="Bitmap1.Initialize2(InputStream1)"; +_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject())); + //BA.debugLineNum = 683;BA.debugLine="InputStream1.Close"; +_inputstream1.Close(); + //BA.debugLineNum = 684;BA.debugLine="ImageView4.Bitmap = Bitmap1"; +parent._imageview4.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject())); + //BA.debugLineNum = 685;BA.debugLine="Log(\"aqui si hay foto\")"; +parent.__c.LogImpl("313828231","aqui si hay foto",0); + if (true) break; + +case 33: +//C +this.state = 34; +; + //BA.debugLineNum = 693;BA.debugLine="l_tipocliente.Text = Subs.traeTipoCliente"; +parent._l_tipocliente.setText(BA.ObjectToCharSequence(parent._subs._traetipocliente /*int*/ (ba))); + //BA.debugLineNum = 694;BA.debugLine="p_camara.Width = Root.Width"; +parent._p_camara.setWidth(parent._root.getWidth()); + //BA.debugLineNum = 695;BA.debugLine="p_camara.Height = Root.Height"; +parent._p_camara.setHeight(parent._root.getHeight()); + //BA.debugLineNum = 696;BA.debugLine="S2=B4XPages.MainPage.skmt.ExecQuery(\"select count"; +parent._s2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) AS CUANTOS from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 697;BA.debugLine="S2.Position =0"; +parent._s2.setPosition((int) (0)); + //BA.debugLineNum = 698;BA.debugLine="CUANTOS = S2.GetString(\"CUANTOS\")"; +parent._cuantos = parent._s2.GetString("CUANTOS"); + //BA.debugLineNum = 699;BA.debugLine="S2.Close"; +parent._s2.Close(); + //BA.debugLineNum = 700;BA.debugLine="If CUANTOS > 0 Then"; +if (true) break; + +case 34: +//if +this.state = 39; +if ((double)(Double.parseDouble(parent._cuantos))>0) { +this.state = 36; +}else { +this.state = 38; +}if (true) break; + +case 36: +//C +this.state = 39; + //BA.debugLineNum = 701;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery(\"select sum("; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(HVD_COSTO_TOT) AS TOTAL from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 702;BA.debugLine="c2.Position =0"; +parent._c2.setPosition((int) (0)); + //BA.debugLineNum = 703;BA.debugLine="MONTO_COMPRA = c2.GetString(\"TOTAL\")"; +parent._monto_compra = parent._c2.GetString("TOTAL"); + //BA.debugLineNum = 704;BA.debugLine="c2.Close"; +parent._c2.Close(); + if (true) break; + +case 38: +//C +this.state = 39; + //BA.debugLineNum = 706;BA.debugLine="MONTO_COMPRA = \"0\""; +parent._monto_compra = "0"; + if (true) break; + +case 39: +//C +this.state = 40; +; + //BA.debugLineNum = 708;BA.debugLine="la_saldotot.Text = MONTO_COMPRA"; +parent._la_saldotot.setText(BA.ObjectToCharSequence(parent._monto_compra)); + //BA.debugLineNum = 709;BA.debugLine="If MONTO_COMPRA <> \"0\" Then"; +if (true) break; + +case 40: +//if +this.state = 45; +if ((parent._monto_compra).equals("0") == false) { +this.state = 42; +}else { +this.state = 44; +}if (true) break; + +case 42: +//C +this.state = 45; + //BA.debugLineNum = 710;BA.debugLine="META2 = 300 - MONTO_COMPRA"; +parent._meta2 = BA.NumberToString(300-(double)(Double.parseDouble(parent._monto_compra))); + if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 712;BA.debugLine="META2 = 300"; +parent._meta2 = BA.NumberToString(300); + if (true) break; +; + //BA.debugLineNum = 714;BA.debugLine="If META2 < 1 Then"; + +case 45: +//if +this.state = 48; +if ((double)(Double.parseDouble(parent._meta2))<1) { +this.state = 47; +}if (true) break; + +case 47: +//C +this.state = 48; + //BA.debugLineNum = 715;BA.debugLine="META2 = \"CUBIERTO\""; +parent._meta2 = "CUBIERTO"; + if (true) break; +; + //BA.debugLineNum = 717;BA.debugLine="If IsNumber(META2) Then META2 = NumberFormat2(MET"; + +case 48: +//if +this.state = 53; +if (parent.__c.IsNumber(parent._meta2)) { +this.state = 50; +;}if (true) break; + +case 50: +//C +this.state = 53; +parent._meta2 = parent.__c.NumberFormat2((double)(Double.parseDouble(parent._meta2)),(int) (0),(int) (2),(int) (2),parent.__c.True); +if (true) break; + +case 53: +//C +this.state = 54; +; + //BA.debugLineNum = 718;BA.debugLine="la_saldooper.Text = META2"; +parent._la_saldooper.setText(BA.ObjectToCharSequence(parent._meta2)); + //BA.debugLineNum = 719;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_ALM"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 720;BA.debugLine="If c.RowCount>0 Then"; +if (true) break; + +case 54: +//if +this.state = 57; +if (parent._c.getRowCount()>0) { +this.state = 56; +}if (true) break; + +case 56: +//C +this.state = 57; + //BA.debugLineNum = 721;BA.debugLine="C.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 722;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")"; +parent._almacen = parent._c.GetString("ID_ALMACEN"); + if (true) break; + +case 57: +//C +this.state = 58; +; + //BA.debugLineNum = 724;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 726;BA.debugLine="If ALMACEN = \"1\" Then"; +if (true) break; + +case 58: +//if +this.state = 61; +if ((parent._almacen).equals("1")) { +this.state = 60; +}if (true) break; + +case 60: +//C +this.state = 61; + //BA.debugLineNum = 727;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 728;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + //BA.debugLineNum = 729;BA.debugLine="B_GPS.Visible = False"; +parent._b_gps.setVisible(parent.__c.False); + if (true) break; +; + //BA.debugLineNum = 731;BA.debugLine="If ALMACEN = \"4\" Then"; + +case 61: +//if +this.state = 78; +if ((parent._almacen).equals("4")) { +this.state = 63; +}else { +this.state = 77; +}if (true) break; + +case 63: +//C +this.state = 64; + //BA.debugLineNum = 732;BA.debugLine="b_like.Visible = False"; +parent._b_like.setVisible(parent.__c.False); + //BA.debugLineNum = 733;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU"; +parent._dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?",new String[]{"KNORR RINDE MAS 70 GR"}))); + //BA.debugLineNum = 734;BA.debugLine="DD.Position =0"; +parent._dd.setPosition((int) (0)); + //BA.debugLineNum = 735;BA.debugLine="If DD.GetString(\"CUANTOS\") = 0 Then"; +if (true) break; + +case 64: +//if +this.state = 75; +if ((parent._dd.GetString("CUANTOS")).equals(BA.NumberToString(0))) { +this.state = 66; +}else { +this.state = 74; +}if (true) break; + +case 66: +//C +this.state = 67; + //BA.debugLineNum = 736;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COU"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_PRONOMBRE =?",new String[]{"KNORR RINDE MAS 70 GR"}))); + //BA.debugLineNum = 737;BA.debugLine="c.Position =0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 738;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; +if (true) break; + +case 67: +//if +this.state = 72; +if ((parent._c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { +this.state = 69; +}else { +this.state = 71; +}if (true) break; + +case 69: +//C +this.state = 72; + //BA.debugLineNum = 739;BA.debugLine="b_like.Visible = False"; +parent._b_like.setVisible(parent.__c.False); + if (true) break; + +case 71: +//C +this.state = 72; + //BA.debugLineNum = 741;BA.debugLine="b_like.Visible = False"; +parent._b_like.setVisible(parent.__c.False); + if (true) break; + +case 72: +//C +this.state = 75; +; + //BA.debugLineNum = 743;BA.debugLine="c.Close"; +parent._c.Close(); + if (true) break; + +case 74: +//C +this.state = 75; + //BA.debugLineNum = 745;BA.debugLine="b_like.Visible = False"; +parent._b_like.setVisible(parent.__c.False); + if (true) break; + +case 75: +//C +this.state = 78; +; + //BA.debugLineNum = 747;BA.debugLine="DD.Close"; +parent._dd.Close(); + if (true) break; + +case 77: +//C +this.state = 78; + //BA.debugLineNum = 749;BA.debugLine="b_like.Visible = False"; +parent._b_like.setVisible(parent.__c.False); + if (true) break; +; + //BA.debugLineNum = 751;BA.debugLine="If ALMACEN = \"16\" Or ALMACEN = \"13\" Then"; + +case 78: +//if +this.state = 81; +if ((parent._almacen).equals("16") || (parent._almacen).equals("13")) { +this.state = 80; +}if (true) break; + +case 80: +//C +this.state = 81; + //BA.debugLineNum = 752;BA.debugLine="Tels.Visible = True"; +parent._tels.setVisible(parent.__c.True); + //BA.debugLineNum = 753;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + if (true) break; + +case 81: +//C +this.state = 82; +; + //BA.debugLineNum = 755;BA.debugLine="c = skmt.ExecQuery(\"SELECT PC_CLIENTE FROM PEDID"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT PC_CLIENTE FROM PEDIDO_CLIENTE WHERE PC_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 756;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 82: +//if +this.state = 121; +if (parent._c.getRowCount()>0) { +this.state = 84; +}else if(parent._c.getRowCount()==0) { +this.state = 96; +}if (true) break; + +case 84: +//C +this.state = 85; + //BA.debugLineNum = 757;BA.debugLine="Tels.Visible = True"; +parent._tels.setVisible(parent.__c.True); + //BA.debugLineNum = 758;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + //BA.debugLineNum = 759;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Ex"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 760;BA.debugLine="If future.RowCount > 0 Then"; +if (true) break; + +case 85: +//if +this.state = 94; +if (_future.getRowCount()>0) { +this.state = 87; +}if (true) break; + +case 87: +//C +this.state = 88; + //BA.debugLineNum = 761;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 762;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (true) break; + +case 88: +//if +this.state = 93; +if (_future.GetInt("CAT_VA_VALOR")==1) { +this.state = 90; +}else if(_future.GetInt("CAT_VA_VALOR")==0) { +this.state = 92; +}if (true) break; + +case 90: +//C +this.state = 93; + //BA.debugLineNum = 763;BA.debugLine="b_preventa2.Visible = True"; +parent._b_preventa2.setVisible(parent.__c.True); + if (true) break; + +case 92: +//C +this.state = 93; + //BA.debugLineNum = 765;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + if (true) break; + +case 93: +//C +this.state = 94; +; + if (true) break; + +case 94: +//C +this.state = 121; +; + if (true) break; + +case 96: +//C +this.state = 97; + //BA.debugLineNum = 770;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 771;BA.debugLine="gest.Visible = False"; +parent._gest.setVisible(parent.__c.False); + //BA.debugLineNum = 773;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + //BA.debugLineNum = 775;BA.debugLine="c = skmt.ExecQuery(\"SELECT NV_CLIENTE FROM NOVEN"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA CLIENTE WHERE NV_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 776;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 97: +//if +this.state = 116; +if (parent._c.getRowCount()>0) { +this.state = 99; +}else if(parent._c.getRowCount()==0) { +this.state = 111; +}if (true) break; + +case 99: +//C +this.state = 100; + //BA.debugLineNum = 777;BA.debugLine="Tels.Visible = True"; +parent._tels.setVisible(parent.__c.True); + //BA.debugLineNum = 778;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + //BA.debugLineNum = 779;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.E"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 780;BA.debugLine="If future.RowCount > 0 Then"; +if (true) break; + +case 100: +//if +this.state = 109; +if (_future.getRowCount()>0) { +this.state = 102; +}if (true) break; + +case 102: +//C +this.state = 103; + //BA.debugLineNum = 781;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 782;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (true) break; + +case 103: +//if +this.state = 108; +if (_future.GetInt("CAT_VA_VALOR")==1) { +this.state = 105; +}else if(_future.GetInt("CAT_VA_VALOR")==0) { +this.state = 107; +}if (true) break; + +case 105: +//C +this.state = 108; + //BA.debugLineNum = 783;BA.debugLine="b_preventa2.Visible = True"; +parent._b_preventa2.setVisible(parent.__c.True); + if (true) break; + +case 107: +//C +this.state = 108; + //BA.debugLineNum = 785;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + if (true) break; + +case 108: +//C +this.state = 109; +; + if (true) break; + +case 109: +//C +this.state = 116; +; + if (true) break; + +case 111: +//C +this.state = 112; + //BA.debugLineNum = 789;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 790;BA.debugLine="gest.Visible = False"; +parent._gest.setVisible(parent.__c.False); + //BA.debugLineNum = 791;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + //BA.debugLineNum = 792;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +parent._la_geo.setTextColor(parent.__c.Colors.Red); + //BA.debugLineNum = 793;BA.debugLine="If ALMACEN = \"1\" Then"; +if (true) break; + +case 112: +//if +this.state = 115; +if ((parent._almacen).equals("1")) { +this.state = 114; +}if (true) break; + +case 114: +//C +this.state = 115; + //BA.debugLineNum = 794;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 795;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + if (true) break; + +case 115: +//C +this.state = 116; +; + if (true) break; + +case 116: +//C +this.state = 117; +; + //BA.debugLineNum = 798;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +parent._la_geo.setTextColor(parent.__c.Colors.Red); + //BA.debugLineNum = 799;BA.debugLine="If ALMACEN = \"1\" Then"; +if (true) break; + +case 117: +//if +this.state = 120; +if ((parent._almacen).equals("1")) { +this.state = 119; +}if (true) break; + +case 119: +//C +this.state = 120; + //BA.debugLineNum = 800;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 801;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + if (true) break; + +case 120: +//C +this.state = 121; +; + if (true) break; + +case 121: +//C +this.state = 122; +; + //BA.debugLineNum = 805;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")"; +parent.__c.CallSubDelayed(ba,(Object)(parent._tracker.getObject()),"StartFLPSmall"); + //BA.debugLineNum = 807;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized"; +if (true) break; + +case 122: +//if +this.state = 125; +if (parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { +this.state = 124; +}if (true) break; + +case 124: +//C +this.state = 125; + //BA.debugLineNum = 808;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ = BA.NumberToString(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()); + //BA.debugLineNum = 809;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ = BA.NumberToString(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()); + //BA.debugLineNum = 810;BA.debugLine="Log($\"Tenemos UUC: ${Tracker.FLP.GetLastKnownLoc"; +parent.__c.LogImpl("313828356",("Tenemos UUC: "+parent.__c.SmartStringFormatter("",(Object)(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()))+""),0); + //BA.debugLineNum = 811;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca"; +parent._gps_locationchanged(parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation()); + if (true) break; +; + //BA.debugLineNum = 813;BA.debugLine="If ALMACEN = \"1\" Or ALMACEN = \"2\" Or ALMACEN = \"4"; + +case 125: +//if +this.state = 142; +if ((parent._almacen).equals("1") || (parent._almacen).equals("2") || (parent._almacen).equals("4") || (parent._almacen).equals("5") || (parent._almacen).equals("25")) { +this.state = 127; +}else { +this.state = 141; +}if (true) break; + +case 127: +//C +this.state = 128; + //BA.debugLineNum = 814;BA.debugLine="DD=skmt.ExecQuery2(\"SELECT COUNT(*) AS CUANTOS F"; +parent._dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?",new String[]{"KNORR SUIZA GALLINA"}))); + //BA.debugLineNum = 815;BA.debugLine="DD.Position =0"; +parent._dd.setPosition((int) (0)); + //BA.debugLineNum = 816;BA.debugLine="If DD.GetString(\"CUANTOS\") = 0 Then"; +if (true) break; + +case 128: +//if +this.state = 139; +if ((parent._dd.GetString("CUANTOS")).equals(BA.NumberToString(0))) { +this.state = 130; +}else { +this.state = 138; +}if (true) break; + +case 130: +//C +this.state = 131; + //BA.debugLineNum = 817;BA.debugLine="c=skmt.ExecQuery2(\"SELECT COUNT(*) AS CUANTOS F"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_PRONOMBRE =?",new String[]{"KNORR SUIZA GALLINA"}))); + //BA.debugLineNum = 818;BA.debugLine="c.Position =0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 819;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; +if (true) break; + +case 131: +//if +this.state = 136; +if ((parent._c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { +this.state = 133; +}else { +this.state = 135; +}if (true) break; + +case 133: +//C +this.state = 136; + //BA.debugLineNum = 820;BA.debugLine="B_GALLINA.Visible = True"; +parent._b_gallina.setVisible(parent.__c.True); + if (true) break; + +case 135: +//C +this.state = 136; + //BA.debugLineNum = 822;BA.debugLine="B_GALLINA.Visible = False"; +parent._b_gallina.setVisible(parent.__c.False); + if (true) break; + +case 136: +//C +this.state = 139; +; + //BA.debugLineNum = 824;BA.debugLine="c.Close"; +parent._c.Close(); + if (true) break; + +case 138: +//C +this.state = 139; + //BA.debugLineNum = 826;BA.debugLine="B_GALLINA.Visible = False"; +parent._b_gallina.setVisible(parent.__c.False); + if (true) break; + +case 139: +//C +this.state = 142; +; + //BA.debugLineNum = 828;BA.debugLine="DD.Close"; +parent._dd.Close(); + if (true) break; + +case 141: +//C +this.state = 142; + //BA.debugLineNum = 830;BA.debugLine="B_GALLINA.Visible = False"; +parent._b_gallina.setVisible(parent.__c.False); + if (true) break; + +case 142: +//C +this.state = 143; +; + //BA.debugLineNum = 832;BA.debugLine="P_gallina.Visible = False"; +parent._p_gallina.setVisible(parent.__c.False); + //BA.debugLineNum = 833;BA.debugLine="B_GALLINA.Visible = False"; +parent._b_gallina.setVisible(parent.__c.False); + //BA.debugLineNum = 834;BA.debugLine="que_modulo = 1"; +parent._que_modulo = BA.NumberToString(1); + //BA.debugLineNum = 835;BA.debugLine="If ALMACEN = \"2\" Or ALMACEN = \"4\" Or ALMACEN = \""; +if (true) break; + +case 143: +//if +this.state = 148; +if ((parent._almacen).equals("2") || (parent._almacen).equals("4") || (parent._almacen).equals("5") || (parent._almacen).equals("4") || (parent._almacen).equals("53") || (parent._almacen).equals("64") || (parent._almacen).equals("25")) { +this.state = 145; +}else { +this.state = 147; +}if (true) break; + +case 145: +//C +this.state = 148; + //BA.debugLineNum = 836;BA.debugLine="b_like.Visible = True"; +parent._b_like.setVisible(parent.__c.True); + if (true) break; + +case 147: +//C +this.state = 148; + //BA.debugLineNum = 838;BA.debugLine="b_like.Visible = False"; +parent._b_like.setVisible(parent.__c.False); + if (true) break; + +case 148: +//C +this.state = 149; +; + //BA.debugLineNum = 840;BA.debugLine="c = skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"}))); + //BA.debugLineNum = 841;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 149: +//if +this.state = 152; +if (parent._c.getRowCount()>0) { +this.state = 151; +}if (true) break; + +case 151: +//C +this.state = 152; + //BA.debugLineNum = 842;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 843;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO"; +parent._starter._mac_impresora /*String*/ = parent._c.GetString("CAT_VA_VALOR"); + if (true) break; +; + //BA.debugLineNum = 845;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM"; + +case 152: +//if +this.state = 157; +if ((parent._starter._mac_impresora /*String*/ ).equals("")) { +this.state = 154; +;}if (true) break; + +case 154: +//C +this.state = 157; +parent._starter._mac_impresora /*String*/ = "0"; +if (true) break; + +case 157: +//C +this.state = 158; +; + //BA.debugLineNum = 847;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; +parent._printer1._initialize /*String*/ (ba,parent,"Printer1"); + //BA.debugLineNum = 849;BA.debugLine="If Printer1.IsConnected = False Then"; +if (true) break; + +case 158: +//if +this.state = 163; +if (parent._printer1._isconnected /*boolean*/ ()==parent.__c.False) { +this.state = 160; +}else { +this.state = 162; +}if (true) break; + +case 160: +//C +this.state = 163; + if (true) break; + +case 162: +//C +this.state = 163; + //BA.debugLineNum = 853;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 854;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 855;BA.debugLine="Log(\"2\")"; +parent.__c.LogImpl("313828401","2",0); + if (true) break; + +case 163: +//C +this.state = 164; +; + //BA.debugLineNum = 857;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADA FROM IMPRES"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT HABILITADA FROM IMPRESORA"))); + //BA.debugLineNum = 858;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 164: +//if +this.state = 175; +if (parent._c.getRowCount()>0) { +this.state = 166; +}else if(parent._c.getRowCount()==0) { +this.state = 174; +}if (true) break; + +case 166: +//C +this.state = 167; + //BA.debugLineNum = 859;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 860;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then"; +if (true) break; + +case 167: +//if +this.state = 172; +if ((parent._c.GetString("HABILITADA")).equals(BA.NumberToString(1))) { +this.state = 169; +}else if((parent._c.GetString("HABILITADA")).equals(BA.NumberToString(0))) { +this.state = 171; +}if (true) break; + +case 169: +//C +this.state = 172; + //BA.debugLineNum = 861;BA.debugLine="B_IMP.Visible = True"; +parent._b_imp.setVisible(parent.__c.True); + if (true) break; + +case 171: +//C +this.state = 172; + //BA.debugLineNum = 863;BA.debugLine="B_IMP.Visible = False"; +parent._b_imp.setVisible(parent.__c.False); + if (true) break; + +case 172: +//C +this.state = 175; +; + if (true) break; + +case 174: +//C +this.state = 175; + //BA.debugLineNum = 866;BA.debugLine="B_IMP.Visible = False"; +parent._b_imp.setVisible(parent.__c.False); + if (true) break; +; + //BA.debugLineNum = 872;BA.debugLine="If ALMACEN = 32 Then"; + +case 175: +//if +this.state = 201; +if ((parent._almacen).equals(BA.NumberToString(32))) { +this.state = 177; +}if (true) break; + +case 177: +//C +this.state = 178; + //BA.debugLineNum = 873;BA.debugLine="If Subs.traemontoprod And Subs.InvSuficienteProm"; +if (true) break; + +case 178: +//if +this.state = 187; +if (parent._subs._traemontoprod /*boolean*/ (ba) && parent._subs._invsuficientepromoesp /*boolean*/ (ba) && parent.__c.Not(parent._subs._vendidopromoesp /*boolean*/ (ba))) { +this.state = 180; +}else { +this.state = 186; +}if (true) break; + +case 180: +//C +this.state = 181; + //BA.debugLineNum = 874;BA.debugLine="Msgbox2Async(\"El cliente tiene derecho a una pr"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El cliente tiene derecho a una promo por la compra de mas de $120 en productos Helmanns, Maizena y/o Knorr"),BA.ObjectToCharSequence("Promo disponible"),"Aceptar","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 875;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 556; +return; +case 556: +//C +this.state = 181; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 876;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 181: +//if +this.state = 184; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 183; +}if (true) break; + +case 183: +//C +this.state = 184; + //BA.debugLineNum = 877;BA.debugLine="B4XPages.MainPage.productos.terminarpromoesp"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._terminarpromoesp /*String*/ (); + if (true) break; + +case 184: +//C +this.state = 187; +; + if (true) break; + +case 186: +//C +this.state = 187; + if (true) break; +; + //BA.debugLineNum = 881;BA.debugLine="If Not(Subs.traemontoprod) And Subs.vendidoPromo"; + +case 187: +//if +this.state = 200; +if (parent.__c.Not(parent._subs._traemontoprod /*boolean*/ (ba)) && parent._subs._vendidopromoesp /*boolean*/ (ba)) { +this.state = 189; +}else { +this.state = 199; +}if (true) break; + +case 189: +//C +this.state = 190; + //BA.debugLineNum = 882;BA.debugLine="Private j3 As Cursor"; +_j3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 883;BA.debugLine="Log(\"SI PROMO\")"; +parent.__c.LogImpl("313828429","SI PROMO",0); + //BA.debugLineNum = 884;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_PROID = ?)",new String[]{"PROUNI01"}))); + //BA.debugLineNum = 885;BA.debugLine="Log(j3.RowCount)"; +parent.__c.LogImpl("313828431",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 886;BA.debugLine="If j3.RowCount = 0 Then"; +if (true) break; + +case 190: +//if +this.state = 197; +if (_j3.getRowCount()==0) { +this.state = 192; +}if (true) break; + +case 192: +//C +this.state = 193; + //BA.debugLineNum = 887;BA.debugLine="Log(\"estoy aqui\")"; +parent.__c.LogImpl("313828433","estoy aqui",0); + //BA.debugLineNum = 888;BA.debugLine="For i = 0 To j3.RowCount -1"; +if (true) break; + +case 193: +//for +this.state = 196; +step266 = 1; +limit266 = (int) (_j3.getRowCount()-1); +_i = (int) (0) ; +this.state = 557; +if (true) break; + +case 557: +//C +this.state = 196; +if ((step266 > 0 && _i <= limit266) || (step266 < 0 && _i >= limit266)) this.state = 195; +if (true) break; + +case 558: +//C +this.state = 557; +_i = ((int)(0 + _i + step266)) ; +if (true) break; + +case 195: +//C +this.state = 558; + //BA.debugLineNum = 889;BA.debugLine="Log(\"aqui tronare?\")"; +parent.__c.LogImpl("313828435","aqui tronare?",0); + //BA.debugLineNum = 890;BA.debugLine="j3.Position = i"; +_j3.setPosition(_i); + //BA.debugLineNum = 891;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+parent.__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+parent.__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 892;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis in (select pe_cedis from pedido where pe_pronombre = ?) and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_j3.GetString("PE_PRONOMBRE")),(Object)(parent._tipo_venta)})); + if (true) break; +if (true) break; + +case 196: +//C +this.state = 197; +; + if (true) break; + +case 197: +//C +this.state = 200; +; + //BA.debugLineNum = 895;BA.debugLine="j3.Close"; +_j3.Close(); + if (true) break; + +case 199: +//C +this.state = 200; + if (true) break; + +case 200: +//C +this.state = 201; +; + if (true) break; +; + //BA.debugLineNum = 900;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then"; + +case 201: +//if +this.state = 321; +if ((parent._almacen).equals(BA.NumberToString(87)) || (parent._almacen).equals(BA.NumberToString(6))) { +this.state = 203; +}if (true) break; + +case 203: +//C +this.state = 204; + //BA.debugLineNum = 901;BA.debugLine="If Subs.traemontoprod And Subs.traeCliente <> \"0"; +if (true) break; + +case 204: +//if +this.state = 301; +if (parent._subs._traemontoprod /*boolean*/ (ba) && (parent._subs._traecliente /*String*/ (ba)).equals("0") == false) { +this.state = 206; +}else if(parent._subs._traemontoprod2 /*boolean*/ (ba) && (parent._subs._traecliente /*String*/ (ba)).equals("0") == false) { +this.state = 254; +}if (true) break; + +case 206: +//C +this.state = 207; + //BA.debugLineNum = 902;BA.debugLine="Msgbox2Async(\"El cliente tiene derecho a un des"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El cliente tiene derecho a un descuento de 150 pesos por la compra de mas de $500 en productos participantes"),BA.ObjectToCharSequence("Descuento disponible"),"Aceptar","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 903;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 559; +return; +case 559: +//C +this.state = 207; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 904;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 207: +//if +this.state = 252; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 209; +}if (true) break; + +case 209: +//C +this.state = 210; + //BA.debugLineNum = 905;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.E"; +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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS PIEZAS FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 906;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 210: +//if +this.state = 251; +if (parent._c.getRowCount()>0) { +this.state = 212; +}if (true) break; + +case 212: +//C +this.state = 213; + //BA.debugLineNum = 907;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 908;BA.debugLine="Private des As Float = NumberFormat2(150/c.Ge"; +_des = (float)(Double.parseDouble(parent.__c.NumberFormat2(150/(double)(double)(Double.parseDouble(parent._c.GetString("PIEZAS"))),(int) (0),(int) (2),(int) (2),parent.__c.False))); + //BA.debugLineNum = 909;BA.debugLine="Log( NumberFormat2(des,0,2,2,False))"; +parent.__c.LogImpl("313828455",parent.__c.NumberFormat2(_des,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 910;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt"; +parent._c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU < ?",new String[]{BA.NumberToString(_des)}))); + //BA.debugLineNum = 911;BA.debugLine="If c2.RowCount > 0 Then"; +if (true) break; + +case 213: +//if +this.state = 216; +if (parent._c2.getRowCount()>0) { +this.state = 215; +}if (true) break; + +case 215: +//C +this.state = 216; + //BA.debugLineNum = 912;BA.debugLine="c2.Position = 0"; +parent._c2.setPosition((int) (0)); + //BA.debugLineNum = 913;BA.debugLine="Log(c2.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828459",parent._c2.GetString("PE_CANT"),0); + if (true) break; + +case 216: +//C +this.state = 217; +; + //BA.debugLineNum = 915;BA.debugLine="Private c3 As Cursor = B4XPages.MainPage.skmt"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_des)}))); + //BA.debugLineNum = 916;BA.debugLine="If c3.RowCount > 0 Then"; +if (true) break; + +case 217: +//if +this.state = 250; +if (_c3.getRowCount()>0) { +this.state = 219; +}if (true) break; + +case 219: +//C +this.state = 220; + //BA.debugLineNum = 917;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 918;BA.debugLine="Log(c3.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828464",_c3.GetString("PE_CANT"),0); + //BA.debugLineNum = 919;BA.debugLine="Private rec As Float = (des * c2.GetString(\""; +_rec = (float) ((_des*(double)(Double.parseDouble(parent._c2.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c3.GetString("PE_CANT")))); + //BA.debugLineNum = 920;BA.debugLine="Log( NumberFormat2(rec,0,2,2,False))"; +parent.__c.LogImpl("313828466",parent.__c.NumberFormat2(_rec,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 921;BA.debugLine="Private cantres As Float = des + rec"; +_cantres = (float) (_des+_rec); + //BA.debugLineNum = 922;BA.debugLine="Log( NumberFormat2(cantres,0,2,2,False))"; +parent.__c.LogImpl("313828468",parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 923;BA.debugLine="Private c5 As Cursor = B4XPages.MainPage.skm"; +_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU > ? and PE_COSTOU < ?",new String[]{BA.NumberToString(_des),BA.NumberToString(_cantres)}))); + //BA.debugLineNum = 924;BA.debugLine="If c5.RowCount > 0 Then"; +if (true) break; + +case 220: +//if +this.state = 249; +if (_c5.getRowCount()>0) { +this.state = 222; +}if (true) break; + +case 222: +//C +this.state = 223; + //BA.debugLineNum = 925;BA.debugLine="c5.Position = 0"; +_c5.setPosition((int) (0)); + //BA.debugLineNum = 926;BA.debugLine="Log(c5.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828472",_c5.GetString("PE_CANT"),0); + //BA.debugLineNum = 927;BA.debugLine="If c5.GetString(\"PE_CANT\") = \"0\" Then"; +if (true) break; + +case 223: +//if +this.state = 248; +if ((_c5.GetString("PE_CANT")).equals("0")) { +this.state = 225; +}else { +this.state = 235; +}if (true) break; + +case 225: +//C +this.state = 226; + //BA.debugLineNum = 928;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.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)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False)}))); + //BA.debugLineNum = 929;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 226: +//if +this.state = 233; +if (_c4.getRowCount()>0) { +this.state = 228; +}if (true) break; + +case 228: +//C +this.state = 229; + //BA.debugLineNum = 930;BA.debugLine="For i = 0 To c4.RowCount -1"; +if (true) break; + +case 229: +//for +this.state = 232; +step307 = 1; +limit307 = (int) (_c4.getRowCount()-1); +_i = (int) (0) ; +this.state = 560; +if (true) break; + +case 560: +//C +this.state = 232; +if ((step307 > 0 && _i <= limit307) || (step307 < 0 && _i >= limit307)) this.state = 231; +if (true) break; + +case 561: +//C +this.state = 560; +_i = ((int)(0 + _i + step307)) ; +if (true) break; + +case 231: +//C +this.state = 561; + //BA.debugLineNum = 931;BA.debugLine="c4.Position = i"; +_c4.setPosition(_i); + //BA.debugLineNum = 932;BA.debugLine="Private recalculo As Float = c4.GetStrin"; +_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 933;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +parent.__c.LogImpl("313828479",BA.NumberToString(_recalculo),parent.__c.Colors.Blue); + //BA.debugLineNum = 934;BA.debugLine="Private recalculototal As Float = c4.Get"; +_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 936;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE"; +parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")})); + if (true) break; +if (true) break; + +case 232: +//C +this.state = 233; +; + if (true) break; + +case 233: +//C +this.state = 248; +; + //BA.debugLineNum = 939;BA.debugLine="c4.Close"; +_c4.Close(); + if (true) break; + +case 235: +//C +this.state = 236; + //BA.debugLineNum = 941;BA.debugLine="Private c6 As Cursor = B4XPages.MainPage.s"; +_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_cantres)}))); + //BA.debugLineNum = 942;BA.debugLine="If c6.RowCount > 0 Then"; +if (true) break; + +case 236: +//if +this.state = 247; +if (_c6.getRowCount()>0) { +this.state = 238; +}if (true) break; + +case 238: +//C +this.state = 239; + //BA.debugLineNum = 943;BA.debugLine="c6.Position = 0"; +_c6.setPosition((int) (0)); + //BA.debugLineNum = 944;BA.debugLine="Log(c6.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828490",_c6.GetString("PE_CANT"),0); + //BA.debugLineNum = 945;BA.debugLine="Private rec1 As Float = (cantres * c5.Get"; +_rec1 = (float) ((_cantres*(double)(Double.parseDouble(_c5.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c6.GetString("PE_CANT")))); + //BA.debugLineNum = 946;BA.debugLine="Log( NumberFormat2(rec1,0,2,2,False))"; +parent.__c.LogImpl("313828492",parent.__c.NumberFormat2(_rec1,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 947;BA.debugLine="Private cantres1 As Float = cantres + rec"; +_cantres1 = (float) (_cantres+_rec1); + //BA.debugLineNum = 948;BA.debugLine="Log( NumberFormat2(cantres1,0,2,2,False))"; +parent.__c.LogImpl("313828494",parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 949;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage."; +_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)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False)}))); + //BA.debugLineNum = 950;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 239: +//if +this.state = 246; +if (_c4.getRowCount()>0) { +this.state = 241; +}if (true) break; + +case 241: +//C +this.state = 242; + //BA.debugLineNum = 951;BA.debugLine="For i = 0 To c4.RowCount -1"; +if (true) break; + +case 242: +//for +this.state = 245; +step327 = 1; +limit327 = (int) (_c4.getRowCount()-1); +_i = (int) (0) ; +this.state = 562; +if (true) break; + +case 562: +//C +this.state = 245; +if ((step327 > 0 && _i <= limit327) || (step327 < 0 && _i >= limit327)) this.state = 244; +if (true) break; + +case 563: +//C +this.state = 562; +_i = ((int)(0 + _i + step327)) ; +if (true) break; + +case 244: +//C +this.state = 563; + //BA.debugLineNum = 952;BA.debugLine="c4.Position = i"; +_c4.setPosition(_i); + //BA.debugLineNum = 953;BA.debugLine="Private recalculo As Float = c4.GetStri"; +_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 954;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +parent.__c.LogImpl("313828500",BA.NumberToString(_recalculo),parent.__c.Colors.Blue); + //BA.debugLineNum = 955;BA.debugLine="Private recalculototal As Float = c4.Ge"; +_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 957;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set P"; +parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")})); + if (true) break; +if (true) break; + +case 245: +//C +this.state = 246; +; + if (true) break; + +case 246: +//C +this.state = 247; +; + //BA.debugLineNum = 960;BA.debugLine="c4.Close"; +_c4.Close(); + if (true) break; + +case 247: +//C +this.state = 248; +; + if (true) break; + +case 248: +//C +this.state = 249; +; + if (true) break; + +case 249: +//C +this.state = 250; +; + if (true) break; + +case 250: +//C +this.state = 251; +; + if (true) break; + +case 251: +//C +this.state = 252; +; + if (true) break; + +case 252: +//C +this.state = 301; +; + //BA.debugLineNum = 967;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 968;BA.debugLine="c2.Close"; +parent._c2.Close(); + //BA.debugLineNum = 969;BA.debugLine="c3.Close"; +_c3.Close(); + if (true) break; + +case 254: +//C +this.state = 255; + //BA.debugLineNum = 971;BA.debugLine="Msgbox2Async(\"El cliente tiene derecho a un des"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El cliente tiene derecho a un descuento de 70 pesos por la compra de mas de $350 en productos participantes"),BA.ObjectToCharSequence("Descuento disponible"),"Aceptar","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 972;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 564; +return; +case 564: +//C +this.state = 255; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 973;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 255: +//if +this.state = 300; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 257; +}if (true) break; + +case 257: +//C +this.state = 258; + //BA.debugLineNum = 974;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.E"; +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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS PIEZAS FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 975;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 258: +//if +this.state = 299; +if (parent._c.getRowCount()>0) { +this.state = 260; +}if (true) break; + +case 260: +//C +this.state = 261; + //BA.debugLineNum = 976;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 977;BA.debugLine="Private des As Float = NumberFormat2(70/c.Get"; +_des = (float)(Double.parseDouble(parent.__c.NumberFormat2(70/(double)(double)(Double.parseDouble(parent._c.GetString("PIEZAS"))),(int) (0),(int) (5),(int) (5),parent.__c.False))); + //BA.debugLineNum = 978;BA.debugLine="Log(des)"; +parent.__c.LogImpl("313828524",BA.NumberToString(_des),0); + //BA.debugLineNum = 979;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt"; +parent._c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU < ?",new String[]{BA.NumberToString(_des)}))); + //BA.debugLineNum = 980;BA.debugLine="If c2.RowCount > 0 Then"; +if (true) break; + +case 261: +//if +this.state = 264; +if (parent._c2.getRowCount()>0) { +this.state = 263; +}if (true) break; + +case 263: +//C +this.state = 264; + //BA.debugLineNum = 981;BA.debugLine="c2.Position = 0"; +parent._c2.setPosition((int) (0)); + //BA.debugLineNum = 982;BA.debugLine="Log(c2.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828528",parent._c2.GetString("PE_CANT"),0); + if (true) break; + +case 264: +//C +this.state = 265; +; + //BA.debugLineNum = 984;BA.debugLine="Private c3 As Cursor = B4XPages.MainPage.skmt"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_des)}))); + //BA.debugLineNum = 985;BA.debugLine="If c3.RowCount > 0 Then"; +if (true) break; + +case 265: +//if +this.state = 298; +if (_c3.getRowCount()>0) { +this.state = 267; +}if (true) break; + +case 267: +//C +this.state = 268; + //BA.debugLineNum = 986;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 987;BA.debugLine="Log(c3.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828533",_c3.GetString("PE_CANT"),0); + //BA.debugLineNum = 988;BA.debugLine="Private rec As Float = (des * c2.GetString(\""; +_rec = (float) ((_des*(double)(Double.parseDouble(parent._c2.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c3.GetString("PE_CANT")))); + //BA.debugLineNum = 989;BA.debugLine="Log( NumberFormat2(rec,0,2,2,False))"; +parent.__c.LogImpl("313828535",parent.__c.NumberFormat2(_rec,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 990;BA.debugLine="Private cantres As Float = des + rec"; +_cantres = (float) (_des+_rec); + //BA.debugLineNum = 991;BA.debugLine="Log( NumberFormat2(cantres,0,2,2,False))"; +parent.__c.LogImpl("313828537",parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 992;BA.debugLine="Private c5 As Cursor = B4XPages.MainPage.skm"; +_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU > ? and PE_COSTOU < ?",new String[]{BA.NumberToString(_des),BA.NumberToString(_cantres)}))); + //BA.debugLineNum = 993;BA.debugLine="If c5.RowCount > 0 Then"; +if (true) break; + +case 268: +//if +this.state = 297; +if (_c5.getRowCount()>0) { +this.state = 270; +}if (true) break; + +case 270: +//C +this.state = 271; + //BA.debugLineNum = 994;BA.debugLine="c5.Position = 0"; +_c5.setPosition((int) (0)); + //BA.debugLineNum = 995;BA.debugLine="Log(c5.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828541",_c5.GetString("PE_CANT"),0); + //BA.debugLineNum = 996;BA.debugLine="If c5.GetString(\"PE_CANT\") = \"0\" Then"; +if (true) break; + +case 271: +//if +this.state = 296; +if ((_c5.GetString("PE_CANT")).equals("0")) { +this.state = 273; +}else { +this.state = 283; +}if (true) break; + +case 273: +//C +this.state = 274; + //BA.debugLineNum = 997;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.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)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False)}))); + //BA.debugLineNum = 998;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 274: +//if +this.state = 281; +if (_c4.getRowCount()>0) { +this.state = 276; +}if (true) break; + +case 276: +//C +this.state = 277; + //BA.debugLineNum = 999;BA.debugLine="For i = 0 To c4.RowCount -1"; +if (true) break; + +case 277: +//for +this.state = 280; +step374 = 1; +limit374 = (int) (_c4.getRowCount()-1); +_i = (int) (0) ; +this.state = 565; +if (true) break; + +case 565: +//C +this.state = 280; +if ((step374 > 0 && _i <= limit374) || (step374 < 0 && _i >= limit374)) this.state = 279; +if (true) break; + +case 566: +//C +this.state = 565; +_i = ((int)(0 + _i + step374)) ; +if (true) break; + +case 279: +//C +this.state = 566; + //BA.debugLineNum = 1000;BA.debugLine="c4.Position = i"; +_c4.setPosition(_i); + //BA.debugLineNum = 1001;BA.debugLine="Private recalculo As Float = c4.GetStrin"; +_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 1002;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +parent.__c.LogImpl("313828548",BA.NumberToString(_recalculo),parent.__c.Colors.Blue); + //BA.debugLineNum = 1003;BA.debugLine="Private recalculototal As Float = c4.Get"; +_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 1004;BA.debugLine="Log(recalculo&\"|||||\"&recalculototal&\"||"; +parent.__c.LogImpl("313828550",BA.NumberToString(_recalculo)+"|||||"+BA.NumberToString(_recalculototal)+"|||||||||||||||||||"+_c4.GetString("PE_PROID"),0); + //BA.debugLineNum = 1005;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE"; +parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")})); + if (true) break; +if (true) break; + +case 280: +//C +this.state = 281; +; + if (true) break; + +case 281: +//C +this.state = 296; +; + //BA.debugLineNum = 1008;BA.debugLine="c4.Close"; +_c4.Close(); + if (true) break; + +case 283: +//C +this.state = 284; + //BA.debugLineNum = 1010;BA.debugLine="Private c6 As Cursor = B4XPages.MainPage.s"; +_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(PE_CANT) AS PE_CANT FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{BA.NumberToString(_cantres)}))); + //BA.debugLineNum = 1011;BA.debugLine="If c6.RowCount > 0 Then"; +if (true) break; + +case 284: +//if +this.state = 295; +if (_c6.getRowCount()>0) { +this.state = 286; +}if (true) break; + +case 286: +//C +this.state = 287; + //BA.debugLineNum = 1012;BA.debugLine="c6.Position = 0"; +_c6.setPosition((int) (0)); + //BA.debugLineNum = 1013;BA.debugLine="Log(c6.GetString(\"PE_CANT\"))"; +parent.__c.LogImpl("313828559",_c6.GetString("PE_CANT"),0); + //BA.debugLineNum = 1014;BA.debugLine="Private rec1 As Float = (cantres * c5.Get"; +_rec1 = (float) ((_cantres*(double)(Double.parseDouble(_c5.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_c6.GetString("PE_CANT")))); + //BA.debugLineNum = 1015;BA.debugLine="Log( NumberFormat2(rec1,0,2,2,False))"; +parent.__c.LogImpl("313828561",parent.__c.NumberFormat2(_rec1,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 1016;BA.debugLine="Private cantres1 As Float = cantres + rec"; +_cantres1 = (float) (_cantres+_rec1); + //BA.debugLineNum = 1017;BA.debugLine="Log( NumberFormat2(cantres1,0,2,2,False))"; +parent.__c.LogImpl("313828563",parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 1018;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage."; +_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)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_COSTOU >= ?",new String[]{parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False)}))); + //BA.debugLineNum = 1019;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 287: +//if +this.state = 294; +if (_c4.getRowCount()>0) { +this.state = 289; +}if (true) break; + +case 289: +//C +this.state = 290; + //BA.debugLineNum = 1020;BA.debugLine="For i = 0 To c4.RowCount -1"; +if (true) break; + +case 290: +//for +this.state = 293; +step395 = 1; +limit395 = (int) (_c4.getRowCount()-1); +_i = (int) (0) ; +this.state = 567; +if (true) break; + +case 567: +//C +this.state = 293; +if ((step395 > 0 && _i <= limit395) || (step395 < 0 && _i >= limit395)) this.state = 292; +if (true) break; + +case 568: +//C +this.state = 567; +_i = ((int)(0 + _i + step395)) ; +if (true) break; + +case 292: +//C +this.state = 568; + //BA.debugLineNum = 1021;BA.debugLine="c4.Position = i"; +_c4.setPosition(_i); + //BA.debugLineNum = 1022;BA.debugLine="Private recalculo As Float = c4.GetStri"; +_recalculo = (float) ((double)(Double.parseDouble(_c4.GetString("PE_COSTOU")))-(double)(Double.parseDouble(parent.__c.NumberFormat2(_cantres1,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 1023;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +parent.__c.LogImpl("313828569",BA.NumberToString(_recalculo),parent.__c.Colors.Blue); + //BA.debugLineNum = 1024;BA.debugLine="Private recalculototal As Float = c4.Ge"; +_recalculototal = (float) ((double)(Double.parseDouble(_c4.GetString("PE_CANT")))*(double)(Double.parseDouble(parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False)))); + //BA.debugLineNum = 1026;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set P"; +parent._skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent.__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),parent.__c.False),parent.__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),parent.__c.False),_c4.GetString("PE_PROID")})); + if (true) break; +if (true) break; + +case 293: +//C +this.state = 294; +; + if (true) break; + +case 294: +//C +this.state = 295; +; + //BA.debugLineNum = 1029;BA.debugLine="c4.Close"; +_c4.Close(); + if (true) break; + +case 295: +//C +this.state = 296; +; + if (true) break; + +case 296: +//C +this.state = 297; +; + if (true) break; + +case 297: +//C +this.state = 298; +; + if (true) break; + +case 298: +//C +this.state = 299; +; + if (true) break; + +case 299: +//C +this.state = 300; +; + if (true) break; + +case 300: +//C +this.state = 301; +; + //BA.debugLineNum = 1036;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1037;BA.debugLine="c2.Close"; +parent._c2.Close(); + //BA.debugLineNum = 1038;BA.debugLine="c3.Close"; +_c3.Close(); + if (true) break; +; + //BA.debugLineNum = 1040;BA.debugLine="If Not(Subs.traemontoprod) Then"; + +case 301: +//if +this.state = 320; +if (parent.__c.Not(parent._subs._traemontoprod /*boolean*/ (ba))) { +this.state = 303; +}else { +this.state = 319; +}if (true) break; + +case 303: +//C +this.state = 304; + //BA.debugLineNum = 1041;BA.debugLine="If Not(Subs.traemontoprod2) Then"; +if (true) break; + +case 304: +//if +this.state = 317; +if (parent.__c.Not(parent._subs._traemontoprod2 /*boolean*/ (ba))) { +this.state = 306; +}else { +this.state = 316; +}if (true) break; + +case 306: +//C +this.state = 307; + //BA.debugLineNum = 1042;BA.debugLine="Private c4 As Cursor = B4XPages.MainPage.skmt."; +_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)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND (PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"null"}))); + //BA.debugLineNum = 1043;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 307: +//if +this.state = 314; +if (_c4.getRowCount()>0) { +this.state = 309; +}if (true) break; + +case 309: +//C +this.state = 310; + //BA.debugLineNum = 1044;BA.debugLine="For i = 0 To c4.RowCount -1"; +if (true) break; + +case 310: +//for +this.state = 313; +step418 = 1; +limit418 = (int) (_c4.getRowCount()-1); +_i = (int) (0) ; +this.state = 569; +if (true) break; + +case 569: +//C +this.state = 313; +if ((step418 > 0 && _i <= limit418) || (step418 < 0 && _i >= limit418)) this.state = 312; +if (true) break; + +case 570: +//C +this.state = 569; +_i = ((int)(0 + _i + step418)) ; +if (true) break; + +case 312: +//C +this.state = 570; + //BA.debugLineNum = 1045;BA.debugLine="c4.Position = i"; +_c4.setPosition(_i); + //BA.debugLineNum = 1049;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ? WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"","",_c4.GetString("PE_PROID")})); + if (true) break; +if (true) break; + +case 313: +//C +this.state = 314; +; + if (true) break; + +case 314: +//C +this.state = 317; +; + if (true) break; + +case 316: +//C +this.state = 317; + if (true) break; + +case 317: +//C +this.state = 320; +; + if (true) break; + +case 319: +//C +this.state = 320; + if (true) break; + +case 320: +//C +this.state = 321; +; + if (true) break; + +case 321: +//C +this.state = 322; +; + //BA.debugLineNum = 1060;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.ExecQ"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{"","null"}))); + //BA.debugLineNum = 1062;BA.debugLine="If s3.RowCount > 0 Then"; +if (true) break; + +case 322: +//if +this.state = 419; +if (_s3.getRowCount()>0) { +this.state = 324; +}else if(_s3.getRowCount()==0) { +this.state = 372; +}if (true) break; + +case 324: +//C +this.state = 325; + //BA.debugLineNum = 1064;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1065;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select iFNU"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 1066;BA.debugLine="s.Position=0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 1067;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Ex"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 1068;BA.debugLine="s5.Position = 0"; +_s5.setPosition((int) (0)); + //BA.debugLineNum = 1069;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 325: +//if +this.state = 370; +if (parent._c.getRowCount()>0) { +this.state = 327; +}if (true) break; + +case 327: +//C +this.state = 328; + //BA.debugLineNum = 1070;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1071;BA.debugLine="Log(\">>>>>> \" & c.GetString(\"CAT_CL_CODIGO\"))"; +parent.__c.LogImpl("313828617",">>>>>> "+parent._c.GetString("CAT_CL_CODIGO"),0); + //BA.debugLineNum = 1072;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; +parent._la_cuenta.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 1073;BA.debugLine="la_cuenta_gallina.Text = c.GetString(\"CAT_CL_CO"; +parent._la_cuenta_gallina.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 1074;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; +parent._la_nombre.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE"))); + //BA.debugLineNum = 1075;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & \""; +parent._la_calle.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE")+" "+parent._c.GetString("CAT_CL_NOEXT"))); + //BA.debugLineNum = 1076;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; +parent._la_col.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_COLONIA"))); + //BA.debugLineNum = 1077;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; +parent._la_edo.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_EDO"))); + //BA.debugLineNum = 1078;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; +parent._l_entre1.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE1"))); + //BA.debugLineNum = 1079;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; +parent._l_entre2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE2"))); + //BA.debugLineNum = 1080;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; +parent._l_atiende.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENDE1"))); + //BA.debugLineNum = 1081;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\""; +parent._l_atiende2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENTE2"))); + //BA.debugLineNum = 1082;BA.debugLine="telefono = c.GetString(\"CAT_CL_TELEFONO\")"; +parent._telefono = parent._c.GetString("CAT_CL_TELEFONO"); + //BA.debugLineNum = 1083;BA.debugLine="Label19.Text = c.GetString(\"CAT_CL_TELEFONO\")"; +parent._label19.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_TELEFONO"))); + //BA.debugLineNum = 1084;BA.debugLine="BCREDITO = c.GetString(\"CAT_CL_BCREDITO\") '####"; +parent._bcredito = parent._c.GetString("CAT_CL_BCREDITO"); + //BA.debugLineNum = 1086;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then"; +if (true) break; + +case 328: +//if +this.state = 333; +if (parent._s.GetString("TOTAL_CLIE")== null) { +this.state = 330; +}else { +this.state = 332; +}if (true) break; + +case 330: +//C +this.state = 333; + //BA.debugLineNum = 1087;BA.debugLine="l_total.Text = 0"; +parent._l_total.setText(BA.ObjectToCharSequence(0)); + if (true) break; + +case 332: +//C +this.state = 333; + //BA.debugLineNum = 1089;BA.debugLine="l_total.Text =NumberFormat2((s.GetString(\"TOTA"; +parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))),(int) (0),(int) (2),(int) (2),parent.__c.False))); + if (true) break; + +case 333: +//C +this.state = 334; +; + //BA.debugLineNum = 1091;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\") + s5."; +parent._total_cliente = BA.NumberToString((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))); + //BA.debugLineNum = 1092;BA.debugLine="m_lat = \"0\""; +parent._m_lat = "0"; + //BA.debugLineNum = 1093;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat ="; +if (true) break; + +case 334: +//if +this.state = 339; +if ((parent._c.GetString("CAT_CL_LAT")).equals("") == false) { +this.state = 336; +;}if (true) break; + +case 336: +//C +this.state = 339; +parent._m_lat = parent._c.GetString("CAT_CL_LAT"); +if (true) break; + +case 339: +//C +this.state = 340; +; + //BA.debugLineNum = 1094;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\""; +if (true) break; + +case 340: +//if +this.state = 345; +if (parent._m_lat.length()<5) { +this.state = 342; +;}if (true) break; + +case 342: +//C +this.state = 345; +parent._m_lat = "0"; +if (true) break; + +case 345: +//C +this.state = 346; +; + //BA.debugLineNum = 1095;BA.debugLine="m_lon = \"0\""; +parent._m_lon = "0"; + //BA.debugLineNum = 1096;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon"; +if (true) break; + +case 346: +//if +this.state = 351; +if ((parent._c.GetString("CAT_CL_LONG")).equals("") == false) { +this.state = 348; +;}if (true) break; + +case 348: +//C +this.state = 351; +parent._m_lon = parent._c.GetString("CAT_CL_LONG"); +if (true) break; + +case 351: +//C +this.state = 352; +; + //BA.debugLineNum = 1097;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\""; +if (true) break; + +case 352: +//if +this.state = 357; +if (parent._m_lon.length()<5) { +this.state = 354; +;}if (true) break; + +case 354: +//C +this.state = 357; +parent._m_lon = "0"; +if (true) break; + +case 357: +//C +this.state = 358; +; + //BA.debugLineNum = 1098;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")"; +parent._la_ruta = parent._c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 1100;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\""; +if (true) break; + +case 358: +//if +this.state = 369; +if ((parent._c.GetString("CAT_CL_NUM_SERIEFISICO")).equals("0")) { +this.state = 360; +}else { +this.state = 368; +}if (true) break; + +case 360: +//C +this.state = 361; + //BA.debugLineNum = 1101;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\""; +parent._l_qr.setText(BA.ObjectToCharSequence("SIN CODIGO")); + //BA.debugLineNum = 1102;BA.debugLine="L_QR.TextColor = Colors.Red"; +parent._l_qr.setTextColor(parent.__c.Colors.Red); + //BA.debugLineNum = 1103;BA.debugLine="If ALMACEN <> \"32\" And ALMACEN <> \"33\" And ALM"; +if (true) break; + +case 361: +//if +this.state = 366; +if ((parent._almacen).equals("32") == false && (parent._almacen).equals("33") == false && (parent._almacen).equals(BA.NumberToString(6)) == false) { +this.state = 363; +;}if (true) break; + +case 363: +//C +this.state = 366; +parent._gest.setVisible(parent.__c.True && parent._tels.getVisible()==parent.__c.True); +if (true) break; + +case 366: +//C +this.state = 369; +; + //BA.debugLineNum = 1104;BA.debugLine="BT_QR.Visible = True"; +parent._bt_qr.setVisible(parent.__c.True); + if (true) break; + +case 368: +//C +this.state = 369; + //BA.debugLineNum = 1106;BA.debugLine="L_QR.TEXT = c.GetString(\"CAT_CL_NUM_SERIEFISIC"; +parent._l_qr.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NUM_SERIEFISICO"))); + //BA.debugLineNum = 1107;BA.debugLine="L_QR.TextColor = Colors.Blue"; +parent._l_qr.setTextColor(parent.__c.Colors.Blue); + //BA.debugLineNum = 1108;BA.debugLine="BT_QR.Visible = False"; +parent._bt_qr.setVisible(parent.__c.False); + if (true) break; + +case 369: +//C +this.state = 370; +; + if (true) break; + +case 370: +//C +this.state = 419; +; + //BA.debugLineNum = 1111;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1112;BA.debugLine="s.Close"; +parent._s.Close(); + if (true) break; + +case 372: +//C +this.state = 373; + //BA.debugLineNum = 1115;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1116;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 1117;BA.debugLine="s.Position=0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 1118;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 373: +//if +this.state = 418; +if (parent._c.getRowCount()>0) { +this.state = 375; +}if (true) break; + +case 375: +//C +this.state = 376; + //BA.debugLineNum = 1119;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1120;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; +parent._la_cuenta.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 1121;BA.debugLine="la_cuenta_gallina.Text = c.GetString(\"CAT_CL_CO"; +parent._la_cuenta_gallina.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 1122;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; +parent._la_nombre.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE"))); + //BA.debugLineNum = 1123;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & \""; +parent._la_calle.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE")+" "+parent._c.GetString("CAT_CL_NOEXT"))); + //BA.debugLineNum = 1124;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; +parent._la_col.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_COLONIA"))); + //BA.debugLineNum = 1125;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; +parent._la_edo.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_EDO"))); + //BA.debugLineNum = 1126;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; +parent._l_entre1.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE1"))); + //BA.debugLineNum = 1127;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; +parent._l_entre2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE2"))); + //BA.debugLineNum = 1128;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; +parent._l_atiende.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENDE1"))); + //BA.debugLineNum = 1129;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\""; +parent._l_atiende2.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_ATIENTE2"))); + //BA.debugLineNum = 1130;BA.debugLine="telefono = c.GetString(\"CAT_CL_TELEFONO\")"; +parent._telefono = parent._c.GetString("CAT_CL_TELEFONO"); + //BA.debugLineNum = 1131;BA.debugLine="Label19.Text = c.GetString(\"CAT_CL_TELEFONO\")"; +parent._label19.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_TELEFONO"))); + //BA.debugLineNum = 1132;BA.debugLine="BCREDITO = c.GetString(\"CAT_CL_BCREDITO\") '###"; +parent._bcredito = parent._c.GetString("CAT_CL_BCREDITO"); + //BA.debugLineNum = 1135;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then"; +if (true) break; + +case 376: +//if +this.state = 381; +if (parent._s.GetString("TOTAL_CLIE")== null) { +this.state = 378; +}else { +this.state = 380; +}if (true) break; + +case 378: +//C +this.state = 381; + //BA.debugLineNum = 1136;BA.debugLine="l_total.Text = 0"; +parent._l_total.setText(BA.ObjectToCharSequence(0)); + if (true) break; + +case 380: +//C +this.state = 381; + //BA.debugLineNum = 1138;BA.debugLine="l_total.Text =NumberFormat2(s.GetString(\"TOTAL"; +parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE"))),(int) (0),(int) (2),(int) (2),parent.__c.False))); + if (true) break; + +case 381: +//C +this.state = 382; +; + //BA.debugLineNum = 1140;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")"; +parent._total_cliente = parent._s.GetString("TOTAL_CLIE"); + //BA.debugLineNum = 1141;BA.debugLine="m_lat = \"0\""; +parent._m_lat = "0"; + //BA.debugLineNum = 1142;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then m_lat ="; +if (true) break; + +case 382: +//if +this.state = 387; +if ((parent._c.GetString("CAT_CL_LAT")).equals("") == false) { +this.state = 384; +;}if (true) break; + +case 384: +//C +this.state = 387; +parent._m_lat = parent._c.GetString("CAT_CL_LAT"); +if (true) break; + +case 387: +//C +this.state = 388; +; + //BA.debugLineNum = 1143;BA.debugLine="If m_lat.Length < 5 Then m_lat = \"0\""; +if (true) break; + +case 388: +//if +this.state = 393; +if (parent._m_lat.length()<5) { +this.state = 390; +;}if (true) break; + +case 390: +//C +this.state = 393; +parent._m_lat = "0"; +if (true) break; + +case 393: +//C +this.state = 394; +; + //BA.debugLineNum = 1144;BA.debugLine="m_lon = \"0\""; +parent._m_lon = "0"; + //BA.debugLineNum = 1145;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then m_lon"; +if (true) break; + +case 394: +//if +this.state = 399; +if ((parent._c.GetString("CAT_CL_LONG")).equals("") == false) { +this.state = 396; +;}if (true) break; + +case 396: +//C +this.state = 399; +parent._m_lon = parent._c.GetString("CAT_CL_LONG"); +if (true) break; + +case 399: +//C +this.state = 400; +; + //BA.debugLineNum = 1146;BA.debugLine="If m_lon.Length < 5 Then m_lon = \"0\""; +if (true) break; + +case 400: +//if +this.state = 405; +if (parent._m_lon.length()<5) { +this.state = 402; +;}if (true) break; + +case 402: +//C +this.state = 405; +parent._m_lon = "0"; +if (true) break; + +case 405: +//C +this.state = 406; +; + //BA.debugLineNum = 1147;BA.debugLine="LA_RUTA = c.GetString(\"CAT_CL_RUTA\")"; +parent._la_ruta = parent._c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 1149;BA.debugLine="If c.GetString(\"CAT_CL_NUM_SERIEFISICO\") = \"0\""; +if (true) break; + +case 406: +//if +this.state = 417; +if ((parent._c.GetString("CAT_CL_NUM_SERIEFISICO")).equals("0")) { +this.state = 408; +}else { +this.state = 416; +}if (true) break; + +case 408: +//C +this.state = 409; + //BA.debugLineNum = 1150;BA.debugLine="L_QR.TEXT = \"SIN CODIGO\""; +parent._l_qr.setText(BA.ObjectToCharSequence("SIN CODIGO")); + //BA.debugLineNum = 1151;BA.debugLine="L_QR.TextColor = Colors.Red"; +parent._l_qr.setTextColor(parent.__c.Colors.Red); + //BA.debugLineNum = 1152;BA.debugLine="If ALMACEN <> \"32\" And ALMACEN <> \"33\" And ALM"; +if (true) break; + +case 409: +//if +this.state = 414; +if ((parent._almacen).equals("32") == false && (parent._almacen).equals("33") == false && (parent._almacen).equals(BA.NumberToString(6)) == false) { +this.state = 411; +;}if (true) break; + +case 411: +//C +this.state = 414; +parent._gest.setVisible(parent.__c.True && parent._tels.getVisible()==parent.__c.True); +if (true) break; + +case 414: +//C +this.state = 417; +; + //BA.debugLineNum = 1153;BA.debugLine="BT_QR.Visible = True"; +parent._bt_qr.setVisible(parent.__c.True); + if (true) break; + +case 416: +//C +this.state = 417; + //BA.debugLineNum = 1155;BA.debugLine="L_QR.TEXT = c.GetString(\"CAT_CL_NUM_SERIEFISIC"; +parent._l_qr.setText(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NUM_SERIEFISICO"))); + //BA.debugLineNum = 1156;BA.debugLine="L_QR.TextColor = Colors.Blue"; +parent._l_qr.setTextColor(parent.__c.Colors.Blue); + //BA.debugLineNum = 1157;BA.debugLine="BT_QR.Visible = False"; +parent._bt_qr.setVisible(parent.__c.False); + if (true) break; + +case 417: +//C +this.state = 418; +; + if (true) break; + +case 418: +//C +this.state = 419; +; + //BA.debugLineNum = 1160;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1161;BA.debugLine="s.Close"; +parent._s.Close(); + if (true) break; + +case 419: +//C +this.state = 420; +; + //BA.debugLineNum = 1165;BA.debugLine="Starter.idCliente = la_cuenta.text"; +parent._starter._idcliente /*String*/ = parent._la_cuenta.getText(); + //BA.debugLineNum = 1166;BA.debugLine="c = skmt.ExecQuery(\"SELECT CAT_VA_VALOR FROM CAT_"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'GEOCERCA'"))); + //BA.debugLineNum = 1167;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 420: +//if +this.state = 423; +if (parent._c.getRowCount()>0) { +this.state = 422; +}if (true) break; + +case 422: +//C +this.state = 423; + //BA.debugLineNum = 1168;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1169;BA.debugLine="Dim geo As String = c.GetString(\"CAT_VA_VALOR\")"; +_geo = parent._c.GetString("CAT_VA_VALOR"); + if (true) break; + +case 423: +//C +this.state = 424; +; + //BA.debugLineNum = 1171;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1173;BA.debugLine="If geo = \"0\" Then"; +if (true) break; + +case 424: +//if +this.state = 443; +if ((_geo).equals("0")) { +this.state = 426; +}else if((_geo).equals("1") && parent._distance>100) { +this.state = 438; +}if (true) break; + +case 426: +//C +this.state = 427; + //BA.debugLineNum = 1174;BA.debugLine="gest.Visible = True"; +parent._gest.setVisible(parent.__c.True); + //BA.debugLineNum = 1175;BA.debugLine="Tels.Visible = True"; +parent._tels.setVisible(parent.__c.True); + //BA.debugLineNum = 1176;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Ex"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1177;BA.debugLine="If future.RowCount > 0 Then"; +if (true) break; + +case 427: +//if +this.state = 436; +if (_future.getRowCount()>0) { +this.state = 429; +}if (true) break; + +case 429: +//C +this.state = 430; + //BA.debugLineNum = 1178;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1179;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (true) break; + +case 430: +//if +this.state = 435; +if (_future.GetInt("CAT_VA_VALOR")==1) { +this.state = 432; +}else if(_future.GetInt("CAT_VA_VALOR")==0) { +this.state = 434; +}if (true) break; + +case 432: +//C +this.state = 435; + //BA.debugLineNum = 1180;BA.debugLine="b_preventa2.Visible = True"; +parent._b_preventa2.setVisible(parent.__c.True); + if (true) break; + +case 434: +//C +this.state = 435; + //BA.debugLineNum = 1182;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + if (true) break; + +case 435: +//C +this.state = 436; +; + if (true) break; + +case 436: +//C +this.state = 443; +; + //BA.debugLineNum = 1186;BA.debugLine="precision = \"1\""; +parent._precision = "1"; + if (true) break; + +case 438: +//C +this.state = 439; + //BA.debugLineNum = 1189;BA.debugLine="gest.Visible = False"; +parent._gest.setVisible(parent.__c.False); + //BA.debugLineNum = 1190;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + //BA.debugLineNum = 1191;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 1192;BA.debugLine="If b_Inicio_Fin_venta.IsInitialized Then"; +if (true) break; + +case 439: +//if +this.state = 442; +if (parent._b_inicio_fin_venta.IsInitialized()) { +this.state = 441; +}if (true) break; + +case 441: +//C +this.state = 442; + //BA.debugLineNum = 1194;BA.debugLine="b_Inicio_Fin_venta.Visible = False"; +parent._b_inicio_fin_venta.setVisible(parent.__c.False); + if (true) break; + +case 442: +//C +this.state = 443; +; + if (true) break; + +case 443: +//C +this.state = 444; +; + //BA.debugLineNum = 1198;BA.debugLine="gest.Typeface =Typeface.CreateNew(Typeface.FONTAW"; +parent._gest.setTypeface(parent.__c.Typeface.CreateNew(parent.__c.Typeface.getFONTAWESOME(),parent.__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 1199;BA.debugLine="gest.Text = \" Preventa\""; +parent._gest.setText(BA.ObjectToCharSequence(" Preventa")); + //BA.debugLineNum = 1200;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Then gest.Tex"; +if (true) break; + +case 444: +//if +this.state = 449; +if ((parent._subs._traetipoventadebd /*String*/ (ba)).equals("VENTA")) { +this.state = 446; +;}if (true) break; + +case 446: +//C +this.state = 449; +parent._gest.setText(BA.ObjectToCharSequence(" Venta")); +if (true) break; + +case 449: +//C +this.state = 450; +; + //BA.debugLineNum = 1202;BA.debugLine="If la_cuenta.Text.trim = \"0\" Then gest.Text = \"Ca"; +if (true) break; + +case 450: +//if +this.state = 455; +if ((parent._la_cuenta.getText().trim()).equals("0")) { +this.state = 452; +;}if (true) break; + +case 452: +//C +this.state = 455; +parent._gest.setText(BA.ObjectToCharSequence("Carga Abordo")); +if (true) break; + +case 455: +//C +this.state = 456; +; + //BA.debugLineNum = 1204;BA.debugLine="Log(Subs.traeRuta)"; +parent.__c.LogImpl("313828750",parent._subs._traeruta /*String*/ (ba),0); + //BA.debugLineNum = 1205;BA.debugLine="If Subs.hayPedido Then"; +if (true) break; + +case 456: +//if +this.state = 461; +if (parent._subs._haypedido /*boolean*/ (ba)) { +this.state = 458; +}else { +this.state = 460; +}if (true) break; + +case 458: +//C +this.state = 461; + //BA.debugLineNum = 1206;BA.debugLine="B_IMP.Enabled = True"; +parent._b_imp.setEnabled(parent.__c.True); + //BA.debugLineNum = 1207;BA.debugLine="b_enviarTicket.Enabled = False"; +parent._b_enviarticket.setEnabled(parent.__c.False); + if (true) break; + +case 460: +//C +this.state = 461; + //BA.debugLineNum = 1209;BA.debugLine="B_IMP.Enabled = False"; +parent._b_imp.setEnabled(parent.__c.False); + //BA.debugLineNum = 1210;BA.debugLine="b_enviarTicket.Enabled = False"; +parent._b_enviarticket.setEnabled(parent.__c.False); + if (true) break; +; + //BA.debugLineNum = 1213;BA.debugLine="If ALMACEN = 46 Or ALMACEN = 6 Then"; + +case 461: +//if +this.state = 478; +if ((parent._almacen).equals(BA.NumberToString(46)) || (parent._almacen).equals(BA.NumberToString(6))) { +this.state = 463; +}else { +this.state = 477; +}if (true) break; + +case 463: +//C +this.state = 464; + //BA.debugLineNum = 1214;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT IfNull(PL_BAN"; +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 IfNull(PL_BANDERA, 0) AS PL_BANDERA FROM PLAN_LEALTAD WHERE PL_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1215;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 464: +//if +this.state = 475; +if (parent._c.getRowCount()>0) { +this.state = 466; +}else { +this.state = 474; +}if (true) break; + +case 466: +//C +this.state = 467; + //BA.debugLineNum = 1216;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1217;BA.debugLine="If c.GetString(\"PL_BANDERA\") = 0 Then"; +if (true) break; + +case 467: +//if +this.state = 472; +if ((parent._c.GetString("PL_BANDERA")).equals(BA.NumberToString(0))) { +this.state = 469; +}else { +this.state = 471; +}if (true) break; + +case 469: +//C +this.state = 472; + //BA.debugLineNum = 1218;BA.debugLine="btnPlanLealtad.Visible = True"; +parent._btnplanlealtad.setVisible(parent.__c.True); + if (true) break; + +case 471: +//C +this.state = 472; + //BA.debugLineNum = 1220;BA.debugLine="btnPlanLealtad.Visible = False"; +parent._btnplanlealtad.setVisible(parent.__c.False); + if (true) break; + +case 472: +//C +this.state = 475; +; + if (true) break; + +case 474: +//C +this.state = 475; + //BA.debugLineNum = 1223;BA.debugLine="btnPlanLealtad.Visible = True"; +parent._btnplanlealtad.setVisible(parent.__c.True); + if (true) break; + +case 475: +//C +this.state = 478; +; + if (true) break; + +case 477: +//C +this.state = 478; + //BA.debugLineNum = 1226;BA.debugLine="btnPlanLealtad.Visible = False"; +parent._btnplanlealtad.setVisible(parent.__c.False); + if (true) break; +; + //BA.debugLineNum = 1237;BA.debugLine="If ALMACEN = 88 Then"; + +case 478: +//if +this.state = 511; +if ((parent._almacen).equals(BA.NumberToString(88))) { +this.state = 480; +}if (true) break; + +case 480: +//C +this.state = 481; + //BA.debugLineNum = 1238;BA.debugLine="If Not(Subs.TraeMontoProd) Then"; +if (true) break; + +case 481: +//if +this.state = 510; +if (parent.__c.Not(parent._subs._traemontoprod /*boolean*/ (ba))) { +this.state = 483; +}if (true) break; + +case 483: +//C +this.state = 484; + //BA.debugLineNum = 1239;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fr"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis = 'MYKONOS_01' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._tipo_venta)})); + //BA.debugLineNum = 1241;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Exe"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{"","null"}))); + //BA.debugLineNum = 1243;BA.debugLine="If s3.RowCount > 0 Then"; +if (true) break; + +case 484: +//if +this.state = 509; +if (_s3.getRowCount()>0) { +this.state = 486; +}else { +this.state = 498; +}if (true) break; + +case 486: +//C +this.state = 487; + //BA.debugLineNum = 1244;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1245;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select iF"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 1246;BA.debugLine="s.Position=0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 1247;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt."; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 1248;BA.debugLine="s5.Position = 0"; +_s5.setPosition((int) (0)); + //BA.debugLineNum = 1249;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 487: +//if +this.state = 496; +if (parent._c.getRowCount()>0) { +this.state = 489; +}if (true) break; + +case 489: +//C +this.state = 490; + //BA.debugLineNum = 1250;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1251;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then"; +if (true) break; + +case 490: +//if +this.state = 495; +if (parent._s.GetString("TOTAL_CLIE")== null) { +this.state = 492; +}else { +this.state = 494; +}if (true) break; + +case 492: +//C +this.state = 495; + //BA.debugLineNum = 1252;BA.debugLine="l_total.Text = 0"; +parent._l_total.setText(BA.ObjectToCharSequence(0)); + if (true) break; + +case 494: +//C +this.state = 495; + //BA.debugLineNum = 1254;BA.debugLine="l_total.Text =NumberFormat2((s.GetString(\"TO"; +parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))),(int) (0),(int) (2),(int) (2),parent.__c.False))); + if (true) break; + +case 495: +//C +this.state = 496; +; + //BA.debugLineNum = 1256;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\") + s"; +parent._total_cliente = BA.NumberToString((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))); + if (true) break; + +case 496: +//C +this.state = 509; +; + if (true) break; + +case 498: +//C +this.state = 499; + //BA.debugLineNum = 1259;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO,IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1260;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 1261;BA.debugLine="s.Position=0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 1262;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 499: +//if +this.state = 508; +if (parent._c.getRowCount()>0) { +this.state = 501; +}if (true) break; + +case 501: +//C +this.state = 502; + //BA.debugLineNum = 1263;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1264;BA.debugLine="If s.GetString(\"TOTAL_CLIE\") = Null Then"; +if (true) break; + +case 502: +//if +this.state = 507; +if (parent._s.GetString("TOTAL_CLIE")== null) { +this.state = 504; +}else { +this.state = 506; +}if (true) break; + +case 504: +//C +this.state = 507; + //BA.debugLineNum = 1265;BA.debugLine="l_total.Text = 0"; +parent._l_total.setText(BA.ObjectToCharSequence(0)); + if (true) break; + +case 506: +//C +this.state = 507; + //BA.debugLineNum = 1267;BA.debugLine="l_total.Text =NumberFormat2(s.GetString(\"TOT"; +parent._l_total.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("TOTAL_CLIE"))),(int) (0),(int) (2),(int) (2),parent.__c.False))); + if (true) break; + +case 507: +//C +this.state = 508; +; + //BA.debugLineNum = 1269;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")"; +parent._total_cliente = parent._s.GetString("TOTAL_CLIE"); + if (true) break; + +case 508: +//C +this.state = 509; +; + if (true) break; + +case 509: +//C +this.state = 510; +; + if (true) break; + +case 510: +//C +this.state = 511; +; + if (true) break; + +case 511: +//C +this.state = 512; +; + //BA.debugLineNum = 1275;BA.debugLine="Log(\"============================================"; +parent.__c.LogImpl("313828821","============================================================",0); + //BA.debugLineNum = 1276;BA.debugLine="Log(\"============================================"; +parent.__c.LogImpl("313828822","============================================================",0); + //BA.debugLineNum = 1277;BA.debugLine="Log(\"============================================"; +parent.__c.LogImpl("313828823","============================================================",0); + //BA.debugLineNum = 1279;BA.debugLine="l_total.Text = Subs.calculaTotalConPromoXRango(Su"; +parent._l_total.setText(BA.ObjectToCharSequence(parent._subs._calculatotalconpromoxrango /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 1282;BA.debugLine="SV_ENCUESTA.Visible = False"; +parent._sv_encuesta.setVisible(parent.__c.False); + //BA.debugLineNum = 1283;BA.debugLine="P_gallina.Visible = False"; +parent._p_gallina.setVisible(parent.__c.False); + //BA.debugLineNum = 1284;BA.debugLine="p_pregunta1.Visible = False"; +parent._p_pregunta1.setVisible(parent.__c.False); + //BA.debugLineNum = 1285;BA.debugLine="p_camara.Visible = False"; +parent._p_camara.setVisible(parent.__c.False); + //BA.debugLineNum = 1286;BA.debugLine="Panel2.Visible = False"; +parent._panel2.setVisible(parent.__c.False); + //BA.debugLineNum = 1287;BA.debugLine="p_comentario.Visible = False"; +parent._p_comentario.setVisible(parent.__c.False); + //BA.debugLineNum = 1288;BA.debugLine="p_transparenteTicketImpreso.Visible = False"; +parent._p_transparenteticketimpreso.setVisible(parent.__c.False); + //BA.debugLineNum = 1289;BA.debugLine="p_encuesta.Visible = False"; +parent._p_encuesta.setVisible(parent.__c.False); + //BA.debugLineNum = 1290;BA.debugLine="pnlPlanLealtad.Visible = False"; +parent._pnlplanlealtad.setVisible(parent.__c.False); + //BA.debugLineNum = 1291;BA.debugLine="Panel10.Visible = False"; +parent._panel10.setVisible(parent.__c.False); + //BA.debugLineNum = 1292;BA.debugLine="p_transparentePDF.Visible = False"; +parent._p_transparentepdf.setVisible(parent.__c.False); + //BA.debugLineNum = 1293;BA.debugLine="CH_FACTURA.Checked = False"; +parent._ch_factura.setChecked(parent.__c.False); + //BA.debugLineNum = 1294;BA.debugLine="Dim fac As Cursor=B4XPages.MainPage.skmt.ExecQuer"; +_fac = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fac = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select ifnull(SUM(PE_COSTO_TOT), 0) As TOTAL_CLIE, SUM(PE_CANT) As CANT_CLIE, PC_FACTURA FROM PEDIDO_CLIENTE INNER JOIN PEDIDO ON PEDIDO_CLIENTE.PC_CLIENTE = PEDIDO.PE_CLIENTE WHERE (PE_CLIENTE IN (Select cuenta from cuentaa))"))); + //BA.debugLineNum = 1295;BA.debugLine="fac.Position = 0"; +_fac.setPosition((int) (0)); + //BA.debugLineNum = 1296;BA.debugLine="Private factura As String = 0"; +_factura = BA.NumberToString(0); + //BA.debugLineNum = 1297;BA.debugLine="If fac.GetString(\"PC_FACTURA\") <> Null And IsNumb"; +if (true) break; + +case 512: +//if +this.state = 517; +if (_fac.GetString("PC_FACTURA")!= null && parent.__c.IsNumber(_fac.GetString("PC_FACTURA"))) { +this.state = 514; +;}if (true) break; + +case 514: +//C +this.state = 517; +_factura = _fac.GetString("PC_FACTURA"); +if (true) break; + +case 517: +//C +this.state = 518; +; + //BA.debugLineNum = 1298;BA.debugLine="If factura = \"1\" Then CH_FACTURA.Checked = True"; +if (true) break; + +case 518: +//if +this.state = 523; +if ((_factura).equals("1")) { +this.state = 520; +;}if (true) break; + +case 520: +//C +this.state = 523; +parent._ch_factura.setChecked(parent.__c.True); +if (true) break; + +case 523: +//C +this.state = 524; +; + //BA.debugLineNum = 1301;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_BCREDITO,0) AS CAT_CL_BCREDITO, CAT_CL_LIMITECREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1302;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1303;BA.debugLine="If c.GetInt(\"CAT_CL_BCREDITO\") = 1 Then"; +if (true) break; + +case 524: +//if +this.state = 541; +if (parent._c.GetInt("CAT_CL_BCREDITO")==1) { +this.state = 526; +}else if(parent._c.GetInt("CAT_CL_BCREDITO")==0) { +this.state = 540; +}if (true) break; + +case 526: +//C +this.state = 527; + //BA.debugLineNum = 1305;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt"; +_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1306;BA.debugLine="If pagarepen.RowCount > 0 Then"; +if (true) break; + +case 527: +//if +this.state = 538; +if (_pagarepen.getRowCount()>0) { +this.state = 529; +}else { +this.state = 537; +}if (true) break; + +case 529: +//C +this.state = 530; + //BA.debugLineNum = 1307;BA.debugLine="pagarepen.Position = 0"; +_pagarepen.setPosition((int) (0)); + //BA.debugLineNum = 1308;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 1309;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString"; +_fechainicio = _pagarepen.GetString("FECHA"); + //BA.debugLineNum = 1311;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))"; +parent.__c.LogImpl("313828857",_pagarepen.GetString("FECHA"),0); + //BA.debugLineNum = 1313;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fe"; +_ticksinicio = parent.__c.DateTime.DateParse(_fechainicio); + //BA.debugLineNum = 1314;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateT"; +_tickshoy = parent.__c.DateTime.DateParse(parent.__c.DateTime.Date(parent.__c.DateTime.getNow())); + //BA.debugLineNum = 1317;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIn"; +_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)parent.__c.DateTime.TicksPerDay); + //BA.debugLineNum = 1320;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)"; +parent.__c.LogImpl("313828866",("Días transcurridos: "+parent.__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0); + //BA.debugLineNum = 1322;BA.debugLine="Dim c4 As Cursor=B4XPages.MainPage.skmt.ExecQue"; +_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)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1323;BA.debugLine="c4.Position = 0"; +_c4.setPosition((int) (0)); + //BA.debugLineNum = 1325;BA.debugLine="If DiferenciaDias <= c4.GetInt(\"CAT_CL_DIASCRED"; +if (true) break; + +case 530: +//if +this.state = 535; +if (_diferenciadias<=_c4.GetInt("CAT_CL_DIASCREDITO")+1) { +this.state = 532; +}else if(_diferenciadias>_c4.GetInt("CAT_CL_DIASCREDITO")+1) { +this.state = 534; +}if (true) break; + +case 532: +//C +this.state = 535; + //BA.debugLineNum = 1326;BA.debugLine="l_credito.Color = Colors.Green"; +parent._l_credito.setColor(parent.__c.Colors.Green); + //BA.debugLineNum = 1327;BA.debugLine="l_limite.Color = Colors.Green"; +parent._l_limite.setColor(parent.__c.Colors.Green); + if (true) break; + +case 534: +//C +this.state = 535; + //BA.debugLineNum = 1329;BA.debugLine="l_credito.Color = Colors.Red"; +parent._l_credito.setColor(parent.__c.Colors.Red); + //BA.debugLineNum = 1330;BA.debugLine="l_limite.Color = Colors.Red"; +parent._l_limite.setColor(parent.__c.Colors.Red); + if (true) break; + +case 535: +//C +this.state = 538; +; + if (true) break; + +case 537: +//C +this.state = 538; + //BA.debugLineNum = 1333;BA.debugLine="l_credito.Color = Colors.Transparent"; +parent._l_credito.setColor(parent.__c.Colors.Transparent); + //BA.debugLineNum = 1334;BA.debugLine="l_limite.Color = Colors.Transparent"; +parent._l_limite.setColor(parent.__c.Colors.Transparent); + if (true) break; + +case 538: +//C +this.state = 541; +; + //BA.debugLineNum = 1336;BA.debugLine="l_credito.Visible = True"; +parent._l_credito.setVisible(parent.__c.True); + //BA.debugLineNum = 1337;BA.debugLine="l_limite.Visible = True"; +parent._l_limite.setVisible(parent.__c.True); + //BA.debugLineNum = 1338;BA.debugLine="l_limite.Text = c.GetInt(\"CAT_CL_LIMITECREDITO\""; +parent._l_limite.setText(BA.ObjectToCharSequence(parent._c.GetInt("CAT_CL_LIMITECREDITO"))); + if (true) break; + +case 540: +//C +this.state = 541; + //BA.debugLineNum = 1340;BA.debugLine="l_credito.Visible = False"; +parent._l_credito.setVisible(parent.__c.False); + //BA.debugLineNum = 1341;BA.debugLine="l_limite.Visible = False"; +parent._l_limite.setVisible(parent.__c.False); + if (true) break; + +case 541: +//C +this.state = 542; +; + //BA.debugLineNum = 1345;BA.debugLine="Tels.Visible = False"; +parent._tels.setVisible(parent.__c.False); + //BA.debugLineNum = 1346;BA.debugLine="gest.Visible = False"; +parent._gest.setVisible(parent.__c.False); + //BA.debugLineNum = 1347;BA.debugLine="b_preventa2.Visible = False"; +parent._b_preventa2.setVisible(parent.__c.False); + //BA.debugLineNum = 1349;BA.debugLine="Dim coloressaldo As Cursor=B4XPages.MainPage.skmt"; +_coloressaldo = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_coloressaldo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_CLASIFICADOR3,0) AS CAT_CL_CLASIFICADOR3, IFNULL(CAT_CL_CLASIFICADOR4,0) AS CAT_CL_CLASIFICADOR4, IFNULL(CAT_CL_CLASIFICADOR2,'') AS CAT_CL_CLASIFICADOR2 from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 1350;BA.debugLine="coloressaldo.Position = 0"; +_coloressaldo.setPosition((int) (0)); + //BA.debugLineNum = 1351;BA.debugLine="la_saldooper.Text = NumberFormat2(coloressaldo.Ge"; +parent._la_saldooper.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(_coloressaldo.GetDouble("CAT_CL_CLASIFICADOR3"),(int) (0),(int) (0),(int) (0),parent.__c.False))); + //BA.debugLineNum = 1352;BA.debugLine="l_cajetillas.Text = NumberFormat2(coloressaldo.Ge"; +parent._l_cajetillas.setText(BA.ObjectToCharSequence(parent.__c.NumberFormat2(_coloressaldo.GetDouble("CAT_CL_CLASIFICADOR4"),(int) (0),(int) (0),(int) (0),parent.__c.False))); + //BA.debugLineNum = 1353;BA.debugLine="l_animal.Text = coloressaldo.GetString(\"CAT_CL_CL"; +parent._l_animal.setText(BA.ObjectToCharSequence(_coloressaldo.GetString("CAT_CL_CLASIFICADOR2"))); + //BA.debugLineNum = 1354;BA.debugLine="If coloressaldo.GetString(\"CAT_CL_CLASIFICADOR2\")"; +if (true) break; + +case 542: +//if +this.state = 553; +if ((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Chimpancé KIN")) { +this.state = 544; +}else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Delfín Niky")) { +this.state = 546; +}else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Tortuga KOPI")) { +this.state = 548; +}else if((_coloressaldo.GetString("CAT_CL_CLASIFICADOR2")).equals("Lechuza MON")) { +this.state = 550; +}else { +this.state = 552; +}if (true) break; + +case 544: +//C +this.state = 553; + //BA.debugLineNum = 1355;BA.debugLine="l_animal.Color = Colors.RGB(84,255,172)"; +parent._l_animal.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (172))); + //BA.debugLineNum = 1356;BA.debugLine="Label22.Color = Colors.RGB(84,255,172)"; +parent._label22.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (172))); + if (true) break; + +case 546: +//C +this.state = 553; + //BA.debugLineNum = 1358;BA.debugLine="l_animal.Color = Colors.RGB(84,255,245)"; +parent._l_animal.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (245))); + //BA.debugLineNum = 1359;BA.debugLine="Label22.Color = Colors.RGB(84,255,245)"; +parent._label22.setColor(parent.__c.Colors.RGB((int) (84),(int) (255),(int) (245))); + if (true) break; + +case 548: +//C +this.state = 553; + //BA.debugLineNum = 1361;BA.debugLine="l_animal.Color = Colors.RGB(255,123,84)"; +parent._l_animal.setColor(parent.__c.Colors.RGB((int) (255),(int) (123),(int) (84))); + //BA.debugLineNum = 1362;BA.debugLine="Label22.Color = Colors.RGB(255,123,84)"; +parent._label22.setColor(parent.__c.Colors.RGB((int) (255),(int) (123),(int) (84))); + if (true) break; + +case 550: +//C +this.state = 553; + //BA.debugLineNum = 1364;BA.debugLine="l_animal.Color = Colors.RGB(255,250,140)"; +parent._l_animal.setColor(parent.__c.Colors.RGB((int) (255),(int) (250),(int) (140))); + //BA.debugLineNum = 1365;BA.debugLine="Label22.Color = Colors.RGB(255,250,140)"; +parent._label22.setColor(parent.__c.Colors.RGB((int) (255),(int) (250),(int) (140))); + if (true) break; + +case 552: +//C +this.state = 553; + //BA.debugLineNum = 1367;BA.debugLine="l_animal.Color = Colors.Transparent"; +parent._l_animal.setColor(parent.__c.Colors.Transparent); + //BA.debugLineNum = 1368;BA.debugLine="Label22.Color = Colors.Transparent"; +parent._label22.setColor(parent.__c.Colors.Transparent); + if (true) break; + +case 553: +//C +this.state = -1; +; + //BA.debugLineNum = 1373;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _b4xpage_permissionresult(String _permission,boolean _resultc) 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(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 2925;BA.debugLine="cuest.encuestaIniciada = False"; +parent._cuest._encuestainiciada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 2926;BA.debugLine="cuest.ocultPanelPregunta"; +parent._cuest._ocultpanelpregunta /*String*/ (); + //BA.debugLineNum = 2927;BA.debugLine="If bitacora.p_transparenteInicioFin2.Visible And"; +if (true) break; + +case 1: +//if +this.state = 16; +if (parent._bitacora._p_transparenteiniciofin2 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible() && (parent._bitacora._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getText()).equals("TERMINAR VISITA")) { +this.state = 3; +}else if(parent._subs._haypedido /*boolean*/ (ba)) { +this.state = 5; +}else if(parent._p_encuesta.getVisible()) { +this.state = 7; +}else if(parent._p_camara.getVisible()) { +this.state = 9; +}else if(parent._p_pregunta1.getVisible()) { +this.state = 11; +}else if(parent._sv_encuesta.getVisible()) { +this.state = 13; +}else { +this.state = 15; +}if (true) break; + +case 3: +//C +this.state = 16; + //BA.debugLineNum = 2928;BA.debugLine="ToastMessageShow(\"Por favor presione el botón de"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Por favor presione el botón de TERMINAR VISITA"),parent.__c.True); + //BA.debugLineNum = 2929;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 5: +//C +this.state = 16; + //BA.debugLineNum = 2931;BA.debugLine="ToastMessageShow(\"Por favor presione el botón de"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Por favor presione el botón de GUARDAR"),parent.__c.True); + //BA.debugLineNum = 2932;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 7: +//C +this.state = 16; + //BA.debugLineNum = 2934;BA.debugLine="p_encuesta.Visible = False"; +parent._p_encuesta.setVisible(parent.__c.False); + if (true) break; + +case 9: +//C +this.state = 16; + //BA.debugLineNum = 2936;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 11: +//C +this.state = 16; + //BA.debugLineNum = 2940;BA.debugLine="p_pregunta1.Visible = False"; +parent._p_pregunta1.setVisible(parent.__c.False); + if (true) break; + +case 13: +//C +this.state = 16; + //BA.debugLineNum = 2942;BA.debugLine="SV_ENCUESTA.visible = False"; +parent._sv_encuesta.setVisible(parent.__c.False); + //BA.debugLineNum = 2943;BA.debugLine="p_cliente.Visible = True"; +parent._p_cliente.setVisible(parent.__c.True); + if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 2946;BA.debugLine="Starter.enCliente = False"; +parent._starter._encliente /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 2947;BA.debugLine="B4XPages.ShowPage(\"Clientes\")"; +parent._b4xpages._showpage /*String*/ (ba,"Clientes"); + if (true) break; + +case 16: +//C +this.state = -1; +; + //BA.debugLineNum = 2950;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 2951;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 487;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 488;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 491;BA.debugLine="Root.LoadLayout(\"cliente\")"; +_root.LoadLayout("cliente",ba); + //BA.debugLineNum = 492;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 493;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 494;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 496;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +_skmt.Initialize(_ruta,"kmt.db",__c.True); + //BA.debugLineNum = 497;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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_MTOCOMPRA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 498;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"select sum(pe"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 499;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 500;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 501;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 502;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; +_la_cuenta.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 503;BA.debugLine="cuenta = c.GetString(\"CAT_CL_CODIGO\")"; +_cuenta = _c.GetString("CAT_CL_CODIGO"); + //BA.debugLineNum = 504;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; +_la_nombre.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE"))); + //BA.debugLineNum = 505;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c."; +_la_calle.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE")+_c.GetString("CAT_CL_NOEXT"))); + //BA.debugLineNum = 506;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; +_la_col.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_COLONIA"))); + //BA.debugLineNum = 507;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; +_la_edo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EDO"))); + //BA.debugLineNum = 509;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; +_l_entre1.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE1"))); + //BA.debugLineNum = 510;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; +_l_entre2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE2"))); + //BA.debugLineNum = 511;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; +_l_atiende.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENDE1"))); + //BA.debugLineNum = 512;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")"; +_l_atiende2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENTE2"))); + //BA.debugLineNum = 513;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\""; +_la_saldotot.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_TELEFONO"))); + //BA.debugLineNum = 514;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")"; +_la_saldooper.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EMAIL"))); + //BA.debugLineNum = 515;BA.debugLine="l_total.Text = s.GetString(\"TOTAL_CLIE\")"; +_l_total.setText(BA.ObjectToCharSequence(_s.GetString("TOTAL_CLIE"))); + //BA.debugLineNum = 516;BA.debugLine="total_cliente = s.GetString(\"TOTAL_CLIE\")"; +_total_cliente = _s.GetString("TOTAL_CLIE"); + //BA.debugLineNum = 517;BA.debugLine="MONTO_COMPRA = c.GetString(\"CAT_CL_MTOCOMPRA\")"; +_monto_compra = _c.GetString("CAT_CL_MTOCOMPRA"); + }; + //BA.debugLineNum = 519;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 520;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 521;BA.debugLine="File.Copy(File.DirAssets,\"guna-fondo.jpg\",xui.Def"; +__c.File.Copy(__c.File.getDirAssets(),"guna-fondo.jpg",_xui.getDefaultFolder(),"guna-fondo.jpg"); + //BA.debugLineNum = 522;BA.debugLine="TOMAR_FOTO = 0"; +_tomar_foto = BA.NumberToString(0); + //BA.debugLineNum = 523;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; +_btadmin.Initialize(ba,"BlueTeeth"); + //BA.debugLineNum = 524;BA.debugLine="cmp20.Initialize(\"Printer\")"; +_cmp20.Initialize("Printer"); + //BA.debugLineNum = 525;BA.debugLine="SV_ENCUESTA.Height = Root.Height"; +_sv_encuesta.setHeight(_root.getHeight()); + //BA.debugLineNum = 526;BA.debugLine="SV_ENCUESTA.Width = Root.Height"; +_sv_encuesta.setWidth(_root.getHeight()); + //BA.debugLineNum = 527;BA.debugLine="p_pregunta1.Height = Root.Height"; +_p_pregunta1.setHeight(_root.getHeight()); + //BA.debugLineNum = 528;BA.debugLine="p_pregunta1.Width = Root.Height"; +_p_pregunta1.setWidth(_root.getHeight()); + //BA.debugLineNum = 529;BA.debugLine="p_transparenteTicketImpreso.Left = 0 : p_transpar"; +_p_transparenteticketimpreso.setLeft((int) (0)); + //BA.debugLineNum = 529;BA.debugLine="p_transparenteTicketImpreso.Left = 0 : p_transpar"; +_p_transparenteticketimpreso.setTop((int) (0)); + //BA.debugLineNum = 530;BA.debugLine="p_transparentePDF.Left = 0 : p_transparentePDF.to"; +_p_transparentepdf.setLeft((int) (0)); + //BA.debugLineNum = 530;BA.debugLine="p_transparentePDF.Left = 0 : p_transparentePDF.to"; +_p_transparentepdf.setTop((int) (0)); + //BA.debugLineNum = 531;BA.debugLine="p_transparenteTicketImpreso.Width = Root.Width :"; +_p_transparenteticketimpreso.setWidth(_root.getWidth()); + //BA.debugLineNum = 531;BA.debugLine="p_transparenteTicketImpreso.Width = Root.Width :"; +_p_transparenteticketimpreso.setHeight(_root.getHeight()); + //BA.debugLineNum = 532;BA.debugLine="p_transparentePDF.Width = Root.Width : p_transpar"; +_p_transparentepdf.setWidth(_root.getWidth()); + //BA.debugLineNum = 532;BA.debugLine="p_transparentePDF.Width = Root.Width : p_transpar"; +_p_transparentepdf.setHeight(_root.getHeight()); + //BA.debugLineNum = 533;BA.debugLine="Subs.centraPanel(p_ticketImpreso, p_transparenteT"; +_subs._centrapanel /*String*/ (ba,_p_ticketimpreso,_p_transparenteticketimpreso.getWidth()); + //BA.debugLineNum = 534;BA.debugLine="Subs.centraPanel(p_envioPDF, p_transparentePDF.Wi"; +_subs._centrapanel /*String*/ (ba,_p_enviopdf,_p_transparentepdf.getWidth()); + //BA.debugLineNum = 535;BA.debugLine="p_comentario.Left = 0 : p_comentario.top = 0"; +_p_comentario.setLeft((int) (0)); + //BA.debugLineNum = 535;BA.debugLine="p_comentario.Left = 0 : p_comentario.top = 0"; +_p_comentario.setTop((int) (0)); + //BA.debugLineNum = 536;BA.debugLine="p_comentario.Width = Root.Width : p_comentario.He"; +_p_comentario.setWidth(_root.getWidth()); + //BA.debugLineNum = 536;BA.debugLine="p_comentario.Width = Root.Width : p_comentario.He"; +_p_comentario.setHeight(_root.getHeight()); + //BA.debugLineNum = 537;BA.debugLine="Subs.centraPanel(p_comentarios, p_comentario.Widt"; +_subs._centrapanel /*String*/ (ba,_p_comentarios,_p_comentario.getWidth()); + //BA.debugLineNum = 538;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 539;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 540;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 541;BA.debugLine="l_version.Left = Root.Width - (l_version.Width +"; +_l_version.setLeft((int) (_root.getWidth()-(_l_version.getWidth()+10))); + //BA.debugLineNum = 542;BA.debugLine="cuest.Initialize(Me, \"cuest\", Root, B4XPages.Main"; +_cuest._initialize /*Object*/ (ba,this,"cuest",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ); + //BA.debugLineNum = 543;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,"; +_bitacora._initialize /*Object*/ (ba,(Object)("bitacora"),"bitacora",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,_reqmanager); + //BA.debugLineNum = 544;BA.debugLine="l_version.Left = Root.Width - l_version.Width"; +_l_version.setLeft((int) (_root.getWidth()-_l_version.getWidth())); + //BA.debugLineNum = 546;BA.debugLine="End Sub"; +return ""; +} +public String _bt_qr_click() throws Exception{ + //BA.debugLineNum = 3065;BA.debugLine="Sub BT_QR_Click"; + //BA.debugLineNum = 3066;BA.debugLine="sc.isportrait = True"; +_sc.isportrait = __c.True; + //BA.debugLineNum = 3067;BA.debugLine="sc.timeoutDuration = 45"; +_sc.timeoutDuration = (int) (45); + //BA.debugLineNum = 3068;BA.debugLine="sc.theViewFinderXfactor = 0.7"; +_sc.theViewFinderXfactor = 0.7; + //BA.debugLineNum = 3069;BA.debugLine="sc.theViewFinderYfactor = 0.5"; +_sc.theViewFinderYfactor = 0.5; + //BA.debugLineNum = 3070;BA.debugLine="sc.theResultColor = Colors.Green"; +_sc.theResultColor = __c.Colors.Green; + //BA.debugLineNum = 3071;BA.debugLine="sc.mustVibrate = True"; +_sc.mustVibrate = __c.True; + //BA.debugLineNum = 3072;BA.debugLine="sc.BeginScan(\"sc\")"; +_sc.BeginScan(ba,"sc"); + //BA.debugLineNum = 3073;BA.debugLine="End Sub"; +return ""; +} +public String _btnaceptaplanlealtad_click() throws Exception{ + //BA.debugLineNum = 7506;BA.debugLine="Private Sub btnAceptaPlanLealtad_Click"; + //BA.debugLineNum = 7508;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM PLAN_LE"; +_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 PLAN_LEALTAD WHERE PL_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7509;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 7510;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 7512;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into PLAN_LEALTAD (PL_BANDERA, PL_CLIENTE) values ('1','"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"')")); + //BA.debugLineNum = 7513;BA.debugLine="pnlPlanLealtad.Visible = False"; +_pnlplanlealtad.setVisible(__c.False); + //BA.debugLineNum = 7514;BA.debugLine="Log(\"AQUI\")"; +__c.LogImpl("326476552","AQUI",0); + //BA.debugLineNum = 7515;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else { + //BA.debugLineNum = 7517;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE PLAN_LEALTAD"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE PLAN_LEALTAD SET PL_BANDERA = 1 where PL_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")); + //BA.debugLineNum = 7518;BA.debugLine="pnlPlanLealtad.Visible = False"; +_pnlplanlealtad.setVisible(__c.False); + //BA.debugLineNum = 7519;BA.debugLine="Log(\"AQUI2\")"; +__c.LogImpl("326476557","AQUI2",0); + //BA.debugLineNum = 7520;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + //BA.debugLineNum = 7522;BA.debugLine="End Sub"; +return ""; +} +public String _btncancelarplanlealtad_click() throws Exception{ + //BA.debugLineNum = 7502;BA.debugLine="Private Sub btnCancelarPlanLealtad_Click"; + //BA.debugLineNum = 7503;BA.debugLine="pnlPlanLealtad.Visible = False"; +_pnlplanlealtad.setVisible(__c.False); + //BA.debugLineNum = 7504;BA.debugLine="End Sub"; +return ""; +} +public String _btnplanlealtad_click() throws Exception{ + //BA.debugLineNum = 7497;BA.debugLine="Private Sub btnPlanLealtad_Click"; + //BA.debugLineNum = 7498;BA.debugLine="Subs.centraPanel(pnl_btns, pnlPlanLealtad.Width)"; +_subs._centrapanel /*String*/ (ba,_pnl_btns,_pnlplanlealtad.getWidth()); + //BA.debugLineNum = 7499;BA.debugLine="pnlPlanLealtad.Visible = True"; +_pnlplanlealtad.setVisible(__c.True); + //BA.debugLineNum = 7500;BA.debugLine="End Sub"; +return ""; +} +public String _calc_ean_checksum(String _number) throws Exception{ +int _i = 0; +char _co = '\0'; +int _soma = 0; +int _n = 0; +float _digit = 0f; + //BA.debugLineNum = 3108;BA.debugLine="Sub calc_ean_checksum(number As String) As String"; + //BA.debugLineNum = 3109;BA.debugLine="Dim i As Int"; +_i = 0; + //BA.debugLineNum = 3110;BA.debugLine="Dim cO As Char"; +_co = '\0'; + //BA.debugLineNum = 3111;BA.debugLine="Dim soma As Int"; +_soma = 0; + //BA.debugLineNum = 3112;BA.debugLine="Dim n As Int"; +_n = 0; + //BA.debugLineNum = 3113;BA.debugLine="Dim digit As Float"; +_digit = 0f; + //BA.debugLineNum = 3114;BA.debugLine="soma = 0"; +_soma = (int) (0); + //BA.debugLineNum = 3115;BA.debugLine="For i=0 To number.Length - 1"; +{ +final int step7 = 1; +final int limit7 = (int) (_number.length()-1); +_i = (int) (0) ; +for (;_i <= limit7 ;_i = _i + step7 ) { + //BA.debugLineNum = 3116;BA.debugLine="digit = number.SubString2(i,i+1)"; +_digit = (float)(Double.parseDouble(_number.substring(_i,(int) (_i+1)))); + //BA.debugLineNum = 3117;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)"; +_n = (int) (_digit*((_i%2)*2+1)); + //BA.debugLineNum = 3118;BA.debugLine="soma=soma+n"; +_soma = (int) (_soma+_n); + } +}; + //BA.debugLineNum = 3120;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10"; +if (true) return _number+BA.NumberToString(((10-(_soma%10))%10)); + //BA.debugLineNum = 3121;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 = 7710;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)"; + //BA.debugLineNum = 7712;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; +__c.DateTime.setDateFormat("ddMMyyyyHHmmss"); + //BA.debugLineNum = 7713;BA.debugLine="nombrefoto = DateTime.Now & \"_FOTO1.jpg\""; +_nombrefoto = BA.NumberToString(__c.DateTime.getNow())+"_FOTO1.jpg"; + //BA.debugLineNum = 7714;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 7715;BA.debugLine="fototomada = nombrefoto"; +_fototomada = _nombrefoto; + //BA.debugLineNum = 7718;BA.debugLine="Log(\"tome foto\")"; +__c.LogImpl("327197448","tome foto",0); + //BA.debugLineNum = 7719;BA.debugLine="Dim filename As String = fototomada"; +_filename = _fototomada; + //BA.debugLineNum = 7720;BA.debugLine="Dim Dirp As String = File.DirInternal"; +_dirp = __c.File.getDirInternal(); + //BA.debugLineNum = 7721;BA.debugLine="Dim Dir As String"; +_dir = ""; + //BA.debugLineNum = 7722;BA.debugLine="Dim Dir2 As String"; +_dir2 = ""; + //BA.debugLineNum = 7723;BA.debugLine="Try"; +try { //BA.debugLineNum = 7724;BA.debugLine="File.MakeDir(Dirp,\"/md\")"; +__c.File.MakeDir(_dirp,"/md"); + //BA.debugLineNum = 7725;BA.debugLine="Dir = \"/md\""; +_dir = "/md"; + //BA.debugLineNum = 7726;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)"; +__c.LogImpl("327197456","creado en promotoria "+_dirp+_dir,0); + } + catch (Exception e15) { + ba.setLastException(e15); //BA.debugLineNum = 7728;BA.debugLine="Dir = \"\""; +_dir = ""; + //BA.debugLineNum = 7729;BA.debugLine="Log(\"creado en raiz\")"; +__c.LogImpl("327197459","creado en raiz",0); + }; + //BA.debugLineNum = 7732;BA.debugLine="Try"; +try { //BA.debugLineNum = 7733;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")"; +__c.File.MakeDir(_dirp+_dir,"/reduccion"); + //BA.debugLineNum = 7734;BA.debugLine="Dir2 = \"/reduccion\""; +_dir2 = "/reduccion"; + //BA.debugLineNum = 7735;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)"; +__c.LogImpl("327197465","creado en promotoria "+_dirp+_dir+_dir2,0); + } + catch (Exception e23) { + ba.setLastException(e23); //BA.debugLineNum = 7737;BA.debugLine="Dir = \"\""; +_dir = ""; + //BA.debugLineNum = 7738;BA.debugLine="Log(\"creado en raiz\")"; +__c.LogImpl("327197468","creado en raiz",0); + }; + //BA.debugLineNum = 7741;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)"; +_camex._savepicturetofile /*String*/ (_data,_dirp+_dir,_filename); + //BA.debugLineNum = 7742;BA.debugLine="camEx.StartPreview 'restart preview"; +_camex._startpreview /*String*/ (); + //BA.debugLineNum = 7744;BA.debugLine="Log(\"Picture saved.\" & CRLF & \"File size: \" & Fi"; +__c.LogImpl("327197474","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0); + //BA.debugLineNum = 7745;BA.debugLine="p_camara.Visible = False"; +_p_camara.setVisible(__c.False); + //BA.debugLineNum = 7747;BA.debugLine="Log(nombrefoto)"; +__c.LogImpl("327197477",_nombrefoto,0); + //BA.debugLineNum = 7749;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) (225),(int) (300),__c.True); + //BA.debugLineNum = 7750;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False); + //BA.debugLineNum = 7751;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 = 7754;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 7755;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirInternal &"; +_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto).getObject())); + //BA.debugLineNum = 7757;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET foto = ("; +_skmt.ExecNonQuery2("UPDATE kmt_info3 SET foto = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto))})); + //BA.debugLineNum = 7758;BA.debugLine="StopCamera2"; +_stopcamera2(); + //BA.debugLineNum = 7760;BA.debugLine="End Sub"; +return ""; +} +public String _camera1_ready(boolean _success) throws Exception{ + //BA.debugLineNum = 7696;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; + //BA.debugLineNum = 7697;BA.debugLine="Log(\"Camara ready\")"; +__c.LogImpl("327131905","Camara ready",0); + //BA.debugLineNum = 7698;BA.debugLine="If Success Then"; +if (_success) { + //BA.debugLineNum = 7699;BA.debugLine="camEx.SetJpegQuality(90)"; +_camex._setjpegquality /*String*/ ((int) (90)); + //BA.debugLineNum = 7700;BA.debugLine="camEx.SetContinuousAutoFocus"; +_camex._setcontinuousautofocus /*String*/ (); + //BA.debugLineNum = 7701;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 7702;BA.debugLine="camEx.StartPreview"; +_camex._startpreview /*String*/ (); + //BA.debugLineNum = 7703;BA.debugLine="Log(camEx.GetPreviewSize)"; +__c.LogImpl("327131911",BA.ObjectToString(_camex._getpreviewsize /*gunav2.keymon.com.mx.cameraexclass._camerasize*/ ()),0); + }else { + //BA.debugLineNum = 7705;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True); + //BA.debugLineNum = 7706;BA.debugLine="Log(\"Cannot open camera\")"; +__c.LogImpl("327131914","Cannot open camera",0); + }; + //BA.debugLineNum = 7708;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p1_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2756;BA.debugLine="Private Sub cb_p1_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2757;BA.debugLine="itemselect8 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect8 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2758;BA.debugLine="Log(itemselect8)"; +__c.LogImpl("315466498",_itemselect8,0); + //BA.debugLineNum = 2759;BA.debugLine="Log(Index)"; +__c.LogImpl("315466499",BA.NumberToString(_index),0); + //BA.debugLineNum = 2760;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p2_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2762;BA.debugLine="Private Sub cb_p2_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2763;BA.debugLine="itemselect9 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect9 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2764;BA.debugLine="Log(itemselect9)"; +__c.LogImpl("315532034",_itemselect9,0); + //BA.debugLineNum = 2765;BA.debugLine="Log(Index)"; +__c.LogImpl("315532035",BA.NumberToString(_index),0); + //BA.debugLineNum = 2766;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p3_m4_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2720;BA.debugLine="Private Sub cb_p3_m4_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2721;BA.debugLine="itemselect2 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect2 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2722;BA.debugLine="Log(itemselect2)"; +__c.LogImpl("315073282",_itemselect2,0); + //BA.debugLineNum = 2723;BA.debugLine="Log(Index)"; +__c.LogImpl("315073283",BA.NumberToString(_index),0); + //BA.debugLineNum = 2724;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p3_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2768;BA.debugLine="Private Sub cb_p3_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2769;BA.debugLine="itemselect10 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect10 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2770;BA.debugLine="Log(itemselect10)"; +__c.LogImpl("315597570",_itemselect10,0); + //BA.debugLineNum = 2771;BA.debugLine="Log(Index)"; +__c.LogImpl("315597571",BA.NumberToString(_index),0); + //BA.debugLineNum = 2772;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p4_1_m4_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2726;BA.debugLine="Private Sub cb_p4_1_m4_SelectedIndexChanged (Index"; + //BA.debugLineNum = 2727;BA.debugLine="itemselect3 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect3 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2728;BA.debugLine="Log(itemselect3)"; +__c.LogImpl("315138818",_itemselect3,0); + //BA.debugLineNum = 2729;BA.debugLine="Log(Index)"; +__c.LogImpl("315138819",BA.NumberToString(_index),0); + //BA.debugLineNum = 2730;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p4_2_m4_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2732;BA.debugLine="Private Sub cb_p4_2_m4_SelectedIndexChanged (Index"; + //BA.debugLineNum = 2733;BA.debugLine="itemselect4 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect4 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2734;BA.debugLine="Log(itemselect4)"; +__c.LogImpl("315204354",_itemselect4,0); + //BA.debugLineNum = 2735;BA.debugLine="Log(Index)"; +__c.LogImpl("315204355",BA.NumberToString(_index),0); + //BA.debugLineNum = 2736;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p4_3_m4_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2738;BA.debugLine="Private Sub cb_p4_3_m4_SelectedIndexChanged (Index"; + //BA.debugLineNum = 2739;BA.debugLine="itemselect5 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect5 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2740;BA.debugLine="Log(itemselect5)"; +__c.LogImpl("315269890",_itemselect5,0); + //BA.debugLineNum = 2741;BA.debugLine="Log(Index)"; +__c.LogImpl("315269891",BA.NumberToString(_index),0); + //BA.debugLineNum = 2742;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p4_4_m4_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2744;BA.debugLine="Private Sub cb_p4_4_m4_SelectedIndexChanged (Index"; + //BA.debugLineNum = 2745;BA.debugLine="itemselect6 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect6 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2746;BA.debugLine="Log(itemselect6)"; +__c.LogImpl("315335426",_itemselect6,0); + //BA.debugLineNum = 2747;BA.debugLine="Log(Index)"; +__c.LogImpl("315335427",BA.NumberToString(_index),0); + //BA.debugLineNum = 2748;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p4_5_m4_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2750;BA.debugLine="Private Sub cb_p4_5_m4_SelectedIndexChanged (Index"; + //BA.debugLineNum = 2751;BA.debugLine="itemselect7 = Sender.As(B4XComboBox).SelectedItem"; +_itemselect7 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2752;BA.debugLine="Log(itemselect7)"; +__c.LogImpl("315400962",_itemselect7,0); + //BA.debugLineNum = 2753;BA.debugLine="Log(Index)"; +__c.LogImpl("315400963",BA.NumberToString(_index),0); + //BA.debugLineNum = 2754;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p4_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2774;BA.debugLine="Private Sub cb_p4_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2775;BA.debugLine="itemselect11 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect11 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2776;BA.debugLine="Log(itemselect11)"; +__c.LogImpl("315663106",_itemselect11,0); + //BA.debugLineNum = 2777;BA.debugLine="Log(Index)"; +__c.LogImpl("315663107",BA.NumberToString(_index),0); + //BA.debugLineNum = 2778;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p5_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2780;BA.debugLine="Private Sub cb_p5_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2781;BA.debugLine="itemselect12 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect12 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2782;BA.debugLine="Log(itemselect12)"; +__c.LogImpl("315728642",_itemselect12,0); + //BA.debugLineNum = 2783;BA.debugLine="Log(Index)"; +__c.LogImpl("315728643",BA.NumberToString(_index),0); + //BA.debugLineNum = 2784;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p6_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2786;BA.debugLine="Private Sub cb_p6_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2787;BA.debugLine="itemselect13 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect13 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2788;BA.debugLine="Log(itemselect13)"; +__c.LogImpl("315794178",_itemselect13,0); + //BA.debugLineNum = 2789;BA.debugLine="Log(Index)"; +__c.LogImpl("315794179",BA.NumberToString(_index),0); + //BA.debugLineNum = 2790;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p7_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2792;BA.debugLine="Private Sub cb_p7_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2793;BA.debugLine="itemselect14 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect14 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2794;BA.debugLine="Log(itemselect14)"; +__c.LogImpl("315859714",_itemselect14,0); + //BA.debugLineNum = 2795;BA.debugLine="Log(Index)"; +__c.LogImpl("315859715",BA.NumberToString(_index),0); + //BA.debugLineNum = 2796;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p8_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2798;BA.debugLine="Private Sub cb_p8_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2799;BA.debugLine="itemselect15 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect15 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2800;BA.debugLine="Log(itemselect15)"; +__c.LogImpl("315925250",_itemselect15,0); + //BA.debugLineNum = 2801;BA.debugLine="Log(Index)"; +__c.LogImpl("315925251",BA.NumberToString(_index),0); + //BA.debugLineNum = 2802;BA.debugLine="End Sub"; +return ""; +} +public String _cb_p9_m5_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2804;BA.debugLine="Private Sub cb_p9_m5_SelectedIndexChanged (Index A"; + //BA.debugLineNum = 2805;BA.debugLine="itemselect16 = Sender.As(B4XComboBox).SelectedIte"; +_itemselect16 = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2806;BA.debugLine="Log(itemselect16)"; +__c.LogImpl("315990786",_itemselect16,0); + //BA.debugLineNum = 2807;BA.debugLine="Log(Index)"; +__c.LogImpl("315990787",BA.NumberToString(_index),0); + //BA.debugLineNum = 2808;BA.debugLine="End Sub"; +return ""; +} +public String _cb_pregunta_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2387;BA.debugLine="Private Sub cb_pregunta_SelectedIndexChanged (Inde"; + //BA.debugLineNum = 2388;BA.debugLine="girotienda = Sender.As(B4XComboBox).SelectedItem"; +_girotienda = ((gunav2.keymon.com.mx.b4xcombobox)(__c.Sender(ba)))._getselecteditem /*String*/ (); + //BA.debugLineNum = 2389;BA.debugLine="Log(girotienda)"; +__c.LogImpl("314942210",_girotienda,0); + //BA.debugLineNum = 2390;BA.debugLine="Log(Index)"; +__c.LogImpl("314942211",BA.NumberToString(_index),0); + //BA.debugLineNum = 2391;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p3_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5692;BA.debugLine="Private Sub CB1_P3_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5693;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + //BA.debugLineNum = 5694;BA.debugLine="If CB1_P3_M2.Checked Then"; +if (_cb1_p3_m2.getChecked()) { + //BA.debugLineNum = 5695;BA.debugLine="textemp2 = CB1_P3_M2.Text"; +_textemp2 = _cb1_p3_m2.getText(); + }else { + //BA.debugLineNum = 5697;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + }; + //BA.debugLineNum = 5699;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb2_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();}; + //BA.debugLineNum = 5700;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb3_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();}; + //BA.debugLineNum = 5701;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb4_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();}; + //BA.debugLineNum = 5702;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb5_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();}; + //BA.debugLineNum = 5703;BA.debugLine="Log(textemp2)"; +__c.LogImpl("321757963",_textemp2,0); + //BA.debugLineNum = 5704;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p3_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5819;BA.debugLine="Private Sub CB1_P3_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5820;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + //BA.debugLineNum = 5821;BA.debugLine="If CB1_P3_M3.Checked Then"; +if (_cb1_p3_m3.getChecked()) { + //BA.debugLineNum = 5822;BA.debugLine="textemp4 = CB1_P3_M3.Text"; +_textemp4 = _cb1_p3_m3.getText(); + }else { + //BA.debugLineNum = 5824;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + }; + //BA.debugLineNum = 5826;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb2_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();}; + //BA.debugLineNum = 5827;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb3_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();}; + //BA.debugLineNum = 5828;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb4_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();}; + //BA.debugLineNum = 5829;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb5_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();}; + //BA.debugLineNum = 5830;BA.debugLine="Log(textemp4)"; +__c.LogImpl("322347787",_textemp4,0); + //BA.debugLineNum = 5831;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p4_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5764;BA.debugLine="Private Sub CB1_P4_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5765;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + //BA.debugLineNum = 5766;BA.debugLine="If CB1_P4_M2.Checked Then"; +if (_cb1_p4_m2.getChecked()) { + //BA.debugLineNum = 5767;BA.debugLine="textemp3 = CB1_P4_M2.Text"; +_textemp3 = _cb1_p4_m2.getText(); + }else { + //BA.debugLineNum = 5769;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + }; + //BA.debugLineNum = 5771;BA.debugLine="If CB2_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb2_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb2_p4_m2.getText();}; + //BA.debugLineNum = 5772;BA.debugLine="If CB3_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb3_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb3_p4_m2.getText();}; + //BA.debugLineNum = 5773;BA.debugLine="If CB4_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb4_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb4_p4_m2.getText();}; + //BA.debugLineNum = 5774;BA.debugLine="Log(textemp3)"; +__c.LogImpl("322085642",_textemp3,0); + //BA.debugLineNum = 5775;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p4_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5891;BA.debugLine="Private Sub CB1_P4_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5892;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + //BA.debugLineNum = 5893;BA.debugLine="CB5_P4_M3.Checked = False"; +_cb5_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5894;BA.debugLine="If CB1_P4_M3.Checked Then"; +if (_cb1_p4_m3.getChecked()) { + //BA.debugLineNum = 5895;BA.debugLine="textemp5 = CB1_P4_M3.Text"; +_textemp5 = _cb1_p4_m3.getText(); + }else { + //BA.debugLineNum = 5897;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + }; + //BA.debugLineNum = 5899;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb2_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();}; + //BA.debugLineNum = 5900;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb3_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();}; + //BA.debugLineNum = 5901;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb4_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();}; + //BA.debugLineNum = 5902;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb5_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();}; + //BA.debugLineNum = 5903;BA.debugLine="Log(textemp5)"; +__c.LogImpl("322675468",_textemp5,0); + //BA.debugLineNum = 5904;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5972;BA.debugLine="Private Sub CB1_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5973;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 5974;BA.debugLine="If CB1_P6_M3.Checked Then"; +if (_cb1_p6_m3.getChecked()) { + //BA.debugLineNum = 5975;BA.debugLine="textemp6 = CB1_P6_M3.Text"; +_textemp6 = _cb1_p6_m3.getText(); + }else { + //BA.debugLineNum = 5977;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 5979;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb2_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();}; + //BA.debugLineNum = 5980;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb3_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();}; + //BA.debugLineNum = 5981;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb4_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();}; + //BA.debugLineNum = 5982;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb5_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();}; + //BA.debugLineNum = 5983;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb6_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();}; + //BA.debugLineNum = 5984;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb7_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();}; + //BA.debugLineNum = 5985;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323003149",_textemp6,0); + //BA.debugLineNum = 5986;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p7_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6084;BA.debugLine="Private Sub CB1_P7_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6085;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + //BA.debugLineNum = 6086;BA.debugLine="If CB1_P7_M3.Checked Then"; +if (_cb1_p7_m3.getChecked()) { + //BA.debugLineNum = 6087;BA.debugLine="textemp7 = CB1_P7_M3.Text"; +_textemp7 = _cb1_p7_m3.getText(); + }else { + //BA.debugLineNum = 6089;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + }; + //BA.debugLineNum = 6091;BA.debugLine="If CB2_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb2_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb2_p7_m3.getText();}; + //BA.debugLineNum = 6092;BA.debugLine="If CB3_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb3_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb3_p7_m3.getText();}; + //BA.debugLineNum = 6093;BA.debugLine="If CB4_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb4_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb4_p7_m3.getText();}; + //BA.debugLineNum = 6094;BA.debugLine="Log(textemp7)"; +__c.LogImpl("323461898",_textemp7,0); + //BA.debugLineNum = 6095;BA.debugLine="End Sub"; +return ""; +} +public String _cb1_p8_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6141;BA.debugLine="Private Sub CB1_P8_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6142;BA.debugLine="textemp8 = \"\""; +_textemp8 = ""; + //BA.debugLineNum = 6143;BA.debugLine="textemp8 = CB1_P8_M3.Text"; +_textemp8 = _cb1_p8_m3.getText(); + //BA.debugLineNum = 6144;BA.debugLine="If CB2_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb2_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb2_p8_m3.getText();}; + //BA.debugLineNum = 6145;BA.debugLine="If CB3_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb3_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb3_p8_m3.getText();}; + //BA.debugLineNum = 6146;BA.debugLine="If CB4_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb4_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb4_p8_m3.getText();}; + //BA.debugLineNum = 6147;BA.debugLine="Log(textemp8)"; +__c.LogImpl("323724038",_textemp8,0); + //BA.debugLineNum = 6148;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p3_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5706;BA.debugLine="Private Sub CB2_P3_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5707;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + //BA.debugLineNum = 5708;BA.debugLine="If CB2_P3_M2.Checked Then"; +if (_cb2_p3_m2.getChecked()) { + //BA.debugLineNum = 5709;BA.debugLine="textemp2 = CB2_P3_M2.Text"; +_textemp2 = _cb2_p3_m2.getText(); + }else { + //BA.debugLineNum = 5711;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + }; + //BA.debugLineNum = 5713;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb1_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();}; + //BA.debugLineNum = 5714;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb3_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();}; + //BA.debugLineNum = 5715;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb4_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();}; + //BA.debugLineNum = 5716;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb5_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();}; + //BA.debugLineNum = 5717;BA.debugLine="Log(textemp2)"; +__c.LogImpl("321823499",_textemp2,0); + //BA.debugLineNum = 5718;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p3_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5833;BA.debugLine="Private Sub CB2_P3_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5834;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + //BA.debugLineNum = 5835;BA.debugLine="If CB2_P3_M3.Checked Then"; +if (_cb2_p3_m3.getChecked()) { + //BA.debugLineNum = 5836;BA.debugLine="textemp4 = CB2_P3_M3.Text"; +_textemp4 = _cb2_p3_m3.getText(); + }else { + //BA.debugLineNum = 5838;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + }; + //BA.debugLineNum = 5840;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb1_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();}; + //BA.debugLineNum = 5841;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb3_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();}; + //BA.debugLineNum = 5842;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb4_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();}; + //BA.debugLineNum = 5843;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb5_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();}; + //BA.debugLineNum = 5844;BA.debugLine="Log(textemp4)"; +__c.LogImpl("322413323",_textemp4,0); + //BA.debugLineNum = 5845;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p4_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5777;BA.debugLine="Private Sub CB2_P4_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5778;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + //BA.debugLineNum = 5779;BA.debugLine="If CB2_P4_M2.Checked Then"; +if (_cb2_p4_m2.getChecked()) { + //BA.debugLineNum = 5780;BA.debugLine="textemp3 = CB2_P4_M2.Text"; +_textemp3 = _cb2_p4_m2.getText(); + }else { + //BA.debugLineNum = 5782;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + }; + //BA.debugLineNum = 5784;BA.debugLine="If CB1_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb1_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb1_p4_m2.getText();}; + //BA.debugLineNum = 5785;BA.debugLine="If CB3_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb3_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb3_p4_m2.getText();}; + //BA.debugLineNum = 5786;BA.debugLine="If CB4_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb4_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb4_p4_m2.getText();}; + //BA.debugLineNum = 5787;BA.debugLine="Log(textemp3)"; +__c.LogImpl("322151178",_textemp3,0); + //BA.debugLineNum = 5788;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p4_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5906;BA.debugLine="Private Sub CB2_P4_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5907;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + //BA.debugLineNum = 5908;BA.debugLine="CB5_P4_M3.Checked = False"; +_cb5_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5909;BA.debugLine="If CB2_P4_M3.Checked Then"; +if (_cb2_p4_m3.getChecked()) { + //BA.debugLineNum = 5910;BA.debugLine="textemp5 = CB2_P4_M3.Text"; +_textemp5 = _cb2_p4_m3.getText(); + }else { + //BA.debugLineNum = 5912;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + }; + //BA.debugLineNum = 5914;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb1_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();}; + //BA.debugLineNum = 5915;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb3_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();}; + //BA.debugLineNum = 5916;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb4_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();}; + //BA.debugLineNum = 5917;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb5_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();}; + //BA.debugLineNum = 5918;BA.debugLine="Log(textemp5)"; +__c.LogImpl("322741004",_textemp5,0); + //BA.debugLineNum = 5919;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5988;BA.debugLine="Private Sub CB2_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5989;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 5990;BA.debugLine="If CB2_P6_M3.Checked Then"; +if (_cb2_p6_m3.getChecked()) { + //BA.debugLineNum = 5991;BA.debugLine="textemp6 = CB2_P6_M3.Text"; +_textemp6 = _cb2_p6_m3.getText(); + }else { + //BA.debugLineNum = 5993;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 5995;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb1_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();}; + //BA.debugLineNum = 5996;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb3_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();}; + //BA.debugLineNum = 5997;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb4_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();}; + //BA.debugLineNum = 5998;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb5_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();}; + //BA.debugLineNum = 5999;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb6_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();}; + //BA.debugLineNum = 6000;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb7_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();}; + //BA.debugLineNum = 6001;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323068685",_textemp6,0); + //BA.debugLineNum = 6002;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p7_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6097;BA.debugLine="Private Sub CB2_P7_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6098;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + //BA.debugLineNum = 6099;BA.debugLine="If CB2_P7_M3.Checked Then"; +if (_cb2_p7_m3.getChecked()) { + //BA.debugLineNum = 6100;BA.debugLine="textemp7 = CB2_P7_M3.Text"; +_textemp7 = _cb2_p7_m3.getText(); + }else { + //BA.debugLineNum = 6102;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + }; + //BA.debugLineNum = 6104;BA.debugLine="If CB1_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb1_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb1_p7_m3.getText();}; + //BA.debugLineNum = 6105;BA.debugLine="If CB3_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb3_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb3_p7_m3.getText();}; + //BA.debugLineNum = 6106;BA.debugLine="If CB4_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb4_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb4_p7_m3.getText();}; + //BA.debugLineNum = 6107;BA.debugLine="Log(textemp7)"; +__c.LogImpl("323527434",_textemp7,0); + //BA.debugLineNum = 6108;BA.debugLine="End Sub"; +return ""; +} +public String _cb2_p8_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6150;BA.debugLine="Private Sub CB2_P8_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6151;BA.debugLine="textemp8 = \"\""; +_textemp8 = ""; + //BA.debugLineNum = 6152;BA.debugLine="textemp8 = CB2_P8_M3.Text"; +_textemp8 = _cb2_p8_m3.getText(); + //BA.debugLineNum = 6153;BA.debugLine="If CB1_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb1_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb1_p8_m3.getText();}; + //BA.debugLineNum = 6154;BA.debugLine="If CB3_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb3_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb3_p8_m3.getText();}; + //BA.debugLineNum = 6155;BA.debugLine="If CB4_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb4_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb4_p8_m3.getText();}; + //BA.debugLineNum = 6156;BA.debugLine="Log(textemp8)"; +__c.LogImpl("323789574",_textemp8,0); + //BA.debugLineNum = 6157;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p3_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5720;BA.debugLine="Private Sub CB3_P3_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5721;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + //BA.debugLineNum = 5722;BA.debugLine="If CB3_P3_M2.Checked Then"; +if (_cb3_p3_m2.getChecked()) { + //BA.debugLineNum = 5723;BA.debugLine="textemp2 = CB3_P3_M2.Text"; +_textemp2 = _cb3_p3_m2.getText(); + }else { + //BA.debugLineNum = 5725;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + }; + //BA.debugLineNum = 5727;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb1_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();}; + //BA.debugLineNum = 5728;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb2_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();}; + //BA.debugLineNum = 5729;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb4_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();}; + //BA.debugLineNum = 5730;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb5_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();}; + //BA.debugLineNum = 5731;BA.debugLine="Log(textemp2)"; +__c.LogImpl("321889035",_textemp2,0); + //BA.debugLineNum = 5732;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p3_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5847;BA.debugLine="Private Sub CB3_P3_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5848;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + //BA.debugLineNum = 5849;BA.debugLine="If CB3_P3_M3.Checked Then"; +if (_cb3_p3_m3.getChecked()) { + //BA.debugLineNum = 5850;BA.debugLine="textemp4 = CB3_P3_M3.Text"; +_textemp4 = _cb3_p3_m3.getText(); + }else { + //BA.debugLineNum = 5852;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + }; + //BA.debugLineNum = 5854;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb1_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();}; + //BA.debugLineNum = 5855;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb2_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();}; + //BA.debugLineNum = 5856;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb4_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();}; + //BA.debugLineNum = 5857;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb5_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();}; + //BA.debugLineNum = 5858;BA.debugLine="Log(textemp4)"; +__c.LogImpl("322478859",_textemp4,0); + //BA.debugLineNum = 5859;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p4_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5790;BA.debugLine="Private Sub CB3_P4_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5791;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + //BA.debugLineNum = 5792;BA.debugLine="If CB3_P4_M2.Checked Then"; +if (_cb3_p4_m2.getChecked()) { + //BA.debugLineNum = 5793;BA.debugLine="textemp3 = CB3_P4_M2.Text"; +_textemp3 = _cb3_p4_m2.getText(); + }else { + //BA.debugLineNum = 5795;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + }; + //BA.debugLineNum = 5797;BA.debugLine="If CB1_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb1_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb1_p4_m2.getText();}; + //BA.debugLineNum = 5798;BA.debugLine="If CB2_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb2_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb2_p4_m2.getText();}; + //BA.debugLineNum = 5799;BA.debugLine="If CB4_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb4_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb4_p4_m2.getText();}; + //BA.debugLineNum = 5800;BA.debugLine="Log(textemp3)"; +__c.LogImpl("322216714",_textemp3,0); + //BA.debugLineNum = 5801;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p4_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5921;BA.debugLine="Private Sub CB3_P4_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5922;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + //BA.debugLineNum = 5923;BA.debugLine="CB5_P4_M3.Checked = False"; +_cb5_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5924;BA.debugLine="If CB3_P4_M3.Checked Then"; +if (_cb3_p4_m3.getChecked()) { + //BA.debugLineNum = 5925;BA.debugLine="textemp5 = CB3_P4_M3.Text"; +_textemp5 = _cb3_p4_m3.getText(); + }else { + //BA.debugLineNum = 5927;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + }; + //BA.debugLineNum = 5929;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb1_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();}; + //BA.debugLineNum = 5930;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb2_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();}; + //BA.debugLineNum = 5931;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb4_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();}; + //BA.debugLineNum = 5932;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb5_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();}; + //BA.debugLineNum = 5933;BA.debugLine="Log(textemp5)"; +__c.LogImpl("322806540",_textemp5,0); + //BA.debugLineNum = 5934;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6004;BA.debugLine="Private Sub CB3_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6005;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 6006;BA.debugLine="If CB3_P6_M3.Checked Then"; +if (_cb3_p6_m3.getChecked()) { + //BA.debugLineNum = 6007;BA.debugLine="textemp6 = CB3_P6_M3.Text"; +_textemp6 = _cb3_p6_m3.getText(); + }else { + //BA.debugLineNum = 6009;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 6011;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb1_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();}; + //BA.debugLineNum = 6012;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb2_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();}; + //BA.debugLineNum = 6013;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb4_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();}; + //BA.debugLineNum = 6014;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb5_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();}; + //BA.debugLineNum = 6015;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb6_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();}; + //BA.debugLineNum = 6016;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb7_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();}; + //BA.debugLineNum = 6017;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323134221",_textemp6,0); + //BA.debugLineNum = 6018;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p7_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6110;BA.debugLine="Private Sub CB3_P7_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6111;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + //BA.debugLineNum = 6112;BA.debugLine="If CB3_P7_M3.Checked Then"; +if (_cb3_p7_m3.getChecked()) { + //BA.debugLineNum = 6113;BA.debugLine="textemp7 = CB3_P7_M3.Text"; +_textemp7 = _cb3_p7_m3.getText(); + }else { + //BA.debugLineNum = 6115;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + }; + //BA.debugLineNum = 6117;BA.debugLine="If CB1_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb1_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb1_p7_m3.getText();}; + //BA.debugLineNum = 6118;BA.debugLine="If CB2_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb2_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb2_p7_m3.getText();}; + //BA.debugLineNum = 6119;BA.debugLine="If CB4_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb4_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb4_p7_m3.getText();}; + //BA.debugLineNum = 6120;BA.debugLine="Log(textemp7)"; +__c.LogImpl("323592970",_textemp7,0); + //BA.debugLineNum = 6121;BA.debugLine="End Sub"; +return ""; +} +public String _cb3_p8_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6159;BA.debugLine="Private Sub CB3_P8_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6160;BA.debugLine="textemp8 = \"\""; +_textemp8 = ""; + //BA.debugLineNum = 6161;BA.debugLine="textemp8 = CB3_P8_M3.Text"; +_textemp8 = _cb3_p8_m3.getText(); + //BA.debugLineNum = 6162;BA.debugLine="If CB1_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb1_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb1_p8_m3.getText();}; + //BA.debugLineNum = 6163;BA.debugLine="If CB2_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb2_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb2_p8_m3.getText();}; + //BA.debugLineNum = 6164;BA.debugLine="If CB4_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb4_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb4_p8_m3.getText();}; + //BA.debugLineNum = 6165;BA.debugLine="Log(textemp8)"; +__c.LogImpl("323855110",_textemp8,0); + //BA.debugLineNum = 6166;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p3_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5734;BA.debugLine="Private Sub CB4_P3_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5735;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + //BA.debugLineNum = 5736;BA.debugLine="If CB4_P3_M2.Checked Then"; +if (_cb4_p3_m2.getChecked()) { + //BA.debugLineNum = 5737;BA.debugLine="textemp2 = CB4_P3_M2.Text"; +_textemp2 = _cb4_p3_m2.getText(); + }else { + //BA.debugLineNum = 5739;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + }; + //BA.debugLineNum = 5741;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb1_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();}; + //BA.debugLineNum = 5742;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb2_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();}; + //BA.debugLineNum = 5743;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb3_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();}; + //BA.debugLineNum = 5744;BA.debugLine="If CB5_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb5_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb5_p3_m2.getText();}; + //BA.debugLineNum = 5745;BA.debugLine="Log(textemp2)"; +__c.LogImpl("321954571",_textemp2,0); + //BA.debugLineNum = 5746;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p3_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5861;BA.debugLine="Private Sub CB4_P3_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5862;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + //BA.debugLineNum = 5863;BA.debugLine="If CB4_P3_M3.Checked Then"; +if (_cb4_p3_m3.getChecked()) { + //BA.debugLineNum = 5864;BA.debugLine="textemp4 = CB4_P3_M3.Text"; +_textemp4 = _cb4_p3_m3.getText(); + }else { + //BA.debugLineNum = 5866;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + }; + //BA.debugLineNum = 5868;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb1_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();}; + //BA.debugLineNum = 5869;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb2_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();}; + //BA.debugLineNum = 5870;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb3_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();}; + //BA.debugLineNum = 5871;BA.debugLine="If CB5_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb5_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb5_p3_m3.getText();}; + //BA.debugLineNum = 5872;BA.debugLine="Log(textemp4)"; +__c.LogImpl("322544395",_textemp4,0); + //BA.debugLineNum = 5873;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p4_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5803;BA.debugLine="Private Sub CB4_P4_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5804;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + //BA.debugLineNum = 5805;BA.debugLine="If CB4_P4_M2.Checked Then"; +if (_cb4_p4_m2.getChecked()) { + //BA.debugLineNum = 5806;BA.debugLine="textemp3 = CB4_P4_M2.Text"; +_textemp3 = _cb4_p4_m2.getText(); + }else { + //BA.debugLineNum = 5808;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + }; + //BA.debugLineNum = 5810;BA.debugLine="If CB1_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb1_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb1_p4_m2.getText();}; + //BA.debugLineNum = 5811;BA.debugLine="If CB2_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb2_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb2_p4_m2.getText();}; + //BA.debugLineNum = 5812;BA.debugLine="If CB3_P4_M2.Checked Then textemp3 = textemp3 & \""; +if (_cb3_p4_m2.getChecked()) { +_textemp3 = _textemp3+", "+_cb3_p4_m2.getText();}; + //BA.debugLineNum = 5813;BA.debugLine="Log(textemp3)"; +__c.LogImpl("322282250",_textemp3,0); + //BA.debugLineNum = 5814;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p4_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5936;BA.debugLine="Private Sub CB4_P4_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5937;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + //BA.debugLineNum = 5938;BA.debugLine="CB5_P4_M3.Checked = False"; +_cb5_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5939;BA.debugLine="If CB4_P4_M3.Checked Then"; +if (_cb4_p4_m3.getChecked()) { + //BA.debugLineNum = 5940;BA.debugLine="textemp5 = CB4_P4_M3.Text"; +_textemp5 = _cb4_p4_m3.getText(); + }else { + //BA.debugLineNum = 5942;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + }; + //BA.debugLineNum = 5944;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb1_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();}; + //BA.debugLineNum = 5945;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb2_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();}; + //BA.debugLineNum = 5946;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb3_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();}; + //BA.debugLineNum = 5947;BA.debugLine="If CB5_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb5_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb5_p4_m3.getText();}; + //BA.debugLineNum = 5948;BA.debugLine="Log(textemp5)"; +__c.LogImpl("322872076",_textemp5,0); + //BA.debugLineNum = 5949;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6020;BA.debugLine="Private Sub CB4_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6021;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 6022;BA.debugLine="If CB4_P6_M3.Checked Then"; +if (_cb4_p6_m3.getChecked()) { + //BA.debugLineNum = 6023;BA.debugLine="textemp6 = CB4_P6_M3.Text"; +_textemp6 = _cb4_p6_m3.getText(); + }else { + //BA.debugLineNum = 6025;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 6027;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb1_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();}; + //BA.debugLineNum = 6028;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb2_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();}; + //BA.debugLineNum = 6029;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb3_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();}; + //BA.debugLineNum = 6030;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb5_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();}; + //BA.debugLineNum = 6031;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb6_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();}; + //BA.debugLineNum = 6032;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb7_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();}; + //BA.debugLineNum = 6033;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323199757",_textemp6,0); + //BA.debugLineNum = 6034;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p7_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6123;BA.debugLine="Private Sub CB4_P7_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6124;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + //BA.debugLineNum = 6125;BA.debugLine="If CB4_P7_M3.Checked Then"; +if (_cb4_p7_m3.getChecked()) { + //BA.debugLineNum = 6126;BA.debugLine="textemp7 = CB4_P7_M3.Text"; +_textemp7 = _cb4_p7_m3.getText(); + }else { + //BA.debugLineNum = 6128;BA.debugLine="textemp7 = \"\""; +_textemp7 = ""; + }; + //BA.debugLineNum = 6130;BA.debugLine="If CB1_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb1_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb1_p7_m3.getText();}; + //BA.debugLineNum = 6131;BA.debugLine="If CB2_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb2_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb2_p7_m3.getText();}; + //BA.debugLineNum = 6132;BA.debugLine="If CB3_P7_M3.Checked Then textemp7 = textemp7 & \""; +if (_cb3_p7_m3.getChecked()) { +_textemp7 = _textemp7+", "+_cb3_p7_m3.getText();}; + //BA.debugLineNum = 6133;BA.debugLine="Log(textemp7)"; +__c.LogImpl("323658506",_textemp7,0); + //BA.debugLineNum = 6134;BA.debugLine="End Sub"; +return ""; +} +public String _cb4_p8_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6168;BA.debugLine="Private Sub CB4_P8_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6169;BA.debugLine="textemp8 = \"\""; +_textemp8 = ""; + //BA.debugLineNum = 6170;BA.debugLine="textemp8 = CB4_P8_M3.Text"; +_textemp8 = _cb4_p8_m3.getText(); + //BA.debugLineNum = 6171;BA.debugLine="If CB1_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb1_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb1_p8_m3.getText();}; + //BA.debugLineNum = 6172;BA.debugLine="If CB2_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb2_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb2_p8_m3.getText();}; + //BA.debugLineNum = 6173;BA.debugLine="If CB3_P8_M3.Checked Then textemp8 = textemp8 & \""; +if (_cb3_p8_m3.getChecked()) { +_textemp8 = _textemp8+", "+_cb3_p8_m3.getText();}; + //BA.debugLineNum = 6174;BA.debugLine="Log(textemp8)"; +__c.LogImpl("323920646",_textemp8,0); + //BA.debugLineNum = 6175;BA.debugLine="End Sub"; +return ""; +} +public String _cb5_p3_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5748;BA.debugLine="Private Sub CB5_P3_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5749;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + //BA.debugLineNum = 5750;BA.debugLine="If CB5_P3_M2.Checked Then"; +if (_cb5_p3_m2.getChecked()) { + //BA.debugLineNum = 5751;BA.debugLine="textemp2 = CB5_P3_M2.Text"; +_textemp2 = _cb5_p3_m2.getText(); + }else { + //BA.debugLineNum = 5753;BA.debugLine="textemp2 = \"\""; +_textemp2 = ""; + }; + //BA.debugLineNum = 5755;BA.debugLine="If CB1_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb1_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb1_p3_m2.getText();}; + //BA.debugLineNum = 5756;BA.debugLine="If CB2_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb2_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb2_p3_m2.getText();}; + //BA.debugLineNum = 5757;BA.debugLine="If CB3_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb3_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb3_p3_m2.getText();}; + //BA.debugLineNum = 5758;BA.debugLine="If CB4_P3_M2.Checked Then textemp2 = textemp2 & \""; +if (_cb4_p3_m2.getChecked()) { +_textemp2 = _textemp2+", "+_cb4_p3_m2.getText();}; + //BA.debugLineNum = 5759;BA.debugLine="Log(textemp2)"; +__c.LogImpl("322020107",_textemp2,0); + //BA.debugLineNum = 5760;BA.debugLine="End Sub"; +return ""; +} +public String _cb5_p3_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5875;BA.debugLine="Private Sub CB5_P3_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5876;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + //BA.debugLineNum = 5877;BA.debugLine="If CB5_P3_M3.Checked Then"; +if (_cb5_p3_m3.getChecked()) { + //BA.debugLineNum = 5878;BA.debugLine="textemp4 = CB5_P3_M3.Text"; +_textemp4 = _cb5_p3_m3.getText(); + }else { + //BA.debugLineNum = 5880;BA.debugLine="textemp4 = \"\""; +_textemp4 = ""; + }; + //BA.debugLineNum = 5882;BA.debugLine="If CB1_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb1_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb1_p3_m3.getText();}; + //BA.debugLineNum = 5883;BA.debugLine="If CB2_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb2_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb2_p3_m3.getText();}; + //BA.debugLineNum = 5884;BA.debugLine="If CB3_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb3_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb3_p3_m3.getText();}; + //BA.debugLineNum = 5885;BA.debugLine="If CB4_P3_M3.Checked Then textemp4 = textemp4 & \""; +if (_cb4_p3_m3.getChecked()) { +_textemp4 = _textemp4+", "+_cb4_p3_m3.getText();}; + //BA.debugLineNum = 5886;BA.debugLine="Log(textemp4)"; +__c.LogImpl("322609931",_textemp4,0); + //BA.debugLineNum = 5887;BA.debugLine="End Sub"; +return ""; +} +public String _cb5_p4_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5951;BA.debugLine="Private Sub CB5_P4_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5952;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + //BA.debugLineNum = 5953;BA.debugLine="CB1_P4_M3.Checked = False"; +_cb1_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5954;BA.debugLine="CB2_P4_M3.Checked = False"; +_cb2_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5955;BA.debugLine="CB3_P4_M3.Checked = False"; +_cb3_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5956;BA.debugLine="CB4_P4_M3.Checked = False"; +_cb4_p4_m3.setChecked(__c.False); + //BA.debugLineNum = 5957;BA.debugLine="If CB5_P4_M3.Checked Then"; +if (_cb5_p4_m3.getChecked()) { + //BA.debugLineNum = 5958;BA.debugLine="textemp5 = CB5_P4_M3.Text"; +_textemp5 = _cb5_p4_m3.getText(); + }else { + //BA.debugLineNum = 5960;BA.debugLine="textemp5 = \"\""; +_textemp5 = ""; + }; + //BA.debugLineNum = 5962;BA.debugLine="If CB1_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb1_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb1_p4_m3.getText();}; + //BA.debugLineNum = 5963;BA.debugLine="If CB2_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb2_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb2_p4_m3.getText();}; + //BA.debugLineNum = 5964;BA.debugLine="If CB3_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb3_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb3_p4_m3.getText();}; + //BA.debugLineNum = 5965;BA.debugLine="If CB4_P4_M3.Checked Then textemp5 = textemp5 & \""; +if (_cb4_p4_m3.getChecked()) { +_textemp5 = _textemp5+", "+_cb4_p4_m3.getText();}; + //BA.debugLineNum = 5966;BA.debugLine="Log(textemp5)"; +__c.LogImpl("322937615",_textemp5,0); + //BA.debugLineNum = 5967;BA.debugLine="End Sub"; +return ""; +} +public String _cb5_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6036;BA.debugLine="Private Sub CB5_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6037;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 6038;BA.debugLine="If CB5_P6_M3.Checked Then"; +if (_cb5_p6_m3.getChecked()) { + //BA.debugLineNum = 6039;BA.debugLine="textemp6 = CB5_P6_M3.Text"; +_textemp6 = _cb5_p6_m3.getText(); + }else { + //BA.debugLineNum = 6041;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 6043;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb1_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();}; + //BA.debugLineNum = 6044;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb2_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();}; + //BA.debugLineNum = 6045;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb3_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();}; + //BA.debugLineNum = 6046;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb4_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();}; + //BA.debugLineNum = 6047;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb6_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();}; + //BA.debugLineNum = 6048;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb7_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();}; + //BA.debugLineNum = 6049;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323265293",_textemp6,0); + //BA.debugLineNum = 6050;BA.debugLine="End Sub"; +return ""; +} +public String _cb6_p3_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5144;BA.debugLine="Private Sub CB6_P3_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5145;BA.debugLine="If CB6_P3_M2.Checked = True Then"; +if (_cb6_p3_m2.getChecked()==__c.True) { + //BA.debugLineNum = 5146;BA.debugLine="Panel7_M2.Visible = True"; +_panel7_m2.setVisible(__c.True); + }else { + //BA.debugLineNum = 5148;BA.debugLine="Panel7_M2.Visible = False"; +_panel7_m2.setVisible(__c.False); + }; + //BA.debugLineNum = 5152;BA.debugLine="End Sub"; +return ""; +} +public String _cb6_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6052;BA.debugLine="Private Sub CB6_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6053;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 6054;BA.debugLine="If CB6_P6_M3.Checked Then"; +if (_cb6_p6_m3.getChecked()) { + //BA.debugLineNum = 6055;BA.debugLine="textemp6 = CB6_P6_M3.Text"; +_textemp6 = _cb6_p6_m3.getText(); + }else { + //BA.debugLineNum = 6057;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 6059;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb1_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();}; + //BA.debugLineNum = 6060;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb2_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();}; + //BA.debugLineNum = 6061;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb3_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();}; + //BA.debugLineNum = 6062;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb4_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();}; + //BA.debugLineNum = 6063;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb5_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();}; + //BA.debugLineNum = 6064;BA.debugLine="If CB7_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb7_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb7_p6_m3.getText();}; + //BA.debugLineNum = 6065;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323330829",_textemp6,0); + //BA.debugLineNum = 6066;BA.debugLine="End Sub"; +return ""; +} +public String _cb7_p6_m3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 6068;BA.debugLine="Private Sub CB7_P6_M3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 6069;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + //BA.debugLineNum = 6070;BA.debugLine="If CB7_P6_M3.Checked Then"; +if (_cb7_p6_m3.getChecked()) { + //BA.debugLineNum = 6071;BA.debugLine="textemp6 = CB7_P6_M3.Text"; +_textemp6 = _cb7_p6_m3.getText(); + }else { + //BA.debugLineNum = 6073;BA.debugLine="textemp6 = \"\""; +_textemp6 = ""; + }; + //BA.debugLineNum = 6075;BA.debugLine="If CB1_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb1_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb1_p6_m3.getText();}; + //BA.debugLineNum = 6076;BA.debugLine="If CB2_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb2_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb2_p6_m3.getText();}; + //BA.debugLineNum = 6077;BA.debugLine="If CB3_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb3_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb3_p6_m3.getText();}; + //BA.debugLineNum = 6078;BA.debugLine="If CB4_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb4_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb4_p6_m3.getText();}; + //BA.debugLineNum = 6079;BA.debugLine="If CB5_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb5_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb5_p6_m3.getText();}; + //BA.debugLineNum = 6080;BA.debugLine="If CB6_P6_M3.Checked Then textemp6 = textemp6 & \""; +if (_cb6_p6_m3.getChecked()) { +_textemp6 = _textemp6+", "+_cb6_p6_m3.getText();}; + //BA.debugLineNum = 6081;BA.debugLine="Log(textemp6)"; +__c.LogImpl("323396365",_textemp6,0); + //BA.debugLineNum = 6082;BA.debugLine="End Sub"; +return ""; +} +public int _centropantalla() throws Exception{ +int _anchopantalla = 0; + //BA.debugLineNum = 6420;BA.debugLine="Sub centroPantalla As Int"; + //BA.debugLineNum = 6421;BA.debugLine="Private anchoPantalla As Int = GetDeviceLayoutVal"; +_anchopantalla = __c.GetDeviceLayoutValues(ba).Width; + //BA.debugLineNum = 6422;BA.debugLine="Private anchoPantalla As Int = Root.Width"; +_anchopantalla = _root.getWidth(); + //BA.debugLineNum = 6423;BA.debugLine="Return anchoPantalla/2"; +if (true) return (int) (_anchopantalla/(double)2); + //BA.debugLineNum = 6424;BA.debugLine="End Sub"; +return 0; +} +public String _ch_factura_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 7810;BA.debugLine="Private Sub CH_FACTURA_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 7812;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox1_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4838;BA.debugLine="Private Sub CheckBox1_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4839;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4840;BA.debugLine="textemp = CheckBox1.Text"; +_textemp = _checkbox1.getText(); + //BA.debugLineNum = 4841;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4842;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4843;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4844;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4845;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4846;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4847;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4848;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4849;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319922955",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4850;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox2_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4852;BA.debugLine="Private Sub CheckBox2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4853;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4854;BA.debugLine="textemp = CheckBox2.Text"; +_textemp = _checkbox2.getText(); + //BA.debugLineNum = 4855;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4856;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4857;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4858;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4859;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4860;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4861;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4862;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4863;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319988491",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4864;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox3_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4866;BA.debugLine="Private Sub CheckBox3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4867;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4868;BA.debugLine="textemp = CheckBox3.Text"; +_textemp = _checkbox3.getText(); + //BA.debugLineNum = 4869;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4870;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4871;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4872;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4873;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4874;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4875;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4876;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4877;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("320054027",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4878;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox4_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4880;BA.debugLine="Private Sub CheckBox4_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4881;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4882;BA.debugLine="textemp = CheckBox4.Text"; +_textemp = _checkbox4.getText(); + //BA.debugLineNum = 4883;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4884;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4885;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4886;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4887;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4888;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4889;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4890;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4891;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("320119563",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4892;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox5_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4894;BA.debugLine="Private Sub CheckBox5_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4895;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4896;BA.debugLine="textemp = CheckBox5.Text"; +_textemp = _checkbox5.getText(); + //BA.debugLineNum = 4897;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4898;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4899;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4900;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4901;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4902;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4903;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4904;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4905;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("320185099",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4906;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox6_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4908;BA.debugLine="Private Sub CheckBox6_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4909;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4910;BA.debugLine="textemp = CheckBox6.Text"; +_textemp = _checkbox6.getText(); + //BA.debugLineNum = 4911;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4912;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4913;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4914;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4915;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4916;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4917;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4918;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4919;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("320250635",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4920;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox7_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4922;BA.debugLine="Private Sub CheckBox7_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4923;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4924;BA.debugLine="textemp = CheckBox7.Text"; +_textemp = _checkbox7.getText(); + //BA.debugLineNum = 4925;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4926;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4927;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4928;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4929;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4930;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4931;BA.debugLine="If CheckBox8.Checked Then textemp = textemp & \","; +if (_checkbox8.getChecked()) { +_textemp = _textemp+", "+_checkbox8.getText();}; + //BA.debugLineNum = 4932;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4933;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("320316171",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4934;BA.debugLine="End Sub"; +return ""; +} +public String _checkbox8_checkedchange(boolean _checked) throws Exception{ +String _textemp = ""; + //BA.debugLineNum = 4936;BA.debugLine="Private Sub CheckBox8_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 4937;BA.debugLine="Dim textemp As String =\"\""; +_textemp = ""; + //BA.debugLineNum = 4938;BA.debugLine="textemp = CheckBox8.Text"; +_textemp = _checkbox8.getText(); + //BA.debugLineNum = 4939;BA.debugLine="If CheckBox1.Checked Then textemp = textemp & \","; +if (_checkbox1.getChecked()) { +_textemp = _textemp+", "+_checkbox1.getText();}; + //BA.debugLineNum = 4940;BA.debugLine="If CheckBox2.Checked Then textemp = textemp & \","; +if (_checkbox2.getChecked()) { +_textemp = _textemp+", "+_checkbox2.getText();}; + //BA.debugLineNum = 4941;BA.debugLine="If CheckBox3.Checked Then textemp = textemp & \","; +if (_checkbox3.getChecked()) { +_textemp = _textemp+", "+_checkbox3.getText();}; + //BA.debugLineNum = 4942;BA.debugLine="If CheckBox4.Checked Then textemp = textemp & \","; +if (_checkbox4.getChecked()) { +_textemp = _textemp+", "+_checkbox4.getText();}; + //BA.debugLineNum = 4943;BA.debugLine="If CheckBox5.Checked Then textemp = textemp & \","; +if (_checkbox5.getChecked()) { +_textemp = _textemp+", "+_checkbox5.getText();}; + //BA.debugLineNum = 4944;BA.debugLine="If CheckBox6.Checked Then textemp = textemp & \","; +if (_checkbox6.getChecked()) { +_textemp = _textemp+", "+_checkbox6.getText();}; + //BA.debugLineNum = 4945;BA.debugLine="If CheckBox7.Checked Then textemp = textemp & \","; +if (_checkbox7.getChecked()) { +_textemp = _textemp+", "+_checkbox7.getText();}; + //BA.debugLineNum = 4946;BA.debugLine="encuentasmapa.Put(\"P9\", textemp)"; +_encuentasmapa.Put((Object)("P9"),(Object)(_textemp)); + //BA.debugLineNum = 4947;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("320381707",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4948;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_cliente As Panel"; +_p_cliente = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 5;BA.debugLine="Dim cuest As C_Cuestionario"; +_cuest = new gunav2.keymon.com.mx.c_cuestionario(); + //BA.debugLineNum = 6;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 7;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 8;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 9;BA.debugLine="Dim clie_id As String"; +_clie_id = ""; + //BA.debugLineNum = 10;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 11;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 12;BA.debugLine="Dim total_cliente As String"; +_total_cliente = ""; + //BA.debugLineNum = 13;BA.debugLine="Dim m_lat, m_lon As String"; +_m_lat = ""; +_m_lon = ""; + //BA.debugLineNum = 14;BA.debugLine="Dim btAdmin As BluetoothAdmin"; +_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); + //BA.debugLineNum = 15;BA.debugLine="Dim cmp20 As Serial"; +_cmp20 = new anywheresoftware.b4a.objects.Serial(); + //BA.debugLineNum = 16;BA.debugLine="Dim printer As TextWriter"; +_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim PairedDevices As Map"; +_paireddevices = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 18;BA.debugLine="Dim L As List"; +_l = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 19;BA.debugLine="Dim TAMANO As Int"; +_tamano = 0; + //BA.debugLineNum = 20;BA.debugLine="Dim ESPACIO As Int"; +_espacio = 0; + //BA.debugLineNum = 21;BA.debugLine="Dim BLANCO As String"; +_blanco = ""; + //BA.debugLineNum = 22;BA.debugLine="Dim cuenta As String"; +_cuenta = ""; + //BA.debugLineNum = 23;BA.debugLine="Dim tipo_venta As String"; +_tipo_venta = ""; + //BA.debugLineNum = 24;BA.debugLine="Dim MAC_IMPRESORA As String"; +_mac_impresora = ""; + //BA.debugLineNum = 25;BA.debugLine="Dim btAdmin As BluetoothAdmin"; +_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); + //BA.debugLineNum = 26;BA.debugLine="Dim Printer1 As EscPosPrinter"; +_printer1 = new gunav2.keymon.com.mx.escposprinter(); + //BA.debugLineNum = 27;BA.debugLine="Private location2 As Location"; +_location2 = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Dim s As Cursor"; +_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 30;BA.debugLine="Dim DD As Cursor"; +_dd = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 32;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Dim la_cuenta As Label"; +_la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Dim La_nombre As Label"; +_la_nombre = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Dim la_Calle As Label"; +_la_calle = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 36;BA.debugLine="Dim la_numero As Label"; +_la_numero = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 37;BA.debugLine="Dim la_nint As Label"; +_la_nint = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Dim la_edo As Label"; +_la_edo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Dim la_pob As Label"; +_la_pob = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 40;BA.debugLine="Dim la_col As Label"; +_la_col = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 41;BA.debugLine="Dim la_cp As Label"; +_la_cp = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 42;BA.debugLine="Dim la_zona As Label"; +_la_zona = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 43;BA.debugLine="Dim gest As Button"; +_gest = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 44;BA.debugLine="Dim la_saldotot As Label"; +_la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 45;BA.debugLine="Dim la_saldooper As Label"; +_la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 46;BA.debugLine="Private l_cajetillas As Label"; +_l_cajetillas = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 47;BA.debugLine="Dim Tels As Button"; +_tels = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 48;BA.debugLine="Dim Label10 As Label"; +_label10 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 49;BA.debugLine="Dim Label11 As Label"; +_label11 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 51;BA.debugLine="Dim Tar As Button"; +_tar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 52;BA.debugLine="Dim t1, t2 As Timer"; +_t1 = new anywheresoftware.b4a.objects.Timer(); +_t2 = new anywheresoftware.b4a.objects.Timer(); + //BA.debugLineNum = 53;BA.debugLine="Dim la_comm As Label"; +_la_comm = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 54;BA.debugLine="Dim la_actdte As Label"; +_la_actdte = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 55;BA.debugLine="Dim la_usuario As Label"; +_la_usuario = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 56;BA.debugLine="Dim la_resultado As Label"; +_la_resultado = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 57;BA.debugLine="Dim l_entre1 As Label"; +_l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 58;BA.debugLine="Dim l_entre2 As Label"; +_l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 59;BA.debugLine="Dim l_atiende As Label"; +_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 60;BA.debugLine="Dim l_atiende2 As Label"; +_l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 61;BA.debugLine="Dim DATOS As Button"; +_datos = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 62;BA.debugLine="Dim Guardar As Button"; +_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 63;BA.debugLine="Dim NUEVO As Button"; +_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 66;BA.debugLine="Dim l_total As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 67;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 68;BA.debugLine="Dim S2 As Cursor"; +_s2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 69;BA.debugLine="Private s As Cursor"; +_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 70;BA.debugLine="Dim res As String"; +_res = ""; + //BA.debugLineNum = 71;BA.debugLine="Private HIST As Button"; +_hist = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 72;BA.debugLine="Private MONTO_COMPRA As String"; +_monto_compra = ""; + //BA.debugLineNum = 73;BA.debugLine="Private META As String"; +_meta = ""; + //BA.debugLineNum = 74;BA.debugLine="Private META2 As String"; +_meta2 = ""; + //BA.debugLineNum = 75;BA.debugLine="Private VERIFICA As String"; +_verifica = ""; + //BA.debugLineNum = 76;BA.debugLine="Private L_QR As Label"; +_l_qr = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 77;BA.debugLine="Private BT_QR As Button"; +_bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 79;BA.debugLine="Dim CODIGO As String"; +_codigo = ""; + //BA.debugLineNum = 81;BA.debugLine="Private b_mapa As Button"; +_b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 82;BA.debugLine="Dim CUANTOS As String"; +_cuantos = ""; + //BA.debugLineNum = 83;BA.debugLine="Private B_IMP As Button"; +_b_imp = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 84;BA.debugLine="Dim Toggla As Toggle"; +_toggla = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 85;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 86;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 87;BA.debugLine="Private I_COMPRA As EditText"; +_i_compra = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 88;BA.debugLine="Private B_GUARDA_C As Button"; +_b_guarda_c = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 89;BA.debugLine="Private b_venta As Button"; +_b_venta = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 90;BA.debugLine="Dim ALMACEN As String"; +_almacen = ""; + //BA.debugLineNum = 91;BA.debugLine="Dim LA_GPS As Label"; +_la_gps = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 92;BA.debugLine="Private B_E_NEXT As Button"; +_b_e_next = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 93;BA.debugLine="Private E_RES_E As EditText"; +_e_res_e = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 94;BA.debugLine="Private t_tenc As Label"; +_t_tenc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 95;BA.debugLine="Private Panel2 As Panel"; +_panel2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 96;BA.debugLine="Private CONTADOR_E As String"; +_contador_e = ""; + //BA.debugLineNum = 97;BA.debugLine="Private HR_RES1 As String"; +_hr_res1 = ""; + //BA.debugLineNum = 98;BA.debugLine="Private HR_RES2 As String"; +_hr_res2 = ""; + //BA.debugLineNum = 99;BA.debugLine="Private HR_RES3 As String"; +_hr_res3 = ""; + //BA.debugLineNum = 100;BA.debugLine="Private EXISTE As String"; +_existe = ""; + //BA.debugLineNum = 101;BA.debugLine="Private telefono As String"; +_telefono = ""; + //BA.debugLineNum = 104;BA.debugLine="Private RB1 As RadioButton"; +_rb1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 105;BA.debugLine="Private RB2 As RadioButton"; +_rb2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 106;BA.debugLine="Private RB3 As RadioButton"; +_rb3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 107;BA.debugLine="Private RB4 As RadioButton"; +_rb4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 108;BA.debugLine="Private RB5 As RadioButton"; +_rb5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 110;BA.debugLine="Private stay_hh As String"; +_stay_hh = ""; + //BA.debugLineNum = 111;BA.debugLine="Private stay_mi As String"; +_stay_mi = ""; + //BA.debugLineNum = 112;BA.debugLine="Private stay_ss As String"; +_stay_ss = ""; + //BA.debugLineNum = 114;BA.debugLine="Private LA_GEO As Label"; +_la_geo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 115;BA.debugLine="Dim result As Int"; +_result = 0; + //BA.debugLineNum = 116;BA.debugLine="Private cercavalor As String"; +_cercavalor = ""; + //BA.debugLineNum = 117;BA.debugLine="Private LA_RUTA As String"; +_la_ruta = ""; + //BA.debugLineNum = 119;BA.debugLine="Private b_like As Button"; +_b_like = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 120;BA.debugLine="Private B_GPS As Button"; +_b_gps = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 121;BA.debugLine="Dim sc As JhsIceZxing1"; +_sc = new ice.zxing.b4aZXingLib(); + //BA.debugLineNum = 122;BA.debugLine="Dim CODIGO As String"; +_codigo = ""; + //BA.debugLineNum = 123;BA.debugLine="Private SV_ENCUESTA As ScrollView"; +_sv_encuesta = new anywheresoftware.b4a.objects.ScrollViewWrapper(); + //BA.debugLineNum = 124;BA.debugLine="Private RB1_E1 As RadioButton"; +_rb1_e1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 125;BA.debugLine="Private RB2_E1 As RadioButton"; +_rb2_e1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 126;BA.debugLine="Private RB3_E1 As RadioButton"; +_rb3_e1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 127;BA.debugLine="Private CHB1 As CheckBox"; +_chb1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 128;BA.debugLine="Private CHB2 As CheckBox"; +_chb2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 129;BA.debugLine="Private CHB3 As CheckBox"; +_chb3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 130;BA.debugLine="Private Panel5 As Panel"; +_panel5 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 131;BA.debugLine="Private B_guardaencuesta As Button"; +_b_guardaencuesta = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 132;BA.debugLine="Private RadioButton1 As RadioButton"; +_radiobutton1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 133;BA.debugLine="Private RadioButton2 As RadioButton"; +_radiobutton2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 134;BA.debugLine="Private RadioButton3 As RadioButton"; +_radiobutton3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 135;BA.debugLine="Private RadioButton4 As RadioButton"; +_radiobutton4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 136;BA.debugLine="Private RadioButton5 As RadioButton"; +_radiobutton5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 137;BA.debugLine="Private RadioButton6 As RadioButton"; +_radiobutton6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 138;BA.debugLine="Private RadioButton7 As RadioButton"; +_radiobutton7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 139;BA.debugLine="Private RadioButton8 As RadioButton"; +_radiobutton8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 140;BA.debugLine="Private RadioButton9 As RadioButton"; +_radiobutton9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 141;BA.debugLine="Private RadioButton10 As RadioButton"; +_radiobutton10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 142;BA.debugLine="Private RadioButton11 As RadioButton"; +_radiobutton11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 143;BA.debugLine="Private RadioButton12 As RadioButton"; +_radiobutton12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 144;BA.debugLine="Private RadioButton13 As RadioButton"; +_radiobutton13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 145;BA.debugLine="Private RadioButton14 As RadioButton"; +_radiobutton14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 146;BA.debugLine="Private CheckBox1 As CheckBox"; +_checkbox1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 147;BA.debugLine="Private CheckBox2 As CheckBox"; +_checkbox2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 148;BA.debugLine="Private CheckBox3 As CheckBox"; +_checkbox3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 149;BA.debugLine="Private CheckBox4 As CheckBox"; +_checkbox4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 150;BA.debugLine="Private CheckBox5 As CheckBox"; +_checkbox5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 151;BA.debugLine="Private CheckBox6 As CheckBox"; +_checkbox6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 152;BA.debugLine="Private CheckBox7 As CheckBox"; +_checkbox7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 153;BA.debugLine="Private CheckBox8 As CheckBox"; +_checkbox8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 154;BA.debugLine="Dim encuentasmapa As Map"; +_encuentasmapa = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 155;BA.debugLine="Private p6 As EditText"; +_p6 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 156;BA.debugLine="Private p7 As EditText"; +_p7 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 157;BA.debugLine="Private p8 As EditText"; +_p8 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 158;BA.debugLine="Private Panel7 As Panel"; +_panel7 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 159;BA.debugLine="Private RadioButton17 As RadioButton"; +_radiobutton17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 160;BA.debugLine="Private RadioButton16 As RadioButton"; +_radiobutton16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 161;BA.debugLine="Private RadioButton15 As RadioButton"; +_radiobutton15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 162;BA.debugLine="Private B_guardaencuesta_m2 As Button"; +_b_guardaencuesta_m2 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 163;BA.debugLine="Private et_p1_m2 As EditText"; +_et_p1_m2 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 164;BA.debugLine="Private et_p2_m2 As EditText"; +_et_p2_m2 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 165;BA.debugLine="Private RB7_P6_M2 As RadioButton"; +_rb7_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 166;BA.debugLine="Private RB6_P6_M2 As RadioButton"; +_rb6_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 167;BA.debugLine="Private RB5_P6_M2 As RadioButton"; +_rb5_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 168;BA.debugLine="Private RB4_P6_M2 As RadioButton"; +_rb4_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 169;BA.debugLine="Private RB3_P6_M2 As RadioButton"; +_rb3_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 170;BA.debugLine="Private RB2_P6_M2 As RadioButton"; +_rb2_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 171;BA.debugLine="Private RB1_P6_M2 As RadioButton"; +_rb1_p6_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 172;BA.debugLine="Private et_p5_m2 As EditText"; +_et_p5_m2 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 173;BA.debugLine="Private rd3_p4_m2 As RadioButton"; +_rd3_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 174;BA.debugLine="Private rd2_p4_m2 As RadioButton"; +_rd2_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 175;BA.debugLine="Private rd1_p4_m2 As RadioButton"; +_rd1_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 176;BA.debugLine="Private RB1_P3_M2 As RadioButton"; +_rb1_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 177;BA.debugLine="Private RB2_P3_M2 As RadioButton"; +_rb2_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 178;BA.debugLine="Private RB3_P3_M2 As RadioButton"; +_rb3_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 179;BA.debugLine="Private RB4_P3_M2 As RadioButton"; +_rb4_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 180;BA.debugLine="Private ET_P3_M2 As EditText"; +_et_p3_m2 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 181;BA.debugLine="Private Panel7_M2 As Panel"; +_panel7_m2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 182;BA.debugLine="Private P4_M2 As String"; +_p4_m2 = ""; + //BA.debugLineNum = 183;BA.debugLine="Private P3_M2 As String"; +_p3_m2 = ""; + //BA.debugLineNum = 184;BA.debugLine="Private P6_M2 As String"; +_p6_m2 = ""; + //BA.debugLineNum = 186;BA.debugLine="Private CB1_P3_M2 As CheckBox"; +_cb1_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 187;BA.debugLine="Private CB2_P3_M2 As CheckBox"; +_cb2_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 188;BA.debugLine="Private CB3_P3_M2 As CheckBox"; +_cb3_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 189;BA.debugLine="Private CB4_P3_M2 As CheckBox"; +_cb4_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 190;BA.debugLine="Private CB5_P3_M2 As CheckBox"; +_cb5_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 191;BA.debugLine="Private CB6_P3_M2 As CheckBox"; +_cb6_p3_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 192;BA.debugLine="Private EXISTE2 As String"; +_existe2 = ""; + //BA.debugLineNum = 193;BA.debugLine="Private EXISTE3 As String"; +_existe3 = ""; + //BA.debugLineNum = 194;BA.debugLine="Private EXISTE4 As String"; +_existe4 = ""; + //BA.debugLineNum = 195;BA.debugLine="Private EXISTE5 As String"; +_existe5 = ""; + //BA.debugLineNum = 196;BA.debugLine="Private et_p1_m3 As EditText"; +_et_p1_m3 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 197;BA.debugLine="Private et_p2_m3 As EditText"; +_et_p2_m3 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 198;BA.debugLine="Private CB1_P3_M3 As CheckBox"; +_cb1_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 199;BA.debugLine="Private CB2_P3_M3 As CheckBox"; +_cb2_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 200;BA.debugLine="Private CB3_P3_M3 As CheckBox"; +_cb3_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 201;BA.debugLine="Private CB4_P3_M3 As CheckBox"; +_cb4_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 202;BA.debugLine="Private CB5_P3_M3 As CheckBox"; +_cb5_p3_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 203;BA.debugLine="Private CB1_P4_M3 As CheckBox"; +_cb1_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 204;BA.debugLine="Private CB2_P4_M3 As CheckBox"; +_cb2_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 205;BA.debugLine="Private CB3_P4_M3 As CheckBox"; +_cb3_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 206;BA.debugLine="Private CB4_P4_M3 As CheckBox"; +_cb4_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 207;BA.debugLine="Private CB5_P4_M3 As CheckBox"; +_cb5_p4_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 208;BA.debugLine="Private rd1_p5_m3 As RadioButton"; +_rd1_p5_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 209;BA.debugLine="Private rd2_p5_m3 As RadioButton"; +_rd2_p5_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 210;BA.debugLine="Private CB1_P6_M3 As CheckBox"; +_cb1_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 211;BA.debugLine="Private CB2_P6_M3 As CheckBox"; +_cb2_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 212;BA.debugLine="Private CB3_P6_M3 As CheckBox"; +_cb3_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 213;BA.debugLine="Private CB4_P6_M3 As CheckBox"; +_cb4_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 214;BA.debugLine="Private CB5_P6_M3 As CheckBox"; +_cb5_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 215;BA.debugLine="Private CB6_P6_M3 As CheckBox"; +_cb6_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 216;BA.debugLine="Private ET_P6_M3 As EditText"; +_et_p6_m3 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 217;BA.debugLine="Private CB1_P7_M3 As CheckBox"; +_cb1_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 218;BA.debugLine="Private CB2_P7_M3 As CheckBox"; +_cb2_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 219;BA.debugLine="Private CB3_P7_M3 As CheckBox"; +_cb3_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 220;BA.debugLine="Private CB4_P7_M3 As CheckBox"; +_cb4_p7_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 221;BA.debugLine="Private CB1_P8_M3 As CheckBox"; +_cb1_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 222;BA.debugLine="Private CB2_P8_M3 As CheckBox"; +_cb2_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 223;BA.debugLine="Private CB4_P8_M3 As CheckBox"; +_cb4_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 224;BA.debugLine="Private RB1_P9_M3 As RadioButton"; +_rb1_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 225;BA.debugLine="Private RB2_P9_M3 As RadioButton"; +_rb2_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 226;BA.debugLine="Private RB3_P9_M3 As RadioButton"; +_rb3_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 227;BA.debugLine="Private RB4_P9_M3 As RadioButton"; +_rb4_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 228;BA.debugLine="Private RB5_P9_M3 As RadioButton"; +_rb5_p9_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 229;BA.debugLine="Private B_guardaencuesta_m3 As Button"; +_b_guardaencuesta_m3 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 230;BA.debugLine="Private P_gallina As Panel"; +_p_gallina = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 231;BA.debugLine="Private b_acepta_gallina As Button"; +_b_acepta_gallina = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 232;BA.debugLine="Private B_CANCELA_GALLINA As Button"; +_b_cancela_gallina = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 233;BA.debugLine="Private B_GALLINA As Button"; +_b_gallina = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 234;BA.debugLine="Private la_cuenta_gallina As Label"; +_la_cuenta_gallina = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 235;BA.debugLine="Private cb_pregunta As B4XComboBox"; +_cb_pregunta = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 236;BA.debugLine="Dim girotienda As String"; +_girotienda = ""; + //BA.debugLineNum = 237;BA.debugLine="Private p_pregunta1 As Panel"; +_p_pregunta1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 238;BA.debugLine="Private b_preguntag As Button"; +_b_preguntag = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 239;BA.debugLine="Private EN_QUE_ENCUESTA As String"; +_en_que_encuesta = ""; + //BA.debugLineNum = 240;BA.debugLine="Private ENCUESTA As String"; +_encuesta = ""; + //BA.debugLineNum = 241;BA.debugLine="Private et_p1_m4 As EditText"; +_et_p1_m4 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 242;BA.debugLine="Private et_p2_m4 As EditText"; +_et_p2_m4 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 243;BA.debugLine="Private cb_p3_m4 As B4XComboBox"; +_cb_p3_m4 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 244;BA.debugLine="Private cb_p4_1_m4 As B4XComboBox"; +_cb_p4_1_m4 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 245;BA.debugLine="Private cb_p4_2_m4 As B4XComboBox"; +_cb_p4_2_m4 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 246;BA.debugLine="Private cb_p4_3_m4 As B4XComboBox"; +_cb_p4_3_m4 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 247;BA.debugLine="Private cb_p4_4_m4 As B4XComboBox"; +_cb_p4_4_m4 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 248;BA.debugLine="Private cb_p4_5_m4 As B4XComboBox"; +_cb_p4_5_m4 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 249;BA.debugLine="Dim itemselect2 As String"; +_itemselect2 = ""; + //BA.debugLineNum = 250;BA.debugLine="Dim itemselect3 As String"; +_itemselect3 = ""; + //BA.debugLineNum = 251;BA.debugLine="Dim itemselect4 As String"; +_itemselect4 = ""; + //BA.debugLineNum = 252;BA.debugLine="Dim itemselect5 As String"; +_itemselect5 = ""; + //BA.debugLineNum = 253;BA.debugLine="Dim itemselect6 As String"; +_itemselect6 = ""; + //BA.debugLineNum = 254;BA.debugLine="Dim itemselect7 As String"; +_itemselect7 = ""; + //BA.debugLineNum = 255;BA.debugLine="Private B_guardaencuesta_m4 As Button"; +_b_guardaencuesta_m4 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 256;BA.debugLine="Private p_modulo5 As Panel"; +_p_modulo5 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 257;BA.debugLine="Private cb_p1_m5 As B4XComboBox"; +_cb_p1_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 258;BA.debugLine="Private cb_p2_m5 As B4XComboBox"; +_cb_p2_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 259;BA.debugLine="Private cb_p3_m5 As B4XComboBox"; +_cb_p3_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 260;BA.debugLine="Private cb_p4_m5 As B4XComboBox"; +_cb_p4_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 261;BA.debugLine="Private cb_p5_m5 As B4XComboBox"; +_cb_p5_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 262;BA.debugLine="Private cb_p6_m5 As B4XComboBox"; +_cb_p6_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 263;BA.debugLine="Private cb_p7_m5 As B4XComboBox"; +_cb_p7_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 264;BA.debugLine="Private cb_p8_m5 As B4XComboBox"; +_cb_p8_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 265;BA.debugLine="Private cb_p9_m5 As B4XComboBox"; +_cb_p9_m5 = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 266;BA.debugLine="Dim itemselect8 As String"; +_itemselect8 = ""; + //BA.debugLineNum = 267;BA.debugLine="Dim itemselect9 As String"; +_itemselect9 = ""; + //BA.debugLineNum = 268;BA.debugLine="Dim itemselect10 As String"; +_itemselect10 = ""; + //BA.debugLineNum = 269;BA.debugLine="Dim itemselect11 As String"; +_itemselect11 = ""; + //BA.debugLineNum = 270;BA.debugLine="Dim itemselect12 As String"; +_itemselect12 = ""; + //BA.debugLineNum = 271;BA.debugLine="Dim itemselect13 As String"; +_itemselect13 = ""; + //BA.debugLineNum = 272;BA.debugLine="Dim itemselect14 As String"; +_itemselect14 = ""; + //BA.debugLineNum = 273;BA.debugLine="Dim itemselect15 As String"; +_itemselect15 = ""; + //BA.debugLineNum = 274;BA.debugLine="Dim itemselect16 As String"; +_itemselect16 = ""; + //BA.debugLineNum = 275;BA.debugLine="Private B_guardaencuesta_m5 As Button"; +_b_guardaencuesta_m5 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 276;BA.debugLine="Dim PASA As String"; +_pasa = ""; + //BA.debugLineNum = 277;BA.debugLine="Private RB1_P4_M2 As RadioButton"; +_rb1_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 278;BA.debugLine="Private RB2_P4_M2 As RadioButton"; +_rb2_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 279;BA.debugLine="Private panel7_p4_m2 As Panel"; +_panel7_p4_m2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 280;BA.debugLine="Private CB1_P4_M2 As CheckBox"; +_cb1_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 281;BA.debugLine="Private CB2_P4_M2 As CheckBox"; +_cb2_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 282;BA.debugLine="Private CB3_P4_M2 As CheckBox"; +_cb3_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 283;BA.debugLine="Private CB4_P4_M2 As CheckBox"; +_cb4_p4_m2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 284;BA.debugLine="Private Panel4 As Panel"; +_panel4 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 285;BA.debugLine="Private B_GUARDA_CE_PED As Button"; +_b_guarda_ce_ped = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 288;BA.debugLine="Private KP_01 As CheckBox"; +_kp_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 289;BA.debugLine="Private KP_02 As CheckBox"; +_kp_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 290;BA.debugLine="Private KP_03 As CheckBox"; +_kp_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 291;BA.debugLine="Private KP_04 As CheckBox"; +_kp_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 292;BA.debugLine="Private KP_05 As CheckBox"; +_kp_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 293;BA.debugLine="Private KP_06 As CheckBox"; +_kp_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 294;BA.debugLine="Private KP_07 As CheckBox"; +_kp_07 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 295;BA.debugLine="Private KP_08 As CheckBox"; +_kp_08 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 296;BA.debugLine="Private KP_09 As CheckBox"; +_kp_09 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 297;BA.debugLine="Private KP_10 As CheckBox"; +_kp_10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 298;BA.debugLine="Private KP_11 As CheckBox"; +_kp_11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 299;BA.debugLine="Private KP_12 As CheckBox"; +_kp_12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 300;BA.debugLine="Private KP_13 As CheckBox"; +_kp_13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 301;BA.debugLine="Private KP_14 As CheckBox"; +_kp_14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 302;BA.debugLine="Private KP_15 As CheckBox"; +_kp_15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 303;BA.debugLine="Private KP_16 As CheckBox"; +_kp_16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 304;BA.debugLine="Private KP_17 As CheckBox"; +_kp_17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 305;BA.debugLine="Private KP_18 As CheckBox"; +_kp_18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 306;BA.debugLine="Private KP_19 As CheckBox"; +_kp_19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 307;BA.debugLine="Private KP_20 As CheckBox"; +_kp_20 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 309;BA.debugLine="Private KG_01 As CheckBox"; +_kg_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 310;BA.debugLine="Private KG_02 As CheckBox"; +_kg_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 311;BA.debugLine="Private KG_03 As CheckBox"; +_kg_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 312;BA.debugLine="Private KG_04 As CheckBox"; +_kg_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 313;BA.debugLine="Private KG_05 As CheckBox"; +_kg_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 314;BA.debugLine="Private KG_06 As CheckBox"; +_kg_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 316;BA.debugLine="Private PK_01 As CheckBox"; +_pk_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 317;BA.debugLine="Private PK_02 As CheckBox"; +_pk_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 318;BA.debugLine="Private PK_03 As CheckBox"; +_pk_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 319;BA.debugLine="Private PK_04 As CheckBox"; +_pk_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 320;BA.debugLine="Private PK_05 As CheckBox"; +_pk_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 321;BA.debugLine="Private PK_06 As CheckBox"; +_pk_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 322;BA.debugLine="Private PK_07 As CheckBox"; +_pk_07 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 323;BA.debugLine="Private PK_08 As CheckBox"; +_pk_08 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 325;BA.debugLine="Private HPG_01 As CheckBox"; +_hpg_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 326;BA.debugLine="Private HPG_02 As CheckBox"; +_hpg_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 327;BA.debugLine="Private HPG_03 As CheckBox"; +_hpg_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 328;BA.debugLine="Private HPG_04 As CheckBox"; +_hpg_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 329;BA.debugLine="Private HPG_05 As CheckBox"; +_hpg_05 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 330;BA.debugLine="Private HPG_06 As CheckBox"; +_hpg_06 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 331;BA.debugLine="Private HPG_07 As CheckBox"; +_hpg_07 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 332;BA.debugLine="Private HPG_08 As CheckBox"; +_hpg_08 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 333;BA.debugLine="Private HPG_09 As CheckBox"; +_hpg_09 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 334;BA.debugLine="Private HPG_10 As CheckBox"; +_hpg_10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 336;BA.debugLine="Private HC_01 As CheckBox"; +_hc_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 337;BA.debugLine="Private HC_02 As CheckBox"; +_hc_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 338;BA.debugLine="Private HC_03 As CheckBox"; +_hc_03 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 339;BA.debugLine="Private HC_04 As CheckBox"; +_hc_04 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 341;BA.debugLine="Private B_01 As CheckBox"; +_b_01 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 342;BA.debugLine="Private B_02 As CheckBox"; +_b_02 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 344;BA.debugLine="Private CH_FACTURA As CheckBox"; +_ch_factura = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 345;BA.debugLine="Private que_modulo As String"; +_que_modulo = ""; + //BA.debugLineNum = 346;BA.debugLine="Private CUENTA_MODULO As String"; +_cuenta_modulo = ""; + //BA.debugLineNum = 347;BA.debugLine="Private rb1_m3_p1 As RadioButton"; +_rb1_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 348;BA.debugLine="Private RB2_M3_P1 As RadioButton"; +_rb2_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 349;BA.debugLine="Private RB3_M3_P1 As RadioButton"; +_rb3_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 350;BA.debugLine="Private RB4_M3_P1 As RadioButton"; +_rb4_m3_p1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 351;BA.debugLine="Private RB1_M3_P2 As RadioButton"; +_rb1_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 352;BA.debugLine="Private RB2_M3_P2 As RadioButton"; +_rb2_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 353;BA.debugLine="Private RB3_M3_P2 As RadioButton"; +_rb3_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 354;BA.debugLine="Private RB4_M3_P2 As RadioButton"; +_rb4_m3_p2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 355;BA.debugLine="Private et_p2_m3_1 As EditText"; +_et_p2_m3_1 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 356;BA.debugLine="Dim textemp2 As String =\"\""; +_textemp2 = ""; + //BA.debugLineNum = 357;BA.debugLine="Dim textemp3 As String =\"\""; +_textemp3 = ""; + //BA.debugLineNum = 358;BA.debugLine="Dim textemp4 As String =\"\""; +_textemp4 = ""; + //BA.debugLineNum = 359;BA.debugLine="Dim textemp5 As String =\"\""; +_textemp5 = ""; + //BA.debugLineNum = 360;BA.debugLine="Dim textemp6 As String =\"\""; +_textemp6 = ""; + //BA.debugLineNum = 361;BA.debugLine="Dim textemp7 As String =\"\""; +_textemp7 = ""; + //BA.debugLineNum = 362;BA.debugLine="Dim textemp8 As String =\"\""; +_textemp8 = ""; + //BA.debugLineNum = 363;BA.debugLine="Private CB3_P8_M3 As CheckBox"; +_cb3_p8_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 364;BA.debugLine="Private CB7_P6_M3 As CheckBox"; +_cb7_p6_m3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 365;BA.debugLine="Private p_m1 As Panel"; +_p_m1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 366;BA.debugLine="Private p_m2 As Panel"; +_p_m2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 367;BA.debugLine="Private p_m3 As Panel"; +_p_m3 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 368;BA.debugLine="Private p_m4 As Panel"; +_p_m4 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 369;BA.debugLine="Dim impresoraConectada As Boolean = False"; +_impresoraconectada = __c.False; + //BA.debugLineNum = 370;BA.debugLine="Dim errorImpresora As Int = 0"; +_errorimpresora = (int) (0); + //BA.debugLineNum = 371;BA.debugLine="Dim idencuestaaguardar As String"; +_idencuestaaguardar = ""; + //BA.debugLineNum = 373;BA.debugLine="Private botonPresionado As Int"; +_botonpresionado = 0; + //BA.debugLineNum = 374;BA.debugLine="Private encuestaRes As String"; +_encuestares = ""; + //BA.debugLineNum = 375;BA.debugLine="Dim indicePregunta As Int"; +_indicepregunta = 0; + //BA.debugLineNum = 376;BA.debugLine="Dim TOMAR_FOTO As String"; +_tomar_foto = ""; + //BA.debugLineNum = 377;BA.debugLine="Dim CURSOR_FOTO As Int"; +_cursor_foto = 0; + //BA.debugLineNum = 378;BA.debugLine="Dim id_encuesta As String"; +_id_encuesta = ""; + //BA.debugLineNum = 379;BA.debugLine="Private chk_1_valor As String"; +_chk_1_valor = ""; + //BA.debugLineNum = 380;BA.debugLine="Private chk_2_valor As String"; +_chk_2_valor = ""; + //BA.debugLineNum = 381;BA.debugLine="Private chk_3_valor As String"; +_chk_3_valor = ""; + //BA.debugLineNum = 382;BA.debugLine="Private Panel10 As Panel"; +_panel10 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 383;BA.debugLine="Private b_chk_e As Button"; +_b_chk_e = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 384;BA.debugLine="Private chk_3 As CheckBox"; +_chk_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 385;BA.debugLine="Private chk_2 As CheckBox"; +_chk_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 386;BA.debugLine="Private Chk_1 As CheckBox"; +_chk_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 387;BA.debugLine="Private l_chk_e As Label"; +_l_chk_e = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 388;BA.debugLine="Private Label28 As Label"; +_label28 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 389;BA.debugLine="Private p_encuesta As Panel"; +_p_encuesta = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 390;BA.debugLine="Private b_encuesta_continuar As Button"; +_b_encuesta_continuar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 391;BA.debugLine="Private b_encuesta_3 As Button"; +_b_encuesta_3 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 392;BA.debugLine="Private b_encuesta_2 As Button"; +_b_encuesta_2 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 393;BA.debugLine="Private b_encuesta_1 As Button"; +_b_encuesta_1 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 394;BA.debugLine="Private et_encuesta As EditText"; +_et_encuesta = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 395;BA.debugLine="Private l_txtEncuesta As Label"; +_l_txtencuesta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 396;BA.debugLine="Private l_titEncuesta As Label"; +_l_titencuesta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 397;BA.debugLine="Private ImageView11 As ImageView"; +_imageview11 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 398;BA.debugLine="Dim distance As Long"; +_distance = 0L; + //BA.debugLineNum = 399;BA.debugLine="Dim distancealm As Long"; +_distancealm = 0L; + //BA.debugLineNum = 400;BA.debugLine="Private p_pideGeoPass As Panel"; +_p_pidegeopass = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 401;BA.debugLine="Private b_geopass As Button"; +_b_geopass = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 402;BA.debugLine="Private et_geopass As EditText"; +_et_geopass = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 403;BA.debugLine="Private l_geopass As Label"; +_l_geopass = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 404;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager(); + //BA.debugLineNum = 405;BA.debugLine="Dim ime As IME"; +_ime = new anywheresoftware.b4a.objects.IME(); + //BA.debugLineNum = 406;BA.debugLine="Private camEx As CameraExClass"; +_camex = new gunav2.keymon.com.mx.cameraexclass(); + //BA.debugLineNum = 407;BA.debugLine="Dim frontCamera As Boolean = False"; +_frontcamera = __c.False; + //BA.debugLineNum = 408;BA.debugLine="Private p_cam As Panel"; +_p_cam = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 409;BA.debugLine="Dim nombrefoto As String = \"0\""; +_nombrefoto = "0"; + //BA.debugLineNum = 410;BA.debugLine="Private p_camara As Panel"; +_p_camara = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 411;BA.debugLine="Private teclado As IME"; +_teclado = new anywheresoftware.b4a.objects.IME(); + //BA.debugLineNum = 412;BA.debugLine="Dim fototomada As String"; +_fototomada = ""; + //BA.debugLineNum = 413;BA.debugLine="Private b_foto As Button"; +_b_foto = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 414;BA.debugLine="Dim precision As String"; +_precision = ""; + //BA.debugLineNum = 415;BA.debugLine="Dim b_Inicio_Fin_venta As Button"; +_b_inicio_fin_venta = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 417;BA.debugLine="Dim dentroDeGeocerca As Boolean = False"; +_dentrodegeocerca = __c.False; + //BA.debugLineNum = 418;BA.debugLine="Dim motivoNoVenta, motivoNoVisita As String"; +_motivonoventa = ""; +_motivonovisita = ""; + //BA.debugLineNum = 419;BA.debugLine="Dim contadorIniciarVenta As Int = 0"; +_contadoriniciarventa = (int) (0); + //BA.debugLineNum = 420;BA.debugLine="Dim IniVenNO As Boolean = False"; +_inivenno = __c.False; + //BA.debugLineNum = 421;BA.debugLine="Private geoCont As Int = 0"; +_geocont = (int) (0); + //BA.debugLineNum = 422;BA.debugLine="Private l_version As Label"; +_l_version = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 427;BA.debugLine="Private b_preventa As Button"; +_b_preventa = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 428;BA.debugLine="Dim bitacora As C_Bitacora"; +_bitacora = new gunav2.keymon.com.mx.c_bitacora(); + //BA.debugLineNum = 429;BA.debugLine="Dim p_transparenteTicketImpreso As Panel"; +_p_transparenteticketimpreso = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 430;BA.debugLine="Private et_codigoAutorizacion As EditText"; +_et_codigoautorizacion = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 431;BA.debugLine="Private b_codigoAutorizacion As Button"; +_b_codigoautorizacion = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 432;BA.debugLine="Private b_cancelarCodigoAutorizacion As Button"; +_b_cancelarcodigoautorizacion = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 433;BA.debugLine="Private p_ticketImpreso As Panel"; +_p_ticketimpreso = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 434;BA.debugLine="Private b_enviarTicket As Button"; +_b_enviarticket = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 435;BA.debugLine="Dim archivoTicketPDF As String"; +_archivoticketpdf = ""; + //BA.debugLineNum = 436;BA.debugLine="Private p_transparentePDF As Panel"; +_p_transparentepdf = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 437;BA.debugLine="Private p_envioPDF As Panel"; +_p_enviopdf = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 438;BA.debugLine="Private b_cancelarEnvioPDF As Button"; +_b_cancelarenviopdf = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 439;BA.debugLine="Private b_envioPDF As Button"; +_b_enviopdf = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 440;BA.debugLine="Private et_numeroPDF As EditText"; +_et_numeropdf = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 441;BA.debugLine="Private btnPlanLealtad As Button"; +_btnplanlealtad = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 442;BA.debugLine="Private pnl_btns As Panel"; +_pnl_btns = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 443;BA.debugLine="Private pnlPlanLealtad As Panel"; +_pnlplanlealtad = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 444;BA.debugLine="Private imgPlanLealtad As ImageView"; +_imgplanlealtad = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 445;BA.debugLine="Private btnAceptaPlanLealtad As Button"; +_btnaceptaplanlealtad = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 446;BA.debugLine="Private btnCancelarPlanLealtad As Button"; +_btncancelarplanlealtad = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 447;BA.debugLine="Private BCREDITO As String"; +_bcredito = ""; + //BA.debugLineNum = 450;BA.debugLine="Private p_comentarios As Panel"; +_p_comentarios = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 451;BA.debugLine="Private p_comentario As Panel"; +_p_comentario = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 452;BA.debugLine="Private b_agregarcom As Button"; +_b_agregarcom = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 453;BA.debugLine="Private b_cerarcom As Button"; +_b_cerarcom = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 454;BA.debugLine="Private Label19 As Label"; +_label19 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 455;BA.debugLine="Private et_comentario As EditText"; +_et_comentario = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 456;BA.debugLine="Private lv_comentarios As ListView"; +_lv_comentarios = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 457;BA.debugLine="Private ImageView4 As ImageView"; +_imageview4 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 458;BA.debugLine="Private p_cliente_ As Panel"; +_p_cliente_ = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 459;BA.debugLine="Private l_limite As Label"; +_l_limite = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 460;BA.debugLine="Private l_credito As Label"; +_l_credito = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 461;BA.debugLine="Private l_tipocliente As Label"; +_l_tipocliente = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 462;BA.debugLine="Private l_deuda As Label"; +_l_deuda = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 463;BA.debugLine="Private p_deuda As Panel"; +_p_deuda = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 464;BA.debugLine="Private Label22 As Label"; +_label22 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 465;BA.debugLine="Private l_animal As Label"; +_l_animal = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 466;BA.debugLine="Private contIguales As Int = 0"; +_contiguales = (int) (0); + //BA.debugLineNum = 467;BA.debugLine="Private b_preventa2 As Button"; +_b_preventa2 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 468;BA.debugLine="Private p_atiende As Panel"; +_p_atiende = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 469;BA.debugLine="Private et_atiende As EditText"; +_et_atiende = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 470;BA.debugLine="Private b_cancelatiende As Button"; +_b_cancelatiende = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 471;BA.debugLine="Private b_acepatiende As Button"; +_b_acepatiende = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 472;BA.debugLine="Private p_telefono As Panel"; +_p_telefono = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 473;BA.debugLine="Private b_canceltelefono As Button"; +_b_canceltelefono = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 474;BA.debugLine="Private b_aceptelefono As Button"; +_b_aceptelefono = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 475;BA.debugLine="Private et_telefono As EditText"; +_et_telefono = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 477;BA.debugLine="Dim totalpromos As Double"; +_totalpromos = 0; + //BA.debugLineNum = 478;BA.debugLine="Dim totalpromostotal As Double"; +_totalpromostotal = 0; + //BA.debugLineNum = 479;BA.debugLine="End Sub"; +return ""; +} +public String _compra() throws Exception{ +anywheresoftware.b4a.objects.collections.List _rutasencuesta = null; +anywheresoftware.b4a.objects.collections.List _alamcenesencuesta = null; +anywheresoftware.b4a.objects.collections.List _items = null; + //BA.debugLineNum = 2212;BA.debugLine="Sub compra"; + //BA.debugLineNum = 2227;BA.debugLine="Private rutasEncuesta As List"; +_rutasencuesta = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2228;BA.debugLine="rutasEncuesta.Initialize2(Array As Int(702, 703,"; +_rutasencuesta.Initialize2(anywheresoftware.b4a.keywords.Common.ArrayToList(new int[]{(int) (702),(int) (703),(int) (707),(int) (718),(int) (730),(int) (732),(int) (733),(int) (734)})); + //BA.debugLineNum = 2229;BA.debugLine="Private alamcenesEncuesta As List"; +_alamcenesencuesta = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2230;BA.debugLine="alamcenesEncuesta.Initialize2(Array As Int(15, 35"; +_alamcenesencuesta.Initialize2(anywheresoftware.b4a.keywords.Common.ArrayToList(new int[]{(int) (15),(int) (35),(int) (43),(int) (54),(int) (56),(int) (73),(int) (75),(int) (79)})); + //BA.debugLineNum = 2245;BA.debugLine="If TOMAR_FOTO = 0 Then"; +if ((_tomar_foto).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 2246;BA.debugLine="Cuestionario"; +_cuestionario(); + }else { + //BA.debugLineNum = 2248;BA.debugLine="Dim Items As List"; +_items = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2249;BA.debugLine="Items.Initialize"; +_items.Initialize(); + //BA.debugLineNum = 2250;BA.debugLine="Items.Add(\"Selecciona una opción\")"; +_items.Add((Object)("Selecciona una opción")); + //BA.debugLineNum = 2251;BA.debugLine="Items.Add(\"Tienda de Abarrotes (Abarrotes, Misce"; +_items.Add((Object)("Tienda de Abarrotes (Abarrotes, Misceláneas, Minisupers, Particulares con Venta y Cremerías)")); + //BA.debugLineNum = 2252;BA.debugLine="Items.Add(\"Recaudería (Frutas y Verduras)\")"; +_items.Add((Object)("Recaudería (Frutas y Verduras)")); + //BA.debugLineNum = 2253;BA.debugLine="Items.Add(\"Vinos y Licores\")"; +_items.Add((Object)("Vinos y Licores")); + //BA.debugLineNum = 2254;BA.debugLine="Items.Add(\"Carnicería o Pollería\")"; +_items.Add((Object)("Carnicería o Pollería")); + //BA.debugLineNum = 2255;BA.debugLine="Items.Add(\"Farmacia\")"; +_items.Add((Object)("Farmacia")); + //BA.debugLineNum = 2256;BA.debugLine="Items.Add(\"Jarciería (Productos de Limpieza)\")"; +_items.Add((Object)("Jarciería (Productos de Limpieza)")); + //BA.debugLineNum = 2257;BA.debugLine="Items.Add(\"Papelería y Regalos\")"; +_items.Add((Object)("Papelería y Regalos")); + //BA.debugLineNum = 2258;BA.debugLine="Items.Add(\"Tortillería\")"; +_items.Add((Object)("Tortillería")); + //BA.debugLineNum = 2259;BA.debugLine="Items.Add(\"Escuelas\")"; +_items.Add((Object)("Escuelas")); + //BA.debugLineNum = 2260;BA.debugLine="Items.Add(\"Estanquillos (Puestos Semifijos)\")"; +_items.Add((Object)("Estanquillos (Puestos Semifijos)")); + //BA.debugLineNum = 2261;BA.debugLine="Items.Add(\"Fonda, Cocina Económica, Cafetería)\")"; +_items.Add((Object)("Fonda, Cocina Económica, Cafetería)")); + //BA.debugLineNum = 2262;BA.debugLine="Items.Add(\"Tlapalería, Ferretería\")"; +_items.Add((Object)("Tlapalería, Ferretería")); + //BA.debugLineNum = 2263;BA.debugLine="Items.Add(\"Dulcería, Materias Primas\")"; +_items.Add((Object)("Dulcería, Materias Primas")); + //BA.debugLineNum = 2264;BA.debugLine="Items.Add(\"Semillas y Chiles Secos\")"; +_items.Add((Object)("Semillas y Chiles Secos")); + //BA.debugLineNum = 2265;BA.debugLine="Items.Add(\"Cybercafé\")"; +_items.Add((Object)("Cybercafé")); + //BA.debugLineNum = 2266;BA.debugLine="Items.Add(\"Hotel\")"; +_items.Add((Object)("Hotel")); + //BA.debugLineNum = 2267;BA.debugLine="Items.Add(\"Veterinaria\")"; +_items.Add((Object)("Veterinaria")); + //BA.debugLineNum = 2268;BA.debugLine="Items.Add(\"Tienda de Mascotas\")"; +_items.Add((Object)("Tienda de Mascotas")); + //BA.debugLineNum = 2269;BA.debugLine="Items.Add(\"Otros\")"; +_items.Add((Object)("Otros")); + //BA.debugLineNum = 2270;BA.debugLine="cb_pregunta.SetItems(Items)"; +_cb_pregunta._setitems /*String*/ (_items); + //BA.debugLineNum = 2271;BA.debugLine="girotienda = \"Selecciona una opcion\""; +_girotienda = "Selecciona una opcion"; + //BA.debugLineNum = 2272;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM HIST_ENCUESTA_CLIENTE WHERE HEC_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2273;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2274;BA.debugLine="CUENTA_MODULO = c.GetString(\"CUANTOS\")"; +_cuenta_modulo = _c.GetString("CUANTOS"); + //BA.debugLineNum = 2275;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2276;BA.debugLine="If CUENTA_MODULO > 0 Then"; +if ((double)(Double.parseDouble(_cuenta_modulo))>0) { + //BA.debugLineNum = 2277;BA.debugLine="c=skmt.ExecQuery(\"SELECT HEC_MODULO FROM HIST_E"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT HEC_MODULO FROM HIST_ENCUESTA_CLIENTE WHERE HEC_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2278;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2279;BA.debugLine="que_modulo = c.GetString(\"HEC_MODULO\")"; +_que_modulo = _c.GetString("HEC_MODULO"); + //BA.debugLineNum = 2280;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 2282;BA.debugLine="Log(Subs.traeAlmacen)"; +__c.LogImpl("314876742",_subs._traealmacen /*String*/ (ba),0); + //BA.debugLineNum = 2283;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO1 WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2284;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2285;BA.debugLine="EXISTE = c.GetString(\"CUANTOS\")"; +_existe = _c.GetString("CUANTOS"); + //BA.debugLineNum = 2286;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2288;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO2 WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2289;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2290;BA.debugLine="EXISTE2 = c.GetString(\"CUANTOS\")"; +_existe2 = _c.GetString("CUANTOS"); + //BA.debugLineNum = 2291;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2293;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO3 WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2294;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2295;BA.debugLine="EXISTE3 = c.GetString(\"CUANTOS\")"; +_existe3 = _c.GetString("CUANTOS"); + //BA.debugLineNum = 2296;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2298;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO4 WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2299;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2300;BA.debugLine="EXISTE4 = c.GetString(\"CUANTOS\")"; +_existe4 = _c.GetString("CUANTOS"); + //BA.debugLineNum = 2301;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2303;BA.debugLine="c=skmt.ExecQuery(\"SELECT COUNT(*) AS CUANTOS FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT COUNT(*) AS CUANTOS FROM ENCUESTA_MODULO5 WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2304;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2305;BA.debugLine="EXISTE5 = c.GetString(\"CUANTOS\")"; +_existe5 = _c.GetString("CUANTOS"); + //BA.debugLineNum = 2306;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2331;BA.debugLine="If EXISTE = 0 And EXISTE2 = 0 And EXISTE3 = 0 An"; +if ((_existe).equals(BA.NumberToString(0)) && (_existe2).equals(BA.NumberToString(0)) && (_existe3).equals(BA.NumberToString(0)) && (_existe4).equals(BA.NumberToString(0)) && (_existe5).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 2332;BA.debugLine="S = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM C"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"CUESTIONARIO"}))); + //BA.debugLineNum = 2333;BA.debugLine="S.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 2334;BA.debugLine="If s.GetString(\"CAT_VA_VALOR\") > \"0\" Then"; +if ((double)(Double.parseDouble(_s.GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble("0"))) { + //BA.debugLineNum = 2336;BA.debugLine="ENCUESTA = s.GetString(\"CAT_VA_VALOR\")"; +_encuesta = _s.GetString("CAT_VA_VALOR"); + //BA.debugLineNum = 2337;BA.debugLine="ENCUESTA = \"3\""; +_encuesta = "3"; + }else { + //BA.debugLineNum = 2370;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + }; + }else { + //BA.debugLineNum = 2373;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + }; + //BA.debugLineNum = 2375;BA.debugLine="s.Close"; +_s.Close(); + }; + //BA.debugLineNum = 2384;BA.debugLine="End Sub"; +return ""; +} +public String _cuest_preguntacontestada(anywheresoftware.b4a.objects.collections.Map _m) throws Exception{ + //BA.debugLineNum = 6514;BA.debugLine="Sub cuest_preguntaContestada(m As Map)"; + //BA.debugLineNum = 6516;BA.debugLine="Log(m)"; +__c.LogImpl("324969218",BA.ObjectToString(_m),0); + //BA.debugLineNum = 6519;BA.debugLine="m.Get(\"panel\").As(Panel).RemoveView 'Quitamos le"; +((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_m.Get((Object)("panel"))))).RemoveView(); + //BA.debugLineNum = 6520;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 6521;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 6522;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from CUESTIONARIO where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"' and Q_IDPREGUNTA = '"+__c.SmartStringFormatter("",_m.Get((Object)("idPregunta")))+"'")); + //BA.debugLineNum = 6523;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CUESTIONARIO (Q_RUTA, Q_ALMACEN, Q_IDCLIENTE, Q_IDPREGUNTA, Q_PREGUNTA, Q_IDRESPUESTA, Q_RESPUESTA, Q_FECHA) values ('"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("idPregunta")))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("pregunta")))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("idRespuesta")))+"', '"+__c.SmartStringFormatter("",_m.Get((Object)("respuesta")))+"', '"+__c.SmartStringFormatter("",(Object)(__c.DateTime.Date(__c.DateTime.getNow())))+" "+__c.SmartStringFormatter("",(Object)(__c.DateTime.Time(__c.DateTime.getNow())))+"')")); + //BA.debugLineNum = 6524;BA.debugLine="Log(\">> RESP: \" & m.Get(\"respuesta\"))"; +__c.LogImpl("324969226",">> RESP: "+BA.ObjectToString(_m.Get((Object)("respuesta"))),0); + //BA.debugLineNum = 6525;BA.debugLine="Select Case m.Get(\"idPregunta\")"; +switch (BA.switchObjectToInt(_m.Get((Object)("idPregunta")),(Object)("1"),(Object)("2"),(Object)("3"),(Object)("4"),(Object)("5"),(Object)("6"),(Object)("7"))) { +case 0: { + //BA.debugLineNum = 6527;BA.debugLine="If m.Get(\"respuesta\") = \"Ninguno de los anterio"; +if ((_m.Get((Object)("respuesta"))).equals((Object)("Ninguno de los anteriores"))) { + //BA.debugLineNum = 6530;BA.debugLine="cuest.agregaPreguntaCheckbox(\"3\", \"¿Qué produc"; +_cuest._agregapreguntacheckbox /*String*/ ("3","¿Qué productos de Kileo Gato encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Whiskas","KITEKAT","PAL GATO","CAT CHOW","GATINA","MININO","MI MISHI","OTROS","Ninguno de los anteriores"})); + }else { + //BA.debugLineNum = 6533;BA.debugLine="cuest.agregaPreguntaAbierta(\"2\", \"Captura el p"; +_cuest._agregapreguntaabierta /*String*/ ("2","Captura el precio por kilo de los articulos seleccionados anteriormente",_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("idRespuesta")))),_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("respuesta"))))); + }; + break; } +case 1: { + //BA.debugLineNum = 6537;BA.debugLine="cuest.agregaPreguntaCheckbox(\"3\", \"¿Qué product"; +_cuest._agregapreguntacheckbox /*String*/ ("3","¿Qué productos de Kileo Gato encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Whiskas","KITEKAT","PAL GATO","CAT CHOW","GATINA","MININO","MI MISHI","OTROS","Ninguno de los anteriores"})); + break; } +case 2: { + //BA.debugLineNum = 6540;BA.debugLine="If m.Get(\"respuesta\") = \"Ninguno de los anterio"; +if ((_m.Get((Object)("respuesta"))).equals((Object)("Ninguno de los anteriores"))) { + //BA.debugLineNum = 6543;BA.debugLine="cuest.agregaPreguntaCheckbox(\"5\", \"¿Qué produc"; +_cuest._agregapreguntacheckbox /*String*/ ("5","¿Qué productos de húmedo MARS encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Pedigree Adulto res","Pedigree Adulto Pollo","Pedigree Cachorro res","Pedigree Cachorro Pollo","Pedigree Raz Peq res","Pedigree Raz Peq Pollo","Pedigree Adulto Cordero","Pedigree Adulto Lata res","Whiskas Atún","Whiskas Pollo","Whiskas res","Whiskas Salmón","Whiskas Parrillada Mixta","Whiskas Pescado BLANCO","Whiskas Souffle","Ninguno de los anteriores"})); + }else { + //BA.debugLineNum = 6545;BA.debugLine="cuest.agregaPreguntaAbierta(\"4\", \"Captura el p"; +_cuest._agregapreguntaabierta /*String*/ ("4","Captura el precio por kilo de los articulos seleccionados anteriormente",_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("idRespuesta")))),_cuest._strtolist /*anywheresoftware.b4a.objects.collections.List*/ (BA.ObjectToString(_m.Get((Object)("respuesta"))))); + }; + break; } +case 3: { + //BA.debugLineNum = 6548;BA.debugLine="cuest.agregaPreguntaCheckbox(\"5\", \"¿Qué product"; +_cuest._agregapreguntacheckbox /*String*/ ("5","¿Qué productos de húmedo MARS encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Pedigree Adulto res","Pedigree Adulto Pollo","Pedigree Cachorro res","Pedigree Cachorro Pollo","Pedigree Raz Peq res","Pedigree Raz Peq Pollo","Pedigree Adulto Cordero","Pedigree Adulto Lata res","Whiskas Atún","Whiskas Pollo","Whiskas res","Whiskas Salmón","Whiskas Parrillada Mixta","Whiskas Pescado BLANCO","Whiskas Souffle","Ninguno de los anteriores"})); + break; } +case 4: { + //BA.debugLineNum = 6550;BA.debugLine="cuest.agregaPreguntaCheckbox(\"6\", \"¿Qué product"; +_cuest._agregapreguntacheckbox /*String*/ ("6","¿Qué productos de húmedo otros encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Dog Chow (cualquier sabor)","Ganador (cualquier sabor)","Felix (cualquier sabor)","Minino plus (cualquier sabor)","Cat Chow (cualquier sabor)","Beneful (cualquier sabor)","Amigo Gourmet (cualquier sabor)","Ninguno de los anteriores"})); + break; } +case 5: { + //BA.debugLineNum = 6552;BA.debugLine="cuest.agregaPreguntaCheckbox(\"7\", \"¿Qué product"; +_cuest._agregapreguntacheckbox /*String*/ ("7","¿Qué productos de botanas encuentras en esta tienda?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"Dentastix","Biscrok","Ninguno de los anteriores"})); + break; } +case 6: { + //BA.debugLineNum = 6555;BA.debugLine="ToastMessageShow(m.Get(\"respuesta\"), False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence(_m.Get((Object)("respuesta"))),__c.False); + //BA.debugLineNum = 6556;BA.debugLine="Log(\">>>>>>>>>> \" & cuest.encuestaIniciada)"; +__c.LogImpl("324969258",">>>>>>>>>> "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0); + //BA.debugLineNum = 6557;BA.debugLine="cuest.encuestaIniciada = False"; +_cuest._encuestainiciada /*boolean*/ = __c.False; + //BA.debugLineNum = 6558;BA.debugLine="Log(\">>>>>>>>>> \" & cuest.encuestaIniciada)"; +__c.LogImpl("324969260",">>>>>>>>>> "+BA.ObjectToString(_cuest._encuestainiciada /*boolean*/ ),0); + //BA.debugLineNum = 6561;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + break; } +} +; + //BA.debugLineNum = 6564;BA.debugLine="End Sub"; +return ""; +} +public void _cuestionario() throws Exception{ +ResumableSub_Cuestionario rsub = new ResumableSub_Cuestionario(this); +rsub.resume(ba, null); +} +public static class ResumableSub_Cuestionario extends BA.ResumableSub { +public ResumableSub_Cuestionario(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +boolean _logger = false; +String _fecha = ""; +int _cuantos2 = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _enc = null; +anywheresoftware.b4a.objects.collections.List _listapreguntas = null; +int _j = 0; +int _i = 0; +String _btop = ""; +int step29; +int limit29; +int step35; +int limit35; + +@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 = 6179;BA.debugLine="Log(\"Entramos a Cuestionario\")"; +parent.__c.LogImpl("323986177","Entramos a Cuestionario",0); + //BA.debugLineNum = 6180;BA.debugLine="Private logger As Boolean = True"; +_logger = parent.__c.True; + //BA.debugLineNum = 6181;BA.debugLine="b_encuesta_continuar.Visible = False"; +parent._b_encuesta_continuar.setVisible(parent.__c.False); + //BA.debugLineNum = 6182;BA.debugLine="et_encuesta.Visible = False"; +parent._et_encuesta.setVisible(parent.__c.False); + //BA.debugLineNum = 6183;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 6184;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 6185;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 6186;BA.debugLine="Private fecha As String = $\"${DateTime.Date(DateT"; +_fecha = (""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.DateTime.Date(parent.__c.DateTime.getNow())))+" "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.DateTime.Time(parent.__c.DateTime.getNow())))+""); + //BA.debugLineNum = 6187;BA.debugLine="CUANTOS = 0"; +parent._cuantos = BA.NumberToString(0); + //BA.debugLineNum = 6189;BA.debugLine="If logger Then Log($\"Tomar_Foto = ${TOMAR_FOTO}\"$"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_logger) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +parent.__c.LogImpl("323986187",("Tomar_Foto = "+parent.__c.SmartStringFormatter("",(Object)(parent._tomar_foto))+""),0); +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 6190;BA.debugLine="If TOMAR_FOTO = 0 Then"; +if (true) break; + +case 7: +//if +this.state = 16; +if ((parent._tomar_foto).equals(BA.NumberToString(0))) { +this.state = 9; +}if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 6191;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select COU"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS from HIST_ENCUESTA where HE_CLIE In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 6192;BA.debugLine="s.Position= 0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 6193;BA.debugLine="CUANTOS = s.GetString(\"CUANTOS\")"; +parent._cuantos = parent._s.GetString("CUANTOS"); + //BA.debugLineNum = 6194;BA.debugLine="Private CUANTOS2 As Int = 0"; +_cuantos2 = (int) (0); + //BA.debugLineNum = 6195;BA.debugLine="s = B4XPages.MainPage.skmt.ExecQuery(\"select COU"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS2 from HIST_ENCUESTA2 where HE_CLIENTE In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 6196;BA.debugLine="s.Position = 0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 6197;BA.debugLine="CUANTOS2 = s.GetString(\"CUANTOS2\")"; +_cuantos2 = (int)(Double.parseDouble(parent._s.GetString("CUANTOS2"))); + //BA.debugLineNum = 6198;BA.debugLine="If logger Then LogColor($\"Hist:encuesta=${CUANTO"; +if (true) break; + +case 10: +//if +this.state = 15; +if (_logger) { +this.state = 12; +;}if (true) break; + +case 12: +//C +this.state = 15; +parent.__c.LogImpl("323986196",("Hist:encuesta="+parent.__c.SmartStringFormatter("",(Object)(parent._cuantos))+", hist_encuesta2 = "+parent.__c.SmartStringFormatter("",(Object)(_cuantos2))+""),parent.__c.Colors.Magenta); +if (true) break; + +case 15: +//C +this.state = 16; +; + if (true) break; +; + //BA.debugLineNum = 6202;BA.debugLine="If logger Then Log(CUANTOS & \"|\" & CUANTOS2)"; + +case 16: +//if +this.state = 21; +if (_logger) { +this.state = 18; +;}if (true) break; + +case 18: +//C +this.state = 21; +parent.__c.LogImpl("323986200",parent._cuantos+"|"+BA.NumberToString(_cuantos2),0); +if (true) break; + +case 21: +//C +this.state = 22; +; + //BA.debugLineNum = 6203;BA.debugLine="If CUANTOS = 0 And CUANTOS2 = 0 Then"; +if (true) break; + +case 22: +//if +this.state = 224; +if ((parent._cuantos).equals(BA.NumberToString(0)) && _cuantos2==0) { +this.state = 24; +}else { +this.state = 223; +}if (true) break; + +case 24: +//C +this.state = 25; + //BA.debugLineNum = 6204;BA.debugLine="Private enc As Cursor = B4XPages.MainPage.skmt.E"; +_enc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_enc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_EP_ID, CAT_EP_IDTIPOPREGUNTA, CAT_CE_DESCRIPCION, CAT_EP_PREGUNTA, CAT_EP_RES1_PRED, CAT_EP_RES2_PRED, CAT_EP_RES3_PRED, CAT_EP_ORDEN_PREGUNTA FROM CAT_ENCUESTA_PREGUNTA ORDER BY CAT_CE_DESCRIPCION, CAST(CAT_EP_ORDEN_PREGUNTA AS DECIMAL)"))); + //BA.debugLineNum = 6205;BA.debugLine="If enc.RowCount > 0 Then"; +if (true) break; + +case 25: +//if +this.state = 221; +if (_enc.getRowCount()>0) { +this.state = 27; +}else { +this.state = 220; +}if (true) break; + +case 27: +//C +this.state = 28; + //BA.debugLineNum = 6206;BA.debugLine="enc.position = 0"; +_enc.setPosition((int) (0)); + //BA.debugLineNum = 6207;BA.debugLine="If logger Then Log($\"CAT_EP_ID=${enc.GetString("; +if (true) break; + +case 28: +//if +this.state = 33; +if (_logger) { +this.state = 30; +;}if (true) break; + +case 30: +//C +this.state = 33; +parent.__c.LogImpl("323986205",("CAT_EP_ID="+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_ID")))+""),0); +if (true) break; + +case 33: +//C +this.state = 34; +; + //BA.debugLineNum = 6208;BA.debugLine="Private listaPreguntas As List"; +_listapreguntas = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 6209;BA.debugLine="listaPreguntas.Initialize"; +_listapreguntas.Initialize(); + //BA.debugLineNum = 6210;BA.debugLine="For j = 0 To enc.RowCount - 1 'Ponemos en una l"; +if (true) break; + +case 34: +//for +this.state = 37; +step29 = 1; +limit29 = (int) (_enc.getRowCount()-1); +_j = (int) (0) ; +this.state = 225; +if (true) break; + +case 225: +//C +this.state = 37; +if ((step29 > 0 && _j <= limit29) || (step29 < 0 && _j >= limit29)) this.state = 36; +if (true) break; + +case 226: +//C +this.state = 225; +_j = ((int)(0 + _j + step29)) ; +if (true) break; + +case 36: +//C +this.state = 226; + //BA.debugLineNum = 6211;BA.debugLine="enc.Position = j"; +_enc.setPosition(_j); + //BA.debugLineNum = 6212;BA.debugLine="listaPreguntas.Add(enc.GetString(\"CAT_EP_ID\"))"; +_listapreguntas.Add((Object)(_enc.GetString("CAT_EP_ID"))); + if (true) break; +if (true) break; +; + //BA.debugLineNum = 6214;BA.debugLine="If logger Then Log(listaPreguntas)"; + +case 37: +//if +this.state = 42; +if (_logger) { +this.state = 39; +;}if (true) break; + +case 39: +//C +this.state = 42; +parent.__c.LogImpl("323986212",BA.ObjectToString(_listapreguntas),0); +if (true) break; + +case 42: +//C +this.state = 43; +; + //BA.debugLineNum = 6215;BA.debugLine="enc.position = 0"; +_enc.setPosition((int) (0)); + //BA.debugLineNum = 6216;BA.debugLine="For i = 0 To enc.RowCount - 1"; +if (true) break; + +case 43: +//for +this.state = 218; +step35 = 1; +limit35 = (int) (_enc.getRowCount()-1); +_i = (int) (0) ; +this.state = 227; +if (true) break; + +case 227: +//C +this.state = 218; +if ((step35 > 0 && _i <= limit35) || (step35 < 0 && _i >= limit35)) this.state = 45; +if (true) break; + +case 228: +//C +this.state = 227; +_i = ((int)(0 + _i + step35)) ; +if (true) break; + +case 45: +//C +this.state = 46; + //BA.debugLineNum = 6217;BA.debugLine="Log(\"#########################################"; +parent.__c.LogImpl("323986215","########################################################",0); + //BA.debugLineNum = 6220;BA.debugLine="If logger Then Log($\"Tipo: ${enc.GetString(\"CA"; +if (true) break; + +case 46: +//if +this.state = 51; +if (_logger) { +this.state = 48; +;}if (true) break; + +case 48: +//C +this.state = 51; +parent.__c.LogImpl("323986218",("Tipo: "+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_IDTIPOPREGUNTA")))+", CAT_EP_ID="+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_ID")))+", CAT_EP_PREGUNTA="+parent.__c.SmartStringFormatter("",(Object)(_enc.GetString("CAT_EP_PREGUNTA")))+""),0); +if (true) break; + +case 51: +//C +this.state = 52; +; + //BA.debugLineNum = 6221;BA.debugLine="If enc.GetString(\"CAT_EP_IDTIPOPREGUNTA\") <> 4"; +if (true) break; + +case 52: +//if +this.state = 55; +if ((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(4)) == false && parent._indicepregunta!=0) { +this.state = 54; +}if (true) break; + +case 54: +//C +this.state = 55; + //BA.debugLineNum = 6222;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc.G"; +parent._indicepregunta = (int) (_listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_ID")))+1); + //BA.debugLineNum = 6223;BA.debugLine="i = indicePregunta"; +_i = parent._indicepregunta; + //BA.debugLineNum = 6224;BA.debugLine="Log($\"i = ${i}\"$)"; +parent.__c.LogImpl("323986222",("i = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0); + if (true) break; +; + //BA.debugLineNum = 6226;BA.debugLine="If logger Then Log(\"indicePregunta: \" & indice"; + +case 55: +//if +this.state = 60; +if (_logger) { +this.state = 57; +;}if (true) break; + +case 57: +//C +this.state = 60; +parent.__c.LogImpl("323986224","indicePregunta: "+BA.NumberToString(parent._indicepregunta)+", TIPO: "+_enc.GetString("CAT_EP_IDTIPOPREGUNTA"),0); +if (true) break; + +case 60: +//C +this.state = 61; +; + //BA.debugLineNum = 6228;BA.debugLine="If logger Then Log($\"EncuestaRes = ${encuestaR"; +if (true) break; + +case 61: +//if +this.state = 66; +if (_logger) { +this.state = 63; +;}if (true) break; + +case 63: +//C +this.state = 66; +parent.__c.LogImpl("323986226",("EncuestaRes = "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),0); +if (true) break; + +case 66: +//C +this.state = 67; +; + //BA.debugLineNum = 6229;BA.debugLine="If logger Then Log(listaPreguntas)"; +if (true) break; + +case 67: +//if +this.state = 72; +if (_logger) { +this.state = 69; +;}if (true) break; + +case 69: +//C +this.state = 72; +parent.__c.LogImpl("323986227",BA.ObjectToString(_listapreguntas),0); +if (true) break; + +case 72: +//C +this.state = 73; +; + //BA.debugLineNum = 6230;BA.debugLine="If TOMAR_FOTO = 1 Then"; +if (true) break; + +case 73: +//if +this.state = 87; +if ((parent._tomar_foto).equals(BA.NumberToString(1))) { +this.state = 75; +}if (true) break; + +case 75: +//C +this.state = 76; + //BA.debugLineNum = 6231;BA.debugLine="If CURSOR_FOTO + 1 > enc.RowCount -1 Then"; +if (true) break; + +case 76: +//if +this.state = 81; +if (parent._cursor_foto+1>_enc.getRowCount()-1) { +this.state = 78; +}else { +this.state = 80; +}if (true) break; + +case 78: +//C +this.state = 81; + //BA.debugLineNum = 6232;BA.debugLine="TOMAR_FOTO = 0"; +parent._tomar_foto = BA.NumberToString(0); + //BA.debugLineNum = 6233;BA.debugLine="LogColor(\"TOMAR FOTO = 1\", Colors.Red)"; +parent.__c.LogImpl("323986231","TOMAR FOTO = 1",parent.__c.Colors.Red); + //BA.debugLineNum = 6234;BA.debugLine="Exit"; +this.state = 218; +if (true) break; + if (true) break; + +case 80: +//C +this.state = 81; + //BA.debugLineNum = 6236;BA.debugLine="i = CURSOR_FOTO + 1"; +_i = (int) (parent._cursor_foto+1); + if (true) break; +; + //BA.debugLineNum = 6238;BA.debugLine="If logger Then Log($\"i = ${i}\"$)"; + +case 81: +//if +this.state = 86; +if (_logger) { +this.state = 83; +;}if (true) break; + +case 83: +//C +this.state = 86; +parent.__c.LogImpl("323986236",("i = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0); +if (true) break; + +case 86: +//C +this.state = 87; +; + //BA.debugLineNum = 6239;BA.debugLine="TOMAR_FOTO = 0"; +parent._tomar_foto = BA.NumberToString(0); + if (true) break; +; + //BA.debugLineNum = 6241;BA.debugLine="If i > (enc.RowCount - 1) Then"; + +case 87: +//if +this.state = 90; +if (_i>(_enc.getRowCount()-1)) { +this.state = 89; +}if (true) break; + +case 89: +//C +this.state = 90; + //BA.debugLineNum = 6242;BA.debugLine="LogColor(\"MAS DE ${enc.RowCount - 1}\", Colors"; +parent.__c.LogImpl("323986240","MAS DE ${enc.RowCount - 1}",parent.__c.Colors.Red); + //BA.debugLineNum = 6243;BA.debugLine="Exit ' Si se contestó la ultima pregunta, ent"; +this.state = 218; +if (true) break; + if (true) break; + +case 90: +//C +this.state = 91; +; + //BA.debugLineNum = 6247;BA.debugLine="i = indicePregunta"; +_i = parent._indicepregunta; + //BA.debugLineNum = 6249;BA.debugLine="enc.Position = i"; +_enc.setPosition(_i); + //BA.debugLineNum = 6250;BA.debugLine="Log($\"POSICION = ${enc.Position}\"$)"; +parent.__c.LogImpl("323986248",("POSICION = "+parent.__c.SmartStringFormatter("",(Object)(_enc.getPosition()))+""),0); + //BA.debugLineNum = 6251;BA.debugLine="If enc.GetString(\"CAT_EP_IDTIPOPREGUNTA\") = 5"; +if (true) break; + +case 91: +//if +this.state = 214; +if ((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(5))) { +this.state = 93; +}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(3))) { +this.state = 101; +}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(4))) { +this.state = 124; +}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(2))) { +this.state = 163; +}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(6))) { +this.state = 187; +}else if((_enc.GetString("CAT_EP_IDTIPOPREGUNTA")).equals(BA.NumberToString(1))) { +this.state = 195; +}else { +this.state = 213; +}if (true) break; + +case 93: +//C +this.state = 94; + //BA.debugLineNum = 6252;BA.debugLine="If logger Then Log(\"Pregunta tipo 5\")"; +if (true) break; + +case 94: +//if +this.state = 99; +if (_logger) { +this.state = 96; +;}if (true) break; + +case 96: +//C +this.state = 99; +parent.__c.LogImpl("323986250","Pregunta tipo 5",0); +if (true) break; + +case 99: +//C +this.state = 214; +; + //BA.debugLineNum = 6253;BA.debugLine="id_encuesta = enc.GetString(\"CAT_EP_ID\")"; +parent._id_encuesta = _enc.GetString("CAT_EP_ID"); + //BA.debugLineNum = 6254;BA.debugLine="idencuestaaguardar = enc.GetString(\"CAT_EP_ID"; +parent._idencuestaaguardar = _enc.GetString("CAT_EP_ID"); + //BA.debugLineNum = 6255;BA.debugLine="LogColor(idencuestaaguardar,Colors.Blue)"; +parent.__c.LogImpl("323986253",parent._idencuestaaguardar,parent.__c.Colors.Blue); + //BA.debugLineNum = 6256;BA.debugLine="TOMAR_FOTO = 1"; +parent._tomar_foto = BA.NumberToString(1); + //BA.debugLineNum = 6257;BA.debugLine="CURSOR_FOTO = i"; +parent._cursor_foto = _i; + //BA.debugLineNum = 6258;BA.debugLine="LogColor(\"PREGUNTA TIPO 5 SALIMOS\", Colors.Re"; +parent.__c.LogImpl("323986256","PREGUNTA TIPO 5 SALIMOS",parent.__c.Colors.Red); + //BA.debugLineNum = 6260;BA.debugLine="InitializeCamera2"; +parent._initializecamera2(); + //BA.debugLineNum = 6261;BA.debugLine="p_camara.Visible = True"; +parent._p_camara.setVisible(parent.__c.True); + if (true) break; + +case 101: +//C +this.state = 102; + //BA.debugLineNum = 6265;BA.debugLine="If logger Then Log(\"Pregunta tipo 3\")"; +if (true) break; + +case 102: +//if +this.state = 107; +if (_logger) { +this.state = 104; +;}if (true) break; + +case 104: +//C +this.state = 107; +parent.__c.LogImpl("323986263","Pregunta tipo 3",0); +if (true) break; + +case 107: +//C +this.state = 108; +; + //BA.debugLineNum = 6266;BA.debugLine="botonPresionado = 0 ' Bandera para que espere"; +parent._botonpresionado = (int) (0); + //BA.debugLineNum = 6267;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE"; +parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION"))); + //BA.debugLineNum = 6268;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR"; +parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA"))); + //BA.debugLineNum = 6269;BA.debugLine="Subs.centraEtiqueta(l_txtEncuesta, Root.Width"; +parent._subs._centraetiqueta /*String*/ (ba,parent._l_txtencuesta,parent._root.getWidth()); + //BA.debugLineNum = 6270;BA.debugLine="muestraBoton(b_encuesta_1,\"SI\", enc.GetString"; +parent._muestraboton(parent._b_encuesta_1,"SI",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-350),(int) (580),(int) (300),(int) (160)); + //BA.debugLineNum = 6271;BA.debugLine="muestraBoton(b_encuesta_2, \"NO\", enc.GetStrin"; +parent._muestraboton(parent._b_encuesta_2,"NO",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()+50),(int) (580),(int) (300),(int) (160)); + //BA.debugLineNum = 6272;BA.debugLine="muestraEncuesta"; +parent._muestraencuesta(); + //BA.debugLineNum = 6273;BA.debugLine="Log(\"Esperamos respuesta\")"; +parent.__c.LogImpl("323986271","Esperamos respuesta",0); + //BA.debugLineNum = 6274;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r"; +if (true) break; + +case 108: +//do until +this.state = 111; +while (!(parent._botonpresionado==1)) { +this.state = 110; +if (true) break; +} +if (true) break; + +case 110: +//C +this.state = 108; + //BA.debugLineNum = 6275;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 229; +return; +case 229: +//C +this.state = 108; +; + if (true) break; +; + //BA.debugLineNum = 6277;BA.debugLine="If logger Then Log(\"encuestaRes: \" & encuesta"; + +case 111: +//if +this.state = 116; +if (_logger) { +this.state = 113; +;}if (true) break; + +case 113: +//C +this.state = 116; +parent.__c.LogImpl("323986275","encuestaRes: "+parent._encuestares,0); +if (true) break; + +case 116: +//C +this.state = 117; +; + //BA.debugLineNum = 6278;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 3 :"; +if (true) break; + +case 117: +//if +this.state = 122; +if (_logger) { +this.state = 119; +;}if (true) break; + +case 119: +//C +this.state = 122; +parent.__c.LogImpl("323986276",("Guardamos tipo 3 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green); +if (true) break; + +case 122: +//C +this.state = 214; +; + //BA.debugLineNum = 6279;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._encuestares),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 6280;BA.debugLine="ocultaPanelEncuesta"; +parent._ocultapanelencuesta(); + if (true) break; + +case 124: +//C +this.state = 125; + //BA.debugLineNum = 6282;BA.debugLine="If logger Then Log(\"Pregunta tipo 4\")"; +if (true) break; + +case 125: +//if +this.state = 130; +if (_logger) { +this.state = 127; +;}if (true) break; + +case 127: +//C +this.state = 130; +parent.__c.LogImpl("323986280","Pregunta tipo 4",0); +if (true) break; + +case 130: +//C +this.state = 131; +; + //BA.debugLineNum = 6283;BA.debugLine="botonPresionado = 0 ' Bandera para que espere"; +parent._botonpresionado = (int) (0); + //BA.debugLineNum = 6284;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE"; +parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION"))); + //BA.debugLineNum = 6285;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR"; +parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA"))); + //BA.debugLineNum = 6286;BA.debugLine="If logger Then Log(enc.GetString(\"CAT_EP_PREG"; +if (true) break; + +case 131: +//if +this.state = 136; +if (_logger) { +this.state = 133; +;}if (true) break; + +case 133: +//C +this.state = 136; +parent.__c.LogImpl("323986284",_enc.GetString("CAT_EP_PREGUNTA"),0); +if (true) break; + +case 136: +//C +this.state = 137; +; + //BA.debugLineNum = 6287;BA.debugLine="Subs.centraEtiqueta(l_txtEncuesta, Root.Width"; +parent._subs._centraetiqueta /*String*/ (ba,parent._l_txtencuesta,parent._root.getWidth()); + //BA.debugLineNum = 6288;BA.debugLine="muestraBoton(b_encuesta_1,\"SI\", enc.GetString"; +parent._muestraboton(parent._b_encuesta_1,"SI",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-350),(int) (580),(int) (300),(int) (160)); + //BA.debugLineNum = 6289;BA.debugLine="muestraBoton(b_encuesta_2, \"NO\", enc.GetStrin"; +parent._muestraboton(parent._b_encuesta_2,"NO",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()+50),(int) (580),(int) (300),(int) (160)); + //BA.debugLineNum = 6290;BA.debugLine="muestraEncuesta"; +parent._muestraencuesta(); + //BA.debugLineNum = 6291;BA.debugLine="Log(\"Esperamos respuesta\")"; +parent.__c.LogImpl("323986289","Esperamos respuesta",0); + //BA.debugLineNum = 6292;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r"; +if (true) break; + +case 137: +//do until +this.state = 140; +while (!(parent._botonpresionado==1)) { +this.state = 139; +if (true) break; +} +if (true) break; + +case 139: +//C +this.state = 137; + //BA.debugLineNum = 6293;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 230; +return; +case 230: +//C +this.state = 137; +; + if (true) break; +; + //BA.debugLineNum = 6295;BA.debugLine="If logger Then Log(\"encuestaRes: \" & encuesta"; + +case 140: +//if +this.state = 145; +if (_logger) { +this.state = 142; +;}if (true) break; + +case 142: +//C +this.state = 145; +parent.__c.LogImpl("323986293","encuestaRes: "+parent._encuestares,0); +if (true) break; + +case 145: +//C +this.state = 146; +; + //BA.debugLineNum = 6296;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 4 :"; +if (true) break; + +case 146: +//if +this.state = 151; +if (_logger) { +this.state = 148; +;}if (true) break; + +case 148: +//C +this.state = 151; +parent.__c.LogImpl("323986294",("Guardamos tipo 4 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green); +if (true) break; + +case 151: +//C +this.state = 152; +; + //BA.debugLineNum = 6297;BA.debugLine="If encuestaRes = \"SI\" Then"; +if (true) break; + +case 152: +//if +this.state = 161; +if ((parent._encuestares).equals("SI")) { +this.state = 154; +}else if((parent._encuestares).equals("NO")) { +this.state = 156; +}if (true) break; + +case 154: +//C +this.state = 161; + //BA.debugLineNum = 6298;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)("SI"),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 6299;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc."; +parent._indicepregunta = _listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_RES1_PRED"))); + //BA.debugLineNum = 6300;BA.debugLine="Log($\"IndicePreg = ${indicePregunta}\"$)"; +parent.__c.LogImpl("323986298",("IndicePreg = "+parent.__c.SmartStringFormatter("",(Object)(parent._indicepregunta))+""),0); + //BA.debugLineNum = 6301;BA.debugLine="i = indicePregunta"; +_i = parent._indicepregunta; + if (true) break; + +case 156: +//C +this.state = 157; + //BA.debugLineNum = 6303;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)("NO"),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 6304;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc."; +parent._indicepregunta = _listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_RES2_PRED"))); + //BA.debugLineNum = 6305;BA.debugLine="Log($\"IndicePreg = ${indicePregunta}\"$)"; +parent.__c.LogImpl("323986303",("IndicePreg = "+parent.__c.SmartStringFormatter("",(Object)(parent._indicepregunta))+""),0); + //BA.debugLineNum = 6306;BA.debugLine="i = indicePregunta"; +_i = parent._indicepregunta; + //BA.debugLineNum = 6307;BA.debugLine="Log($\"I = ${i}\"$)"; +parent.__c.LogImpl("323986305",("I = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0); + //BA.debugLineNum = 6308;BA.debugLine="If enc.GetString(\"CAT_EP_RES2_PRED\") = \"null"; +if (true) break; + +case 157: +//if +this.state = 160; +if ((_enc.GetString("CAT_EP_RES2_PRED")).equals("null") || _enc.GetString("CAT_EP_RES2_PRED")== null) { +this.state = 159; +}if (true) break; + +case 159: +//C +this.state = 160; + //BA.debugLineNum = 6309;BA.debugLine="Exit"; +this.state = 218; +if (true) break; + if (true) break; + +case 160: +//C +this.state = 161; +; + if (true) break; + +case 161: +//C +this.state = 214; +; + if (true) break; + +case 163: +//C +this.state = 164; + //BA.debugLineNum = 6313;BA.debugLine="Log(\"Pregunta tipo 2\")"; +parent.__c.LogImpl("323986311","Pregunta tipo 2",0); + //BA.debugLineNum = 6314;BA.debugLine="botonPresionado = 0 ' Bandera para que espere"; +parent._botonpresionado = (int) (0); + //BA.debugLineNum = 6315;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE"; +parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION"))); + //BA.debugLineNum = 6316;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR"; +parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA"))); + //BA.debugLineNum = 6317;BA.debugLine="If logger Then Log(enc.GetString(\"CAT_EP_PREG"; +if (true) break; + +case 164: +//if +this.state = 169; +if (_logger) { +this.state = 166; +;}if (true) break; + +case 166: +//C +this.state = 169; +parent.__c.LogImpl("323986315",_enc.GetString("CAT_EP_PREGUNTA"),0); +if (true) break; + +case 169: +//C +this.state = 170; +; + //BA.debugLineNum = 6318;BA.debugLine="muestraBoton(b_encuesta_1, enc.GetString(\"CAT"; +parent._muestraboton(parent._b_encuesta_1,_enc.GetString("CAT_EP_RES1_PRED"),_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int) (580),(int) (500),(int) (160)); + //BA.debugLineNum = 6319;BA.debugLine="muestraBoton(b_encuesta_2, enc.GetString(\"CAT"; +parent._muestraboton(parent._b_encuesta_2,_enc.GetString("CAT_EP_RES2_PRED"),_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int) (740),(int) (500),(int) (160)); + //BA.debugLineNum = 6320;BA.debugLine="muestraBoton(b_encuesta_3, enc.GetString(\"CAT"; +parent._muestraboton(parent._b_encuesta_3,_enc.GetString("CAT_EP_RES3_PRED"),_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int) (900),(int) (500),(int) (160)); + //BA.debugLineNum = 6321;BA.debugLine="muestraEncuesta"; +parent._muestraencuesta(); + //BA.debugLineNum = 6322;BA.debugLine="Log(\"Esperamos respuesta\")"; +parent.__c.LogImpl("323986320","Esperamos respuesta",0); + //BA.debugLineNum = 6323;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r"; +if (true) break; + +case 170: +//do until +this.state = 173; +while (!(parent._botonpresionado==1)) { +this.state = 172; +if (true) break; +} +if (true) break; + +case 172: +//C +this.state = 170; + //BA.debugLineNum = 6324;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 231; +return; +case 231: +//C +this.state = 170; +; + if (true) break; + +case 173: +//C +this.state = 174; +; + //BA.debugLineNum = 6326;BA.debugLine="Log(\"encuestaRes: \" & encuestaRes)"; +parent.__c.LogImpl("323986324","encuestaRes: "+parent._encuestares,0); + //BA.debugLineNum = 6327;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 2 :"; +if (true) break; + +case 174: +//if +this.state = 179; +if (_logger) { +this.state = 176; +;}if (true) break; + +case 176: +//C +this.state = 179; +parent.__c.LogImpl("323986325",("Guardamos tipo 2 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green); +if (true) break; + +case 179: +//C +this.state = 180; +; + //BA.debugLineNum = 6328;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._encuestares),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 6330;BA.debugLine="indicePregunta = listaPreguntas.IndexOf(enc.G"; +parent._indicepregunta = _listapreguntas.IndexOf((Object)(_enc.GetString("CAT_EP_ID"))); + //BA.debugLineNum = 6331;BA.debugLine="i = indicePregunta + 1"; +_i = (int) (parent._indicepregunta+1); + //BA.debugLineNum = 6332;BA.debugLine="If i = enc.RowCount - 1 Then i = i - 1"; +if (true) break; + +case 180: +//if +this.state = 185; +if (_i==_enc.getRowCount()-1) { +this.state = 182; +;}if (true) break; + +case 182: +//C +this.state = 185; +_i = (int) (_i-1); +if (true) break; + +case 185: +//C +this.state = 214; +; + //BA.debugLineNum = 6333;BA.debugLine="Log($\"i = ${i}\"$)"; +parent.__c.LogImpl("323986331",("i = "+parent.__c.SmartStringFormatter("",(Object)(_i))+""),0); + //BA.debugLineNum = 6334;BA.debugLine="ocultaPanelEncuesta"; +parent._ocultapanelencuesta(); + if (true) break; + +case 187: +//C +this.state = 188; + //BA.debugLineNum = 6336;BA.debugLine="If logger Then Log(\"Pregunta tipo 6\")"; +if (true) break; + +case 188: +//if +this.state = 193; +if (_logger) { +this.state = 190; +;}if (true) break; + +case 190: +//C +this.state = 193; +parent.__c.LogImpl("323986334","Pregunta tipo 6",0); +if (true) break; + +case 193: +//C +this.state = 214; +; + //BA.debugLineNum = 6337;BA.debugLine="Panel10.Visible = True"; +parent._panel10.setVisible(parent.__c.True); + //BA.debugLineNum = 6338;BA.debugLine="l_chk_e.Text = enc.GetString(\"CAT_EP_PREGUNT"; +parent._l_chk_e.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA"))); + //BA.debugLineNum = 6339;BA.debugLine="Chk_1.Checked = False"; +parent._chk_1.setChecked(parent.__c.False); + //BA.debugLineNum = 6340;BA.debugLine="chk_2.Checked = False"; +parent._chk_2.setChecked(parent.__c.False); + //BA.debugLineNum = 6341;BA.debugLine="chk_3.Checked = False"; +parent._chk_3.setChecked(parent.__c.False); + //BA.debugLineNum = 6342;BA.debugLine="Chk_1.Text = enc.GetString(\"CAT_EP_RES1_PRED\""; +parent._chk_1.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_RES1_PRED"))); + //BA.debugLineNum = 6343;BA.debugLine="chk_2.Text = enc.GetString(\"CAT_EP_RES2_PRED"; +parent._chk_2.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_RES2_PRED"))); + //BA.debugLineNum = 6344;BA.debugLine="chk_3.Text = enc.GetString(\"CAT_EP_RES3_PRED"; +parent._chk_3.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_RES3_PRED"))); + //BA.debugLineNum = 6345;BA.debugLine="chk_1_valor = enc.GetString(\"CAT_EP_RES1_PRE"; +parent._chk_1_valor = _enc.GetString("CAT_EP_RES1_PRED"); + //BA.debugLineNum = 6346;BA.debugLine="chk_2_valor = enc.GetString(\"CAT_EP_RES2_PRE"; +parent._chk_2_valor = _enc.GetString("CAT_EP_RES2_PRED"); + //BA.debugLineNum = 6347;BA.debugLine="chk_3_valor = enc.GetString(\"CAT_EP_RES3_PRE"; +parent._chk_3_valor = _enc.GetString("CAT_EP_RES3_PRED"); + //BA.debugLineNum = 6348;BA.debugLine="Chk_1.Tag = enc.GetString(\"CAT_EP_ID\")"; +parent._chk_1.setTag((Object)(_enc.GetString("CAT_EP_ID"))); + //BA.debugLineNum = 6349;BA.debugLine="chk_2.Tag = enc.GetString(\"CAT_EP_ID\")"; +parent._chk_2.setTag((Object)(_enc.GetString("CAT_EP_ID"))); + //BA.debugLineNum = 6350;BA.debugLine="chk_3.Tag = enc.GetString(\"CAT_EP_ID\")"; +parent._chk_3.setTag((Object)(_enc.GetString("CAT_EP_ID"))); + //BA.debugLineNum = 6351;BA.debugLine="TOMAR_FOTO = 1"; +parent._tomar_foto = BA.NumberToString(1); + //BA.debugLineNum = 6352;BA.debugLine="CURSOR_FOTO = i"; +parent._cursor_foto = _i; + //BA.debugLineNum = 6353;BA.debugLine="Exit"; +this.state = 218; +if (true) break; + if (true) break; + +case 195: +//C +this.state = 196; + //BA.debugLineNum = 6355;BA.debugLine="Log(\"Pregunta tipo 1\")"; +parent.__c.LogImpl("323986353","Pregunta tipo 1",0); + //BA.debugLineNum = 6356;BA.debugLine="botonPresionado = 0 ' Bandera para que espere"; +parent._botonpresionado = (int) (0); + //BA.debugLineNum = 6357;BA.debugLine="l_titEncuesta.Text = enc.GetString(\"CAT_CE_DE"; +parent._l_titencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_CE_DESCRIPCION"))); + //BA.debugLineNum = 6358;BA.debugLine="l_txtEncuesta.Text = enc.GetString(\"CAT_EP_PR"; +parent._l_txtencuesta.setText(BA.ObjectToCharSequence(_enc.GetString("CAT_EP_PREGUNTA"))); + //BA.debugLineNum = 6359;BA.debugLine="If logger Then Log(enc.GetString(\"CAT_EP_PREG"; +if (true) break; + +case 196: +//if +this.state = 201; +if (_logger) { +this.state = 198; +;}if (true) break; + +case 198: +//C +this.state = 201; +parent.__c.LogImpl("323986357",_enc.GetString("CAT_EP_PREGUNTA")+"|"+_enc.GetString("CAT_EP_ORDEN_PREGUNTA"),0); +if (true) break; + +case 201: +//C +this.state = 202; +; + //BA.debugLineNum = 6360;BA.debugLine="Subs.centraEditText(et_encuesta, Root.Width)"; +parent._subs._centraedittext /*String*/ (ba,parent._et_encuesta,parent._root.getWidth()); + //BA.debugLineNum = 6361;BA.debugLine="et_encuesta.Visible = True"; +parent._et_encuesta.setVisible(parent.__c.True); + //BA.debugLineNum = 6362;BA.debugLine="b_encuesta_continuar.Enabled = False"; +parent._b_encuesta_continuar.setEnabled(parent.__c.False); + //BA.debugLineNum = 6363;BA.debugLine="Private bTop = et_encuesta.Top + 130"; +_btop = BA.NumberToString(parent._et_encuesta.getTop()+130); + //BA.debugLineNum = 6364;BA.debugLine="muestraBoton(b_encuesta_continuar,\"Continuar\""; +parent._muestraboton(parent._b_encuesta_continuar,"Continuar",_enc.GetString("CAT_EP_ID"),(int) (parent._centropantalla()-250),(int)(Double.parseDouble(_btop)),(int) (500),(int) (160)); + //BA.debugLineNum = 6365;BA.debugLine="muestraEncuesta"; +parent._muestraencuesta(); + //BA.debugLineNum = 6366;BA.debugLine="Log(\"Esperamos respuesta\")"; +parent.__c.LogImpl("323986364","Esperamos respuesta",0); + //BA.debugLineNum = 6367;BA.debugLine="Do Until botonPresionado = 1 'Esperamos que r"; +if (true) break; + +case 202: +//do until +this.state = 205; +while (!(parent._botonpresionado==1)) { +this.state = 204; +if (true) break; +} +if (true) break; + +case 204: +//C +this.state = 202; + //BA.debugLineNum = 6368;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 232; +return; +case 232: +//C +this.state = 202; +; + if (true) break; + +case 205: +//C +this.state = 206; +; + //BA.debugLineNum = 6370;BA.debugLine="Log($\"Respuesta: ${encuestaRes}\"$)"; +parent.__c.LogImpl("323986368",("Respuesta: "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),0); + //BA.debugLineNum = 6371;BA.debugLine="If logger Then LogColor($\"Guardamos tipo 1 :"; +if (true) break; + +case 206: +//if +this.state = 211; +if (_logger) { +this.state = 208; +;}if (true) break; + +case 208: +//C +this.state = 211; +parent.__c.LogImpl("323986369",("Guardamos tipo 1 : "+parent.__c.SmartStringFormatter("",(Object)(parent._encuestares))+""),parent.__c.Colors.Green); +if (true) break; + +case 211: +//C +this.state = 214; +; + //BA.debugLineNum = 6372;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_ENCUESTA(HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._encuestares),(Object)(_fecha),(Object)(_enc.GetString("CAT_EP_ID")),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 6373;BA.debugLine="ocultaPanelEncuesta"; +parent._ocultapanelencuesta(); + if (true) break; + +case 213: +//C +this.state = 214; + //BA.debugLineNum = 6376;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +parent._b4xpages._showpage /*String*/ (ba,"productos"); + if (true) break; +; + //BA.debugLineNum = 6378;BA.debugLine="If i = enc.RowCount - 1 Then"; + +case 214: +//if +this.state = 217; +if (_i==_enc.getRowCount()-1) { +this.state = 216; +}if (true) break; + +case 216: +//C +this.state = 217; + //BA.debugLineNum = 6379;BA.debugLine="i = i - 1"; +_i = (int) (_i-1); + if (true) break; + +case 217: +//C +this.state = 228; +; + if (true) break; +if (true) break; + +case 218: +//C +this.state = 221; +; + //BA.debugLineNum = 6382;BA.debugLine="enc.Close"; +_enc.Close(); + if (true) break; + +case 220: +//C +this.state = 221; + //BA.debugLineNum = 6385;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +parent._b4xpages._showpage /*String*/ (ba,"productos"); + if (true) break; + +case 221: +//C +this.state = 224; +; + if (true) break; + +case 223: +//C +this.state = 224; + //BA.debugLineNum = 6389;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +parent._b4xpages._showpage /*String*/ (ba,"productos"); + if (true) break; + +case 224: +//C +this.state = -1; +; + //BA.debugLineNum = 6392;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _datos_click() throws Exception{ + //BA.debugLineNum = 2957;BA.debugLine="Sub DATOS_Click"; + //BA.debugLineNum = 2958;BA.debugLine="B4XPages.ShowPage(\"telefonos\")"; +_b4xpages._showpage /*String*/ (ba,"telefonos"); + //BA.debugLineNum = 2959;BA.debugLine="End Sub"; +return ""; +} +public void _enviarpdfwhatsappnumero(String _numerotelefono) throws Exception{ +ResumableSub_EnviarPDFWhatsAppNumero rsub = new ResumableSub_EnviarPDFWhatsAppNumero(this,_numerotelefono); +rsub.resume(ba, null); +} +public static class ResumableSub_EnviarPDFWhatsAppNumero extends BA.ResumableSub { +public ResumableSub_EnviarPDFWhatsAppNumero(gunav2.keymon.com.mx.c_cliente parent,String _numerotelefono) { +this.parent = parent; +this._numerotelefono = _numerotelefono; +} +gunav2.keymon.com.mx.c_cliente parent; +String _numerotelefono; +gunav2.keymon.com.mx.httpjob._multipartfiledata _fd = null; +String _link = ""; +anywheresoftware.b4a.objects.collections.Map _campos = null; +gunav2.keymon.com.mx.httpjob _job = 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 = 7342;BA.debugLine="If NumeroTelefono.Length = 10 Then NumeroTelefono"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_numerotelefono.length()==10) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +_numerotelefono = "521"+_numerotelefono; +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 7348;BA.debugLine="If File.Exists(Starter.fFileProvider.SharedFolder"; +if (true) break; + +case 7: +//if +this.state = 12; +if (parent.__c.File.Exists(parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,parent._archivoticketpdf)) { +this.state = 9; +}else { +this.state = 11; +}if (true) break; + +case 9: +//C +this.state = 12; + //BA.debugLineNum = 7350;BA.debugLine="Dim fd As MultipartFileData"; +_fd = new gunav2.keymon.com.mx.httpjob._multipartfiledata(); + //BA.debugLineNum = 7351;BA.debugLine="fd.Initialize"; +_fd.Initialize(); + //BA.debugLineNum = 7352;BA.debugLine="fd.KeyName = \"file\""; +_fd.KeyName /*String*/ = "file"; + //BA.debugLineNum = 7353;BA.debugLine="fd.Dir = Starter.fFileProvider.SharedFolder"; +_fd.Dir /*String*/ = parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ; + //BA.debugLineNum = 7354;BA.debugLine="fd.FileName = archivoTicketPDF"; +_fd.FileName /*String*/ = parent._archivoticketpdf; + //BA.debugLineNum = 7355;BA.debugLine="fd.ContentType = \"application/pdf\""; +_fd.ContentType /*String*/ = "application/pdf"; + //BA.debugLineNum = 7356;BA.debugLine="Private link As String = \"http://keymon.net:9001"; +_link = "http://keymon.net:9001/v1/ticketpdf"; + //BA.debugLineNum = 7357;BA.debugLine="Private campos As Map = CreateMap( \"message\":\"Tu"; +_campos = new anywheresoftware.b4a.objects.collections.Map(); +_campos = parent.__c.createMap(new Object[] {(Object)("message"),(Object)("Tu compra de Guna va ser a *crédito* por el monto de $${NumberFormat2(monto, 1, 2, 2, True)}\\n\\nManda *1* para confirmar\\nManda *0* para rechazar\\n\\n*Nota:* Si este mensaje no se contesta, se considerará que el pago es en *EFECTIVO*.\\n\\n(Solo el *número* por favor)")}); + //BA.debugLineNum = 7358;BA.debugLine="campos.Put(\"number\", NumeroTelefono)"; +_campos.Put((Object)("number"),(Object)(_numerotelefono)); + //BA.debugLineNum = 7359;BA.debugLine="Log(NumeroTelefono)"; +parent.__c.LogImpl("325952274",_numerotelefono,0); + //BA.debugLineNum = 7360;BA.debugLine="campos.Put(\"message\",\"Tu recibo\")"; +_campos.Put((Object)("message"),(Object)("Tu recibo")); + //BA.debugLineNum = 7361;BA.debugLine="Log(campos)"; +parent.__c.LogImpl("325952276",BA.ObjectToString(_campos),0); + //BA.debugLineNum = 7362;BA.debugLine="Private job As HttpJob"; +_job = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 7363;BA.debugLine="job.Initialize(\"\", Me)"; +_job._initialize /*String*/ (ba,"",parent); + //BA.debugLineNum = 7364;BA.debugLine="job.PostMultipart(link, campos, Array(fd))"; +_job._postmultipart /*String*/ (_link,_campos,anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fd)})); + //BA.debugLineNum = 7366;BA.debugLine="Log(5555)"; +parent.__c.LogImpl("325952281",BA.NumberToString(5555),0); + //BA.debugLineNum = 7367;BA.debugLine="Wait For (job) JobDone(job As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_job)); +this.state = 13; +return; +case 13: +//C +this.state = 12; +_job = (gunav2.keymon.com.mx.httpjob) result[0]; +; + if (true) break; + +case 11: +//C +this.state = 12; + //BA.debugLineNum = 7395;BA.debugLine="ToastMessageShow(\"El archivo PDF no existe.\", Tr"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("El archivo PDF no existe."),parent.__c.True); + if (true) break; + +case 12: +//C +this.state = -1; +; + //BA.debugLineNum = 7397;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _enviarpdfwhatsappnumero2(String _numerotelefono) throws Exception{ +ResumableSub_EnviarPDFWhatsAppNumero2 rsub = new ResumableSub_EnviarPDFWhatsAppNumero2(this,_numerotelefono); +rsub.resume(ba, null); +} +public static class ResumableSub_EnviarPDFWhatsAppNumero2 extends BA.ResumableSub { +public ResumableSub_EnviarPDFWhatsAppNumero2(gunav2.keymon.com.mx.c_cliente parent,String _numerotelefono) { +this.parent = parent; +this._numerotelefono = _numerotelefono; +} +gunav2.keymon.com.mx.c_cliente parent; +String _numerotelefono; +String _rutaarchivo = ""; +String _uriwhatsapp = ""; +anywheresoftware.b4a.objects.IntentWrapper _intentwhatsapp = null; +Object _uri0 = null; +anywheresoftware.b4a.objects.IntentWrapper _intent1 = 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 = 7400;BA.debugLine="If NumeroTelefono.Length = 10 Then NumeroTelefono"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_numerotelefono.length()==10) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +_numerotelefono = "521"+_numerotelefono; +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 7402;BA.debugLine="Dim RutaArchivo As String = Starter.fFileProvi"; +_rutaarchivo = parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ +"/"+parent._archivoticketpdf; + //BA.debugLineNum = 7403;BA.debugLine="Log(RutaArchivo)"; +parent.__c.LogImpl("326017796",_rutaarchivo,0); + //BA.debugLineNum = 7406;BA.debugLine="If File.Exists(Starter.fFileProvider.SharedFolder"; +if (true) break; + +case 7: +//if +this.state = 12; +if (parent.__c.File.Exists(parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ,parent._archivoticketpdf)) { +this.state = 9; +}else { +this.state = 11; +}if (true) break; + +case 9: +//C +this.state = 12; + //BA.debugLineNum = 7408;BA.debugLine="Dim UriWhatsApp As String = \"https://wa.me"; +_uriwhatsapp = "https://wa.me/"+_numerotelefono; + //BA.debugLineNum = 7409;BA.debugLine="Dim IntentWhatsApp As Intent"; +_intentwhatsapp = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 7410;BA.debugLine="IntentWhatsApp.Initialize(IntentWhatsApp.A"; +_intentwhatsapp.Initialize(_intentwhatsapp.ACTION_VIEW,_uriwhatsapp); + //BA.debugLineNum = 7419;BA.debugLine="StartActivity(IntentWhatsApp)"; +parent.__c.StartActivity(ba,(Object)(_intentwhatsapp.getObject())); + //BA.debugLineNum = 7422;BA.debugLine="ToastMessageShow(\"Por favor, comparte el a"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Por favor, comparte el archivo manualmente en WhatsApp."),parent.__c.True); + //BA.debugLineNum = 7425;BA.debugLine="Sleep(3000)"; +parent.__c.Sleep(ba,this,(int) (3000)); +this.state = 13; +return; +case 13: +//C +this.state = 12; +; + //BA.debugLineNum = 7428;BA.debugLine="Dim Uri0 As Object = Starter.fFileProvider.GetFi"; +_uri0 = parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._getfileuri /*Object*/ (parent._archivoticketpdf); + //BA.debugLineNum = 7431;BA.debugLine="Dim Intent1 As Intent"; +_intent1 = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 7432;BA.debugLine="Intent1.Initialize(Intent1.ACTION_SEND, \"\""; +_intent1.Initialize(_intent1.ACTION_SEND,""); + //BA.debugLineNum = 7435;BA.debugLine="Intent1.SetType(\"application/pdf\")"; +_intent1.SetType("application/pdf"); + //BA.debugLineNum = 7438;BA.debugLine="Intent1.PutExtra(\"android.intent.extra.STR"; +_intent1.PutExtra("android.intent.extra.STREAM",_uri0); + //BA.debugLineNum = 7441;BA.debugLine="Intent1.Flags = 1 ' FLAG_GRANT_READ_URI_PE"; +_intent1.setFlags((int) (1)); + //BA.debugLineNum = 7444;BA.debugLine="StartActivity(Intent1)"; +parent.__c.StartActivity(ba,(Object)(_intent1.getObject())); + if (true) break; + +case 11: +//C +this.state = 12; + //BA.debugLineNum = 7446;BA.debugLine="ToastMessageShow(\"El archivo PDF no existe"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("El archivo PDF no existe."),parent.__c.True); + if (true) break; + +case 12: +//C +this.state = -1; +; + //BA.debugLineNum = 7448;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _enviaticket() throws Exception{ +ResumableSub_enviaTicket rsub = new ResumableSub_enviaTicket(this); +rsub.resume(ba, null); +} +public static class ResumableSub_enviaTicket extends BA.ResumableSub { +public ResumableSub_enviaTicket(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +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 = 7331;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 1; +return; +case 1: +//C +this.state = -1; +; + //BA.debugLineNum = 7332;BA.debugLine="Dim email As Email"; +_email = new anywheresoftware.b4a.phone.Phone.Email(); + //BA.debugLineNum = 7333;BA.debugLine="email.To.Add(\"cheveguerra@gmail.com\")"; +_email.To.Add((Object)("cheveguerra@gmail.com")); + //BA.debugLineNum = 7334;BA.debugLine="email.Subject = \"subject\""; +_email.Subject = "subject"; + //BA.debugLineNum = 7335;BA.debugLine="email.Attachments.Add(Starter.fFileProvider.GetFi"; +_email.Attachments.Add(parent._starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._getfileuri /*Object*/ (parent._archivoticketpdf)); + //BA.debugLineNum = 7336;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 = 7337;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION"; +_in.setFlags((int) (1)); + //BA.debugLineNum = 7338;BA.debugLine="StartActivity(in)"; +parent.__c.StartActivity(ba,(Object)(_in.getObject())); + //BA.debugLineNum = 7339;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _et_encuesta_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 6468;BA.debugLine="Private Sub et_encuesta_TextChanged (Old As String"; + //BA.debugLineNum = 6470;BA.debugLine="If New.Length > 0 Then b_encuesta_continuar.Enabl"; +if (_new.length()>0) { +_b_encuesta_continuar.setEnabled(__c.True);}; + //BA.debugLineNum = 6471;BA.debugLine="If New.Length < 1 Then b_encuesta_continuar.Enabl"; +if (_new.length()<1) { +_b_encuesta_continuar.setEnabled(__c.False);}; + //BA.debugLineNum = 6472;BA.debugLine="End Sub"; +return ""; +} +public String _et_numeropdf_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 7493;BA.debugLine="Private Sub et_numeroPDF_TextChanged (Old As Strin"; + //BA.debugLineNum = 7494;BA.debugLine="If New.Length = 10 Then b_envioPDF.Enabled = True"; +if (_new.length()==10) { +_b_enviopdf.setEnabled(__c.True);} +else { +_b_enviopdf.setEnabled(__c.False);}; + //BA.debugLineNum = 7495;BA.debugLine="End Sub"; +return ""; +} +public String _et_p1_m2_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5551;BA.debugLine="Private Sub et_p1_m2_TextChanged (Old As String, N"; + //BA.debugLineNum = 5552;BA.debugLine="If et_p1_m2.Text.Length > 2 Or et_p1_m2.Text = 0"; +if (_et_p1_m2.getText().length()>2 || (_et_p1_m2.getText()).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 5554;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5555;BA.debugLine="et_p1_m2.Text = \"\""; +_et_p1_m2.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5557;BA.debugLine="End Sub"; +return ""; +} +public String _et_p1_m4_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5576;BA.debugLine="Private Sub et_p1_m4_TextChanged (Old As String, N"; + //BA.debugLineNum = 5577;BA.debugLine="If et_p1_m4.Text.Length > 5 Then"; +if (_et_p1_m4.getText().length()>5) { + //BA.debugLineNum = 5579;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5580;BA.debugLine="et_p1_m4.Text = \"\""; +_et_p1_m4.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5582;BA.debugLine="End Sub"; +return ""; +} +public String _et_p2_m2_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5559;BA.debugLine="Private Sub et_p2_m2_TextChanged (Old As String, N"; + //BA.debugLineNum = 5560;BA.debugLine="If et_p2_m2.Text.Length > 2 Or et_p2_m2.Text = 0"; +if (_et_p2_m2.getText().length()>2 || (_et_p2_m2.getText()).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 5562;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5563;BA.debugLine="et_p2_m2.Text = \"\""; +_et_p2_m2.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5566;BA.debugLine="End Sub"; +return ""; +} +public String _et_p5_m2_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5568;BA.debugLine="Private Sub et_p5_m2_TextChanged (Old As String, N"; + //BA.debugLineNum = 5569;BA.debugLine="If et_p5_m2.Text.Length > 4 Then"; +if (_et_p5_m2.getText().length()>4) { + //BA.debugLineNum = 5571;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido\",\"Av"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5572;BA.debugLine="et_p5_m2.Text = \"\""; +_et_p5_m2.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5574;BA.debugLine="End Sub"; +return ""; +} +public void _gest_click() throws Exception{ +ResumableSub_gest_Click rsub = new ResumableSub_gest_Click(this); +rsub.resume(ba, null); +} +public static class ResumableSub_gest_Click extends BA.ResumableSub { +public ResumableSub_gest_Click(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null; +String _fechainicio = ""; +long _ticksinicio = 0L; +long _tickshoy = 0L; +int _diferenciadias = 0; +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 = 2082;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt."; +_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2083;BA.debugLine="If pagarepen.RowCount > 0 Then"; +if (true) break; + +case 1: +//if +this.state = 16; +if (_pagarepen.getRowCount()>0) { +this.state = 3; +}else { +this.state = 15; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 2084;BA.debugLine="pagarepen.Position = 0"; +_pagarepen.setPosition((int) (0)); + //BA.debugLineNum = 2085;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 2086;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString("; +_fechainicio = _pagarepen.GetString("FECHA"); + //BA.debugLineNum = 2088;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))"; +parent.__c.LogImpl("314745611",_pagarepen.GetString("FECHA"),0); + //BA.debugLineNum = 2091;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fec"; +_ticksinicio = parent.__c.DateTime.DateParse(_fechainicio); + //BA.debugLineNum = 2092;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateTi"; +_tickshoy = parent.__c.DateTime.DateParse(parent.__c.DateTime.Date(parent.__c.DateTime.getNow())); + //BA.debugLineNum = 2095;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIni"; +_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)parent.__c.DateTime.TicksPerDay); + //BA.debugLineNum = 2098;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)"; +parent.__c.LogImpl("314745621",("Días transcurridos: "+parent.__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0); + //BA.debugLineNum = 2100;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 2101;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 2103;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDIT"; +if (true) break; + +case 4: +//if +this.state = 13; +if (_diferenciadias<=parent._c.GetInt("CAT_CL_DIASCREDITO")+1) { +this.state = 6; +}else if(_diferenciadias>parent._c.GetInt("CAT_CL_DIASCREDITO")+1) { +this.state = 12; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 2105;BA.debugLine="Msgbox2Async($\"Favor de pagar su credito el día"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("Favor de pagar su credito el día de mañana por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Recordatorio"),"Ok","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 2106;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 17; +return; +case 17: +//C +this.state = 7; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 2107;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 7: +//if +this.state = 10; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 9; +}if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 2108;BA.debugLine="gestionar"; +parent._gestionar(); + if (true) break; + +case 10: +//C +this.state = 13; +; + if (true) break; + +case 12: +//C +this.state = 13; + //BA.debugLineNum = 2111;BA.debugLine="MsgboxAsync($\"No se puede realizar venta por qu"; +parent.__c.MsgboxAsync(BA.ObjectToCharSequence(("No se puede realizar venta por que presenta "+parent.__c.SmartStringFormatter("",(Object)((_diferenciadias-(parent._c.GetInt("CAT_CL_DIASCREDITO")+1))))+" días de atraso en el credito, por un monto de $"+parent.__c.SmartStringFormatter("",(Object)(_pagarepen.GetString("SALDO_PENDIENTE")))+"")),BA.ObjectToCharSequence("Atención"),ba); + if (true) break; + +case 13: +//C +this.state = 16; +; + if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 2114;BA.debugLine="gestionar"; +parent._gestionar(); + if (true) break; + +case 16: +//C +this.state = -1; +; + //BA.debugLineNum = 2116;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _gestionar() throws Exception{ +anywheresoftware.b4a.objects.IntentWrapper _intent1 = null; +String _enviorutas = ""; +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; + //BA.debugLineNum = 2118;BA.debugLine="Sub gestionar"; + //BA.debugLineNum = 2119;BA.debugLine="If B_IMP.Visible = True Then"; +if (_b_imp.getVisible()==__c.True) { + //BA.debugLineNum = 2120;BA.debugLine="If Not(Subs.revisaImpreso) Then"; +if (__c.Not(_subs._revisaimpreso /*boolean*/ (ba))) { + //BA.debugLineNum = 2121;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2122;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2123;BA.debugLine="If c.GetString(\"encuesta\") = \"0\" Then"; +if ((_c.GetString("encuesta")).equals("0")) { + //BA.debugLineNum = 2124;BA.debugLine="Dim Intent1 As Intent"; +_intent1 = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 2125;BA.debugLine="Dim enviorutas As String = \"guna://tienda360/c"; +_enviorutas = "guna://tienda360/config?clienteId="+_la_cuenta.getText()+"&almacen="+_almacen+"&ruta="+_subs._traeruta /*String*/ (ba); + //BA.debugLineNum = 2126;BA.debugLine="Log(enviorutas)"; +__c.LogImpl("314811144",_enviorutas,0); + //BA.debugLineNum = 2127;BA.debugLine="Intent1.Initialize(Intent1.ACTION_VIEW, envior"; +_intent1.Initialize(_intent1.ACTION_VIEW,_enviorutas); + //BA.debugLineNum = 2128;BA.debugLine="Try"; +try { //BA.debugLineNum = 2129;BA.debugLine="Starter.encuesta = 1"; +_starter._encuesta /*String*/ = BA.NumberToString(1); + //BA.debugLineNum = 2130;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 2131;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET encu"; +_skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); + //BA.debugLineNum = 2132;BA.debugLine="StartActivity(Intent1)"; +__c.StartActivity(ba,(Object)(_intent1.getObject())); + //BA.debugLineNum = 2133;BA.debugLine="compra"; +_compra(); + } + catch (Exception e17) { + ba.setLastException(e17); //BA.debugLineNum = 2135;BA.debugLine="Starter.encuesta = 0"; +_starter._encuesta /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 2139;BA.debugLine="compra"; +_compra(); + }; + }else { + //BA.debugLineNum = 2146;BA.debugLine="compra"; +_compra(); + }; + }else { + //BA.debugLineNum = 2149;BA.debugLine="If Subs.traeAlmacen = 94 Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) { + //BA.debugLineNum = 2150;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFN"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2151;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2152;BA.debugLine="If c.GetString(\"encuesta\") = \"0\" Then"; +if ((_c.GetString("encuesta")).equals("0")) { + //BA.debugLineNum = 2153;BA.debugLine="Dim Intent1 As Intent"; +_intent1 = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 2154;BA.debugLine="Dim enviorutas As String = \"guna://tienda360/"; +_enviorutas = "guna://tienda360/config?clienteId="+_la_cuenta.getText()+"&almacen="+_almacen+"&ruta="+_subs._traeruta /*String*/ (ba); + //BA.debugLineNum = 2155;BA.debugLine="Log(enviorutas)"; +__c.LogImpl("314811173",_enviorutas,0); + //BA.debugLineNum = 2156;BA.debugLine="Intent1.Initialize(Intent1.ACTION_VIEW, envio"; +_intent1.Initialize(_intent1.ACTION_VIEW,_enviorutas); + //BA.debugLineNum = 2157;BA.debugLine="Try"; +try { //BA.debugLineNum = 2158;BA.debugLine="Starter.encuesta = 1"; +_starter._encuesta /*String*/ = BA.NumberToString(1); + //BA.debugLineNum = 2159;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 2160;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET enc"; +_skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); + //BA.debugLineNum = 2161;BA.debugLine="StartActivity(Intent1)"; +__c.StartActivity(ba,(Object)(_intent1.getObject())); + //BA.debugLineNum = 2162;BA.debugLine="compra"; +_compra(); + } + catch (Exception e39) { + ba.setLastException(e39); //BA.debugLineNum = 2164;BA.debugLine="Starter.encuesta = 0"; +_starter._encuesta /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 2168;BA.debugLine="compra"; +_compra(); + }; + }else { + //BA.debugLineNum = 2175;BA.debugLine="compra"; +_compra(); + }; + }else { + //BA.debugLineNum = 2178;BA.debugLine="p_transparenteTicketImpreso.Visible = True"; +_p_transparenteticketimpreso.setVisible(__c.True); + }; + }; + }else { + //BA.debugLineNum = 2182;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(encuesta,0) AS encuesta from kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2183;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2184;BA.debugLine="If c.GetString(\"encuesta\") = \"0\" Then"; +if ((_c.GetString("encuesta")).equals("0")) { + //BA.debugLineNum = 2185;BA.debugLine="Dim Intent1 As Intent"; +_intent1 = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 2186;BA.debugLine="Dim enviorutas As String = \"guna://tienda360/co"; +_enviorutas = "guna://tienda360/config?clienteId="+_la_cuenta.getText()+"&almacen="+_almacen+"&ruta="+_subs._traeruta /*String*/ (ba); + //BA.debugLineNum = 2187;BA.debugLine="Log(enviorutas)"; +__c.LogImpl("314811205",_enviorutas,0); + //BA.debugLineNum = 2188;BA.debugLine="Intent1.Initialize(Intent1.ACTION_VIEW, envioru"; +_intent1.Initialize(_intent1.ACTION_VIEW,_enviorutas); + //BA.debugLineNum = 2189;BA.debugLine="Try"; +try { //BA.debugLineNum = 2190;BA.debugLine="Starter.encuesta = 1"; +_starter._encuesta /*String*/ = BA.NumberToString(1); + //BA.debugLineNum = 2191;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 2192;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE kmt_info3 SET encue"; +_skmt.ExecNonQuery2("UPDATE kmt_info3 SET encuesta = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); + //BA.debugLineNum = 2193;BA.debugLine="StartActivity(Intent1)"; +__c.StartActivity(ba,(Object)(_intent1.getObject())); + //BA.debugLineNum = 2194;BA.debugLine="compra"; +_compra(); + } + catch (Exception e64) { + ba.setLastException(e64); //BA.debugLineNum = 2196;BA.debugLine="Starter.encuesta = 0"; +_starter._encuesta /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 2200;BA.debugLine="compra"; +_compra(); + }; + }else { + //BA.debugLineNum = 2207;BA.debugLine="compra"; +_compra(); + }; + }; + //BA.debugLineNum = 2210;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ +anywheresoftware.b4a.objects.collections.List _ultimasubicaciones = null; +double _latpromedio = 0; +double _lonpromedio = 0; +anywheresoftware.b4a.gps.LocationWrapper _loc = null; +String _al_longitud = ""; +String _al_latitud = ""; +anywheresoftware.b4a.gps.LocationWrapper _ubi1 = null; +anywheresoftware.b4a.gps.LocationWrapper _ubi2 = null; +anywheresoftware.b4a.gps.LocationWrapper _l1 = null; +anywheresoftware.b4a.gps.LocationWrapper _l2 = null; +String _habi = ""; +String _geo = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null; + //BA.debugLineNum = 1519;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 1520;BA.debugLine="LogColor($\"Entrando a Cliente.GPS_LocationChanged"; +__c.LogImpl("314286849",("Entrando a Cliente.GPS_LocationChanged"),__c.Colors.Red); + //BA.debugLineNum = 1523;BA.debugLine="If Location1 = location2 Then"; +if ((_location1).equals(_location2)) { + //BA.debugLineNum = 1524;BA.debugLine="contIguales = contIguales + 1"; +_contiguales = (int) (_contiguales+1); + //BA.debugLineNum = 1525;BA.debugLine="Log(\"Coords Iguales\")"; +__c.LogImpl("314286854","Coords Iguales",0); + //BA.debugLineNum = 1526;BA.debugLine="If contIguales >= 3 Then"; +if (_contiguales>=3) { + //BA.debugLineNum = 1529;BA.debugLine="CallSubDelayed(Tracker, \"StopFLP\")"; +__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StopFLP"); + //BA.debugLineNum = 1530;BA.debugLine="Return"; +if (true) return ""; + }; + }else { + //BA.debugLineNum = 1533;BA.debugLine="contIguales = 0"; +_contiguales = (int) (0); + }; + //BA.debugLineNum = 1535;BA.debugLine="Log(\"############################################"; +__c.LogImpl("314286864","################################################################################",0); + //BA.debugLineNum = 1536;BA.debugLine="Log(\"############################################"; +__c.LogImpl("314286865","################################################################################",0); + //BA.debugLineNum = 1537;BA.debugLine="Log(\"############################################"; +__c.LogImpl("314286866","################################################################################",0); + //BA.debugLineNum = 1538;BA.debugLine="location2 = Location1"; +_location2 = _location1; + //BA.debugLineNum = 1548;BA.debugLine="If Location1.Accuracy > 50 Then ' Mayor a 50 metr"; +if (_location1.getAccuracy()>50) { + //BA.debugLineNum = 1549;BA.debugLine="MejorarPrecisionGPS"; +_mejorarprecisiongps(); + //BA.debugLineNum = 1550;BA.debugLine="Return ' Esperar siguiente lectura"; +if (true) return ""; + }; + //BA.debugLineNum = 1554;BA.debugLine="If Location1.Accuracy > 50 Then ' Si la precisión"; +if (_location1.getAccuracy()>50) { + //BA.debugLineNum = 1555;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 1559;BA.debugLine="Dim ultimasUbicaciones As List"; +_ultimasubicaciones = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 1560;BA.debugLine="If ultimasUbicaciones.IsInitialized = False Then"; +if (_ultimasubicaciones.IsInitialized()==__c.False) { + //BA.debugLineNum = 1561;BA.debugLine="ultimasUbicaciones.Initialize"; +_ultimasubicaciones.Initialize(); + }; + //BA.debugLineNum = 1564;BA.debugLine="ultimasUbicaciones.Add(Location1)"; +_ultimasubicaciones.Add((Object)(_location1.getObject())); + //BA.debugLineNum = 1565;BA.debugLine="If ultimasUbicaciones.Size > 5 Then"; +if (_ultimasubicaciones.getSize()>5) { + //BA.debugLineNum = 1566;BA.debugLine="ultimasUbicaciones.RemoveAt(0)"; +_ultimasubicaciones.RemoveAt((int) (0)); + }; + //BA.debugLineNum = 1570;BA.debugLine="Dim latPromedio, lonPromedio As Double"; +_latpromedio = 0; +_lonpromedio = 0; + //BA.debugLineNum = 1571;BA.debugLine="For Each loc As Location In ultimasUbicaciones"; +_loc = new anywheresoftware.b4a.gps.LocationWrapper(); +{ +final anywheresoftware.b4a.BA.IterableList group32 = _ultimasubicaciones; +final int groupLen32 = group32.getSize() +;int index32 = 0; +; +for (; index32 < groupLen32;index32++){ +_loc = (anywheresoftware.b4a.gps.LocationWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.gps.LocationWrapper(), (android.location.Location)(group32.Get(index32))); + //BA.debugLineNum = 1572;BA.debugLine="Log(\"***\")"; +__c.LogImpl("314286901","***",0); + //BA.debugLineNum = 1573;BA.debugLine="latPromedio = latPromedio + loc.Latitude"; +_latpromedio = _latpromedio+_loc.getLatitude(); + //BA.debugLineNum = 1574;BA.debugLine="lonPromedio = lonPromedio + loc.Longitude"; +_lonpromedio = _lonpromedio+_loc.getLongitude(); + } +}; + //BA.debugLineNum = 1576;BA.debugLine="latPromedio = latPromedio / ultimasUbicaciones.Si"; +_latpromedio = _latpromedio/(double)_ultimasubicaciones.getSize(); + //BA.debugLineNum = 1577;BA.debugLine="lonPromedio = lonPromedio / ultimasUbicaciones.Si"; +_lonpromedio = _lonpromedio/(double)_ultimasubicaciones.getSize(); + //BA.debugLineNum = 1580;BA.debugLine="B4XPages.MainPage.lat_gps = latPromedio"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ = BA.NumberToString(_latpromedio); + //BA.debugLineNum = 1581;BA.debugLine="B4XPages.MainPage.lon_gps = lonPromedio"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ = BA.NumberToString(_lonpromedio); + //BA.debugLineNum = 1583;BA.debugLine="If Tels.IsInitialized Then"; +if (_tels.IsInitialized()) { + //BA.debugLineNum = 1584;BA.debugLine="Dim al_longitud As String = 0"; +_al_longitud = BA.NumberToString(0); + //BA.debugLineNum = 1585;BA.debugLine="Dim al_latitud As String = 0"; +_al_latitud = BA.NumberToString(0); + //BA.debugLineNum = 1586;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"LATITUD"}))); + //BA.debugLineNum = 1587;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1588;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1589;BA.debugLine="Dim al_latitud As String = c.GetString(\"CAT_VA_"; +_al_latitud = _c.GetString("CAT_VA_VALOR"); + }; + //BA.debugLineNum = 1591;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1592;BA.debugLine="c = skmt.ExecQuery2(\"SELECT CAT_VA_VALOR FROM CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"LONGITUD"}))); + //BA.debugLineNum = 1593;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1594;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1595;BA.debugLine="Dim al_longitud As String = c.GetString(\"CAT_VA"; +_al_longitud = _c.GetString("CAT_VA_VALOR"); + }; + //BA.debugLineNum = 1597;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1598;BA.debugLine="Dim ubi1, ubi2 As Location"; +_ubi1 = new anywheresoftware.b4a.gps.LocationWrapper(); +_ubi2 = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 1599;BA.debugLine="ubi1.Initialize2(B4XPages.MainPage.lat_gps, B4XP"; +_ubi1.Initialize2(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ); + //BA.debugLineNum = 1600;BA.debugLine="ubi2.Initialize2(al_latitud, al_longitud)"; +_ubi2.Initialize2(_al_latitud,_al_longitud); + //BA.debugLineNum = 1601;BA.debugLine="distancealm = ubi1.DistanceTo(ubi2)"; +_distancealm = (long) (_ubi1.DistanceTo((android.location.Location)(_ubi2.getObject()))); + }; + //BA.debugLineNum = 1604;BA.debugLine="If LA_GPS.IsInitialized Then"; +if (_la_gps.IsInitialized()) { + //BA.debugLineNum = 1605;BA.debugLine="LA_GPS.Text = $\"UBICACIÓN - Precisión: ${NumberF"; +_la_gps.setText(BA.ObjectToCharSequence(("UBICACIÓN - Precisión: "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_location1.getAccuracy(),(int) (0),(int) (1),(int) (1),__c.False)))+"m"))); + }; + //BA.debugLineNum = 1608;BA.debugLine="If Location1.Accuracy < 30 Then ' Menos de 30 met"; +if (_location1.getAccuracy()<30) { + //BA.debugLineNum = 1610;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ = BA.NumberToString(_location1.getLatitude()); + //BA.debugLineNum = 1611;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ = BA.NumberToString(_location1.getLongitude()); + //BA.debugLineNum = 1613;BA.debugLine="If m_lat.Length > 0 And B4XPages.MainPage.lat_gp"; +if (_m_lat.length()>0 && (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0") == false) { + //BA.debugLineNum = 1614;BA.debugLine="Dim l1, l2 As Location"; +_l1 = new anywheresoftware.b4a.gps.LocationWrapper(); +_l2 = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 1615;BA.debugLine="l1.Initialize2(B4XPages.MainPage.lat_gps, B4XPa"; +_l1.Initialize2(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ); + //BA.debugLineNum = 1617;BA.debugLine="l2.Initialize2(m_lat, m_lon)"; +_l2.Initialize2(_m_lat,_m_lon); + //BA.debugLineNum = 1618;BA.debugLine="BT_QR.Enabled = True"; +_bt_qr.setEnabled(__c.True); + //BA.debugLineNum = 1621;BA.debugLine="B_GPS.Enabled = True"; +_b_gps.setEnabled(__c.True); + //BA.debugLineNum = 1623;BA.debugLine="Dim distance As Long"; +_distance = 0L; + //BA.debugLineNum = 1624;BA.debugLine="distance = l1.DistanceTo(l2) 'the result is in"; +_distance = (long) (_l1.DistanceTo((android.location.Location)(_l2.getObject()))); + //BA.debugLineNum = 1625;BA.debugLine="c = skmt.ExecQuery(\"SELECT HABILITADO FROM GPS\""; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT HABILITADO FROM GPS"))); + //BA.debugLineNum = 1626;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1627;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1628;BA.debugLine="Dim habi As String = c.GetString(\"HABILITADO\")"; +_habi = _c.GetString("HABILITADO"); + }; + //BA.debugLineNum = 1630;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1631;BA.debugLine="c = skmt.ExecQuery(\"SELECT CAT_VA_VALOR FROM CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT CAT_VA_VALOR FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = 'GEOCERCA'"))); + //BA.debugLineNum = 1632;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1633;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1634;BA.debugLine="Dim geo As String = c.GetString(\"CAT_VA_VALOR\""; +_geo = _c.GetString("CAT_VA_VALOR"); + }; + //BA.debugLineNum = 1636;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1637;BA.debugLine="If gest.IsInitialized And Tels.IsInitialized Th"; +if (_gest.IsInitialized() && _tels.IsInitialized()) { + //BA.debugLineNum = 1638;BA.debugLine="If geo = \"0\" Then"; +if ((_geo).equals("0")) { + //BA.debugLineNum = 1639;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1640;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1641;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1642;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1643;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1644;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1645;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1647;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1650;BA.debugLine="iniciofin"; +_iniciofin(); + //BA.debugLineNum = 1652;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + }else if((_geo).equals("1")) { + //BA.debugLineNum = 1654;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1655;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 1656;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1662;BA.debugLine="If geo = \"1\" Then"; +if ((_geo).equals("1")) { + //BA.debugLineNum = 1663;BA.debugLine="If distance < 100 Then"; +if (_distance<100) { + //BA.debugLineNum = 1664;BA.debugLine="LA_GEO.TextColor = Colors.Blue"; +_la_geo.setTextColor(__c.Colors.Blue); + //BA.debugLineNum = 1665;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1666;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1667;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1668;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1669;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1670;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1671;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1673;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1676;BA.debugLine="bitacora.inicioFin"; +_bitacora._iniciofin /*String*/ (); + //BA.debugLineNum = 1677;BA.debugLine="precision = \"1\""; +_precision = "1"; + //BA.debugLineNum = 1679;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + }else if((_habi).equals("1")) { + //BA.debugLineNum = 1682;BA.debugLine="If distancealm < 50 Then"; +if (_distancealm<50) { + //BA.debugLineNum = 1683;BA.debugLine="precision = \"0\""; +_precision = "0"; + //BA.debugLineNum = 1684;BA.debugLine="LA_GEO.TextColor = Colors.Blue"; +_la_geo.setTextColor(__c.Colors.Blue); + //BA.debugLineNum = 1685;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1686;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1687;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skm"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1688;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1689;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1690;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1691;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1693;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1697;BA.debugLine="bitacora.banderaGeoCerca = \"1\""; +_bitacora._banderageocerca /*String*/ = "1"; + //BA.debugLineNum = 1698;BA.debugLine="iniciofin"; +_iniciofin(); + }else if(_distancealm>50) { + //BA.debugLineNum = 1701;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1702;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 1703;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1705;BA.debugLine="Log(998)"; +__c.LogImpl("314287034",BA.NumberToString(998),0); + //BA.debugLineNum = 1707;BA.debugLine="c = skmt.ExecQuery(\"SELECT PC_CLIENTE FROM P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT PC_CLIENTE FROM PEDIDO_CLIENTE WHERE PC_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1708;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1709;BA.debugLine="precision = \"0\""; +_precision = "0"; + //BA.debugLineNum = 1710;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1711;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1712;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.sk"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1713;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1714;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1715;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1716;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1718;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1722;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1723;BA.debugLine="iniciofin"; +_iniciofin(); + }else if(_c.getRowCount()==0) { + //BA.debugLineNum = 1725;BA.debugLine="Private c5 As Cursor = skmt.ExecQuery(\"SELE"; +_c5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA CLIENTE WHERE NV_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1726;BA.debugLine="If c5.RowCount > 0 Then"; +if (_c5.getRowCount()>0) { + //BA.debugLineNum = 1727;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1728;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1729;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.s"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1730;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1731;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1732;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1733;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1735;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1738;BA.debugLine="precision = \"0\""; +_precision = "0"; + //BA.debugLineNum = 1740;BA.debugLine="iniciofin"; +_iniciofin(); + }else if(_c5.getRowCount()==0) { + //BA.debugLineNum = 1742;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1743;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 1745;BA.debugLine="Log(997)"; +__c.LogImpl("314287074",BA.NumberToString(997),0); + //BA.debugLineNum = 1747;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +_la_geo.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1748;BA.debugLine="If ALMACEN = \"1\" Then"; +if ((_almacen).equals("1")) { + //BA.debugLineNum = 1749;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1750;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1751;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1753;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1754;BA.debugLine="iniciofin"; +_iniciofin(); + }; + }; + //BA.debugLineNum = 1757;BA.debugLine="c5.Close"; +_c5.Close(); + }; + //BA.debugLineNum = 1759;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1760;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +_la_geo.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1761;BA.debugLine="If ALMACEN = \"1\" Then"; +if ((_almacen).equals("1")) { + //BA.debugLineNum = 1762;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1763;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1765;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1766;BA.debugLine="iniciofin"; +_iniciofin(); + }; + }; + }else if((_habi).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1770;BA.debugLine="c = skmt.ExecQuery(\"SELECT PC_CLIENTE FROM P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT PC_CLIENTE FROM PEDIDO_CLIENTE WHERE PC_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1771;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1772;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1773;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1774;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skm"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1775;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1776;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1777;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1778;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1780;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1784;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1785;BA.debugLine="iniciofin"; +_iniciofin(); + }else if(_c.getRowCount()==0) { + //BA.debugLineNum = 1787;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1788;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1789;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 1791;BA.debugLine="Log(996)"; +__c.LogImpl("314287120",BA.NumberToString(996),0); + //BA.debugLineNum = 1793;BA.debugLine="c2 = skmt.ExecQuery(\"SELECT NV_CLIENTE FROM"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("SELECT NV_CLIENTE FROM NOVENTA CLIENTE WHERE NV_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1794;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 1795;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1796;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1797;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.sk"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1798;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1799;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1800;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1801;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1803;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1807;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1808;BA.debugLine="iniciofin"; +_iniciofin(); + }else if(_c2.getRowCount()==0) { + //BA.debugLineNum = 1810;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1811;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1812;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 1814;BA.debugLine="Log(995)"; +__c.LogImpl("314287143",BA.NumberToString(995),0); + //BA.debugLineNum = 1816;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +_la_geo.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1817;BA.debugLine="If ALMACEN = \"1\" Then"; +if ((_almacen).equals("1")) { + //BA.debugLineNum = 1818;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1819;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1820;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1822;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1823;BA.debugLine="iniciofin"; +_iniciofin(); + }; + }; + //BA.debugLineNum = 1826;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 1827;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +_la_geo.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1828;BA.debugLine="If ALMACEN = \"1\" Then"; +if ((_almacen).equals("1")) { + //BA.debugLineNum = 1829;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1830;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1831;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1833;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1834;BA.debugLine="iniciofin"; +_iniciofin(); + }; + }; + //BA.debugLineNum = 1837;BA.debugLine="c.Close"; +_c.Close(); + }else { + //BA.debugLineNum = 1839;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1840;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1841;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 1843;BA.debugLine="Log(994)"; +__c.LogImpl("314287172",BA.NumberToString(994),0); + //BA.debugLineNum = 1845;BA.debugLine="LA_GEO.TextColor = Colors.Red"; +_la_geo.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1846;BA.debugLine="If ALMACEN = \"1\" Then"; +if ((_almacen).equals("1")) { + //BA.debugLineNum = 1847;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1848;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1849;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1851;BA.debugLine="bitacora.banderaGeoCerca = \"0\""; +_bitacora._banderageocerca /*String*/ = "0"; + //BA.debugLineNum = 1852;BA.debugLine="iniciofin"; +_iniciofin(); + }; + }; + }; + }; + }else { + //BA.debugLineNum = 1859;BA.debugLine="If LA_GPS.IsInitialized Then"; +if (_la_gps.IsInitialized()) { + //BA.debugLineNum = 1861;BA.debugLine="LA_GPS.Text = $\"BAJA PRECISIÓN (${NumberFormat2"; +_la_gps.setText(BA.ObjectToCharSequence(("BAJA PRECISIÓN ("+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_location1.getAccuracy(),(int) (0),(int) (1),(int) (1),__c.False)))+"m)"))); + //BA.debugLineNum = 1862;BA.debugLine="LA_GPS.TextColor = Colors.Red"; +_la_gps.setTextColor(__c.Colors.Red); + }; + }; + //BA.debugLineNum = 1866;BA.debugLine="If cuenta.StartsWith(\"N\") Then"; +if (_cuenta.startsWith("N")) { + //BA.debugLineNum = 1867;BA.debugLine="precision = \"0\""; +_precision = "0"; + //BA.debugLineNum = 1868;BA.debugLine="LA_GEO.TextColor = Colors.Blue"; +_la_geo.setTextColor(__c.Colors.Blue); + //BA.debugLineNum = 1869;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1870;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1871;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Ex"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1872;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1873;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1874;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1875;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1877;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1881;BA.debugLine="bitacora.banderaGeoCerca = \"1\""; +_bitacora._banderageocerca /*String*/ = "1"; + //BA.debugLineNum = 1882;BA.debugLine="iniciofin"; +_iniciofin(); + }; + //BA.debugLineNum = 1887;BA.debugLine="If LA_GEO.IsInitialized Then LA_GEO.Text= $\"$1.2{"; +if (_la_geo.IsInitialized()) { +_la_geo.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.2",(Object)(_distance/(double)1000))+" kms")));}; + //BA.debugLineNum = 1890;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS"); + //BA.debugLineNum = 1891;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 1893;BA.debugLine="End Sub"; +return ""; +} +public String _guardadoventa() throws Exception{ + //BA.debugLineNum = 3053;BA.debugLine="Sub guardadoventa"; + //BA.debugLineNum = 3055;BA.debugLine="End Sub"; +return ""; +} +public String _guardar_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +float _suma = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null; +int _cbfactura = 0; + //BA.debugLineNum = 2961;BA.debugLine="Sub Guardar_Click"; + //BA.debugLineNum = 2962;BA.debugLine="Guardar.SendToBack"; +_guardar.SendToBack(); + //BA.debugLineNum = 2963;BA.debugLine="bitacora.b_Inicio_Fin_venta2.Text = \"TERMINAR VIS"; +_bitacora._b_inicio_fin_venta2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setText(BA.ObjectToCharSequence("TERMINAR VISITA")); + //BA.debugLineNum = 2964;BA.debugLine="bitacora.enVenta = False"; +_bitacora._enventa /*boolean*/ = __c.False; + //BA.debugLineNum = 2965;BA.debugLine="bitacora.inicioFin"; +_bitacora._iniciofin /*String*/ (); + //BA.debugLineNum = 2966;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 2967;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 2968;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 2969;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 2970;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2971;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 2972;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2973;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUARI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 2974;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2975;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 2976;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2977;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(pe"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2978;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2981;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.ExecQ"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? AND PE_RECALCULO <> ? AND PE_RECALCULO <> ?",new String[]{"","null",BA.ObjectToString(__c.Null)}))); + //BA.debugLineNum = 2983;BA.debugLine="Private suma As Float = 0"; +_suma = (float) (0); + //BA.debugLineNum = 2984;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 2985;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.ExecQ"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO = ? AND PE_RECALCULO = ? AND PE_RECALCULO = ?",new String[]{"","null",BA.ObjectToString(__c.Null)}))); + //BA.debugLineNum = 2986;BA.debugLine="s.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 2987;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Ex"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? AND PE_RECALCULO <> ? AND PE_RECALCULO <> ?",new String[]{"","null",BA.ObjectToString(__c.Null)}))); + //BA.debugLineNum = 2988;BA.debugLine="s5.Position = 0"; +_s5.setPosition((int) (0)); + //BA.debugLineNum = 2989;BA.debugLine="suma = s.GetString(\"TOTAL_CLIE\") + s5.GetString("; +_suma = (float) ((double)(Double.parseDouble(_s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE")))); + //BA.debugLineNum = 2990;BA.debugLine="s.Close"; +_s.Close(); + }else if(_s3.getRowCount()==0) { + //BA.debugLineNum = 2992;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.ExecQ"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 2993;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 2994;BA.debugLine="suma = s.GetString(\"TOTAL_CLIE\")"; +_suma = (float)(Double.parseDouble(_s.GetString("TOTAL_CLIE"))); + //BA.debugLineNum = 2995;BA.debugLine="s.Close"; +_s.Close(); + }; + //BA.debugLineNum = 2998;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 2999;BA.debugLine="Private cbFactura As Int = 0"; +_cbfactura = (int) (0); + //BA.debugLineNum = 3000;BA.debugLine="If CH_FACTURA.Checked Then cbFactura = 1"; +if (_ch_factura.getChecked()) { +_cbfactura = (int) (1);}; + //BA.debugLineNum = 3001;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 3002;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 3003;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_FACTURA,PC_ALMACEN,PC_RUTA) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(__c.NumberFormat2(_suma,(int) (0),(int) (2),(int) (2),__c.False)),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_cbfactura),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))})); + //BA.debugLineNum = 3004;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 3008;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3009;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 3010;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 3011;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIST"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_OUT = ? where HSS_OUT = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + //BA.debugLineNum = 3013;BA.debugLine="Try"; +try { //BA.debugLineNum = 3014;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\" Select (sub"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(" Select (substr(HSS_OUT,1,2) - substr(HSS_IN,1,2)) - Case when (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then 1 Else 0 end HORAS_TOTALES, "+"Case when (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then (substr(HSS_OUT,3,2) + 60 - substr(HSS_IN,3,2)) "+" Else (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) End - Case when (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then 1 Else 0 end MINUTOS_TOTALES, "+"Case when (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then (substr(HSS_OUT,5,2) + 60 - substr(HSS_IN,5,2)) "+" Else (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) end SEGUNDOS_TOTALES "+" from HIST_STAY_STORE where HSS_CODIGO In (Select cuenta from cuentaa) "))); + //BA.debugLineNum = 3020;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3021;BA.debugLine="stay_hh = c.GetString(\"HORAS_TOTALES\") * 60 * 60"; +_stay_hh = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HORAS_TOTALES")))*60*60); + //BA.debugLineNum = 3022;BA.debugLine="stay_mi = c.GetString(\"MINUTOS_TOTALES\") * 60"; +_stay_mi = BA.NumberToString((double)(Double.parseDouble(_c.GetString("MINUTOS_TOTALES")))*60); + //BA.debugLineNum = 3023;BA.debugLine="stay_ss = c.GetString(\"SEGUNDOS_TOTALES\")"; +_stay_ss = _c.GetString("SEGUNDOS_TOTALES"); + //BA.debugLineNum = 3024;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_TOT = ? where HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)((double)(Double.parseDouble(_stay_hh))+(double)(Double.parseDouble(_stay_mi))+(double)(Double.parseDouble(_stay_ss)))})); + //BA.debugLineNum = 3025;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_OUT set HSO_FIN = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + //BA.debugLineNum = 3026;BA.debugLine="c.Close"; +_c.Close(); + } + catch (Exception e55) { + ba.setLastException(e55); //BA.debugLineNum = 3028;BA.debugLine="ToastMessageShow(\".\",True)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("."),__c.True); + }; + //BA.debugLineNum = 3030;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 3032;BA.debugLine="Log(BCREDITO)"; +__c.LogImpl("316384071",_bcredito,0); + //BA.debugLineNum = 3046;BA.debugLine="End Sub"; +return ""; +} +public String _guardar_longclick() throws Exception{ + //BA.debugLineNum = 3048;BA.debugLine="Sub Guardar_LongClick"; + //BA.debugLineNum = 3051;BA.debugLine="End Sub"; +return ""; +} +public String _habilitarbotones(boolean _dentroderango) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null; + //BA.debugLineNum = 1480;BA.debugLine="Sub HabilitarBotones(dentroDeRango As Boolean)"; + //BA.debugLineNum = 1481;BA.debugLine="If dentroDeRango Then"; +if (_dentroderango) { + //BA.debugLineNum = 1482;BA.debugLine="If Tels.IsInitialized Then"; +if (_tels.IsInitialized()) { + //BA.debugLineNum = 1483;BA.debugLine="Tels.Visible = True"; +_tels.setVisible(__c.True); + //BA.debugLineNum = 1484;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 1485;BA.debugLine="Tels.Enabled = True"; +_tels.setEnabled(__c.True); + //BA.debugLineNum = 1486;BA.debugLine="gest.Enabled = True"; +_gest.setEnabled(__c.True); + //BA.debugLineNum = 1487;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.E"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 1488;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 1489;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 1490;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 1491;BA.debugLine="b_preventa2.Visible = True"; +_b_preventa2.setVisible(__c.True); + //BA.debugLineNum = 1492;BA.debugLine="b_preventa2.Enabled = True"; +_b_preventa2.setEnabled(__c.True); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 1494;BA.debugLine="b_preventa2.Enabled = False"; +_b_preventa2.setEnabled(__c.False); + //BA.debugLineNum = 1495;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + }; + }; + }; + }else { + //BA.debugLineNum = 1501;BA.debugLine="If Tels.IsInitialized Then"; +if (_tels.IsInitialized()) { + //BA.debugLineNum = 1502;BA.debugLine="b_preventa2.Visible = False"; +_b_preventa2.setVisible(__c.False); + //BA.debugLineNum = 1503;BA.debugLine="Tels.Visible = False"; +_tels.setVisible(__c.False); + //BA.debugLineNum = 1504;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 1508;BA.debugLine="End Sub"; +return ""; +} +public String _hist_click() throws Exception{ + //BA.debugLineNum = 3061;BA.debugLine="Sub HIST_Click"; + //BA.debugLineNum = 3062;BA.debugLine="B4XPages.ShowPage(\"historicobat\")"; +_b4xpages._showpage /*String*/ (ba,"historicobat"); + //BA.debugLineNum = 3063;BA.debugLine="End Sub"; +return ""; +} +public String _imageview4_click() throws Exception{ + //BA.debugLineNum = 7675;BA.debugLine="Private Sub ImageView4_Click"; + //BA.debugLineNum = 7676;BA.debugLine="InitializeCamera2"; +_initializecamera2(); + //BA.debugLineNum = 7677;BA.debugLine="p_camara.Visible = True"; +_p_camara.setVisible(__c.True); + //BA.debugLineNum = 7678;BA.debugLine="Subs.centraPanel(p_cam,p_camara.Width)"; +_subs._centrapanel /*String*/ (ba,_p_cam,_p_camara.getWidth()); + //BA.debugLineNum = 7680;BA.debugLine="p_camara.BringToFront"; +_p_camara.BringToFront(); + //BA.debugLineNum = 7681;BA.debugLine="End Sub"; +return ""; +} +public void _impresion() throws Exception{ +ResumableSub_Impresion rsub = new ResumableSub_Impresion(this); +rsub.resume(ba, null); +} +public static class ResumableSub_Impresion extends BA.ResumableSub { +public ResumableSub_Impresion(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +String _elinefeed = ""; +int _cont = 0; +int _i = 0; +int _e = 0; +int step50; +int limit50; +int step57; +int limit57; +int step71; +int limit71; +int step78; +int limit78; + +@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 = 4261;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 4262;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 4263;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 4265;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 4266;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 4267;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 4268;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 4273;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)"; +_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a))); + //BA.debugLineNum = 4274;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 4275;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 4276;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 = 4278;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 4279;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 4280;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 = 4281;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 63; +return; +case 63: +//C +this.state = 7; +; + //BA.debugLineNum = 4282;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 4283;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 = 4284;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 = 4286;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 64; +return; +case 64: +//C +this.state = 38; +; + //BA.debugLineNum = 4287;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 4290;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 4291;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 4292;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 = 4293;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 65; +return; +case 65: +//C +this.state = 25; +; + //BA.debugLineNum = 4294;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 4295;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 = 4296;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 = 4298;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 66; +return; +case 66: +//C +this.state = 38; +; + //BA.debugLineNum = 4299;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 4302;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4303;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4304;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 4321;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" & eLI"; +parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed); + //BA.debugLineNum = 4323;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed); + //BA.debugLineNum = 4324;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._stime+_elinefeed); + //BA.debugLineNum = 4325;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & eLI"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed); + //BA.debugLineNum = 4326;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed); + //BA.debugLineNum = 4327;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed); + //BA.debugLineNum = 4328;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 4329;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed); + //BA.debugLineNum = 4331;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1."; +parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed); + //BA.debugLineNum = 4332;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2."; +parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed); + //BA.debugLineNum = 4334;BA.debugLine="Printer1.WriteString(\"-----------PREVENTA--------"; +parent._printer1._writestring /*String*/ ("-----------PREVENTA-----------"+_elinefeed); + //BA.debugLineNum = 4337;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, SUM(PE_CA"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, SUM(PE_CANT) AS PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,SUM(PE_CANT) * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_CEDIS <> ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_COSTOU > 0.01 GROUP by PE_PROID",new String[]{"DUR"}))); + //BA.debugLineNum = 4338;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 39: +//if +this.state = 50; +if (parent._s.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 4339;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 42: +//for +this.state = 49; +step50 = 1; +limit50 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 67; +if (true) break; + +case 67: +//C +this.state = 49; +if ((step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50)) this.state = 44; +if (true) break; + +case 68: +//C +this.state = 67; +_i = ((int)(0 + _i + step50)) ; +if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 4340;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 4342;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 4347;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 4348;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 4349;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 4351;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 4353;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 45: +//for +this.state = 48; +step57 = 1; +limit57 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 69; +if (true) break; + +case 69: +//C +this.state = 48; +if ((step57 > 0 && _e <= limit57) || (step57 < 0 && _e >= limit57)) this.state = 47; +if (true) break; + +case 70: +//C +this.state = 69; +_e = ((int)(0 + _e + step57)) ; +if (true) break; + +case 47: +//C +this.state = 70; + //BA.debugLineNum = 4354;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 48: +//C +this.state = 68; +; + //BA.debugLineNum = 4356;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 4357;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4358;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4359;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; +if (true) break; + +case 49: +//C +this.state = 50; +; + if (true) break; + +case 50: +//C +this.state = 51; +; + //BA.debugLineNum = 4363;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4364;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4366;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, SUM(PE_CA"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, SUM(PE_CANT) AS PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,SUM(PE_CANT) * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_CEDIS <> ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_COSTOU = 0.01 GROUP by PE_PROID",new String[]{"DUR"}))); + //BA.debugLineNum = 4368;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 51: +//if +this.state = 62; +if (parent._s.getRowCount()>0) { +this.state = 53; +}if (true) break; + +case 53: +//C +this.state = 54; + //BA.debugLineNum = 4369;BA.debugLine="Printer1.WriteString(\"--------BONIFICACIONES----"; +parent._printer1._writestring /*String*/ ("--------BONIFICACIONES--------"+_elinefeed); + //BA.debugLineNum = 4370;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 54: +//for +this.state = 61; +step71 = 1; +limit71 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 71; +if (true) break; + +case 71: +//C +this.state = 61; +if ((step71 > 0 && _i <= limit71) || (step71 < 0 && _i >= limit71)) this.state = 56; +if (true) break; + +case 72: +//C +this.state = 71; +_i = ((int)(0 + _i + step71)) ; +if (true) break; + +case 56: +//C +this.state = 57; + //BA.debugLineNum = 4371;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 4373;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 4378;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 4379;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 4380;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 4382;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 4384;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 57: +//for +this.state = 60; +step78 = 1; +limit78 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 73; +if (true) break; + +case 73: +//C +this.state = 60; +if ((step78 > 0 && _e <= limit78) || (step78 < 0 && _e >= limit78)) this.state = 59; +if (true) break; + +case 74: +//C +this.state = 73; +_e = ((int)(0 + _e + step78)) ; +if (true) break; + +case 59: +//C +this.state = 74; + //BA.debugLineNum = 4385;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 60: +//C +this.state = 72; +; + //BA.debugLineNum = 4387;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 4388;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4389;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4390;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; +if (true) break; + +case 61: +//C +this.state = 62; +; + //BA.debugLineNum = 4393;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + if (true) break; + +case 62: +//C +this.state = -1; +; + //BA.debugLineNum = 4395;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4427;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 4428;BA.debugLine="s.Position =0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 4432;BA.debugLine="Printer1.WriteString(\"Total Preventa: $\" & s.Ge"; +parent._printer1._writestring /*String*/ ("Total Preventa: $"+parent._s.GetString("TOTAL")+_elinefeed); + //BA.debugLineNum = 4433;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4434;BA.debugLine="c= skmt.ExecQuery(\"select sum(PE_CANT) as PC_NOAR"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))); + //BA.debugLineNum = 4435;BA.debugLine="C.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 4436;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & c.Ge"; +parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._c.GetString("PC_NOART")+_elinefeed); + //BA.debugLineNum = 4437;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 4439;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4440;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed); + //BA.debugLineNum = 4441;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" & eLINEFEED)"; +parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed); + //BA.debugLineNum = 4442;BA.debugLine="Printer1.WriteString(la_Calle.Text & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 4443;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; +parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+_elinefeed); + //BA.debugLineNum = 4444;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; +parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed); + //BA.debugLineNum = 4445;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; +parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+_elinefeed); + //BA.debugLineNum = 4446;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed); + //BA.debugLineNum = 4447;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4449;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 75; +return; +case 75: +//C +this.state = -1; +; + //BA.debugLineNum = 4450;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 4452;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 4455;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _impresion2() throws Exception{ +ResumableSub_Impresion2 rsub = new ResumableSub_Impresion2(this); +rsub.resume(ba, null); +} +public static class ResumableSub_Impresion2 extends BA.ResumableSub { +public ResumableSub_Impresion2(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +String _elinefeed = ""; +int _cont = 0; +int _i = 0; +int _e = 0; +int step50; +int limit50; +int step60; +int limit60; +int step75; +int limit75; +int step85; +int limit85; + +@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 = 4090;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 4091;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 4092;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 4093;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 4095;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 4096;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 4097;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 4102;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)"; +_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a))); + //BA.debugLineNum = 4103;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 4104;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 4105;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 = 4107;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 4108;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 4109;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 = 4110;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 75; +return; +case 75: +//C +this.state = 7; +; + //BA.debugLineNum = 4111;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 4112;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 = 4113;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 = 4115;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 76; +return; +case 76: +//C +this.state = 38; +; + //BA.debugLineNum = 4116;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 4119;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 4120;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 4121;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 = 4122;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 77; +return; +case 77: +//C +this.state = 25; +; + //BA.debugLineNum = 4123;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 4124;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 = 4125;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 = 4127;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 78; +return; +case 78: +//C +this.state = 38; +; + //BA.debugLineNum = 4128;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 4131;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4132;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4133;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 4150;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" & eLI"; +parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed); + //BA.debugLineNum = 4152;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed); + //BA.debugLineNum = 4153;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._stime+_elinefeed); + //BA.debugLineNum = 4154;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & eLI"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed); + //BA.debugLineNum = 4155;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed); + //BA.debugLineNum = 4156;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed); + //BA.debugLineNum = 4157;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 4158;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed); + //BA.debugLineNum = 4160;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1."; +parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed); + //BA.debugLineNum = 4161;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2."; +parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed); + //BA.debugLineNum = 4163;BA.debugLine="Printer1.WriteString(\"-----------PREVENTA--------"; +parent._printer1._writestring /*String*/ ("-----------PREVENTA-----------"+_elinefeed); + //BA.debugLineNum = 4165;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_CEDIS <> ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{"DUR"}))); + //BA.debugLineNum = 4166;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 39: +//if +this.state = 56; +if (parent._s.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 4167;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 42: +//for +this.state = 55; +step50 = 1; +limit50 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 79; +if (true) break; + +case 79: +//C +this.state = 55; +if ((step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50)) this.state = 44; +if (true) break; + +case 80: +//C +this.state = 79; +_i = ((int)(0 + _i + step50)) ; +if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 4168;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 4169;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 45: +//if +this.state = 54; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 47; +}else { +this.state = 49; +}if (true) break; + +case 47: +//C +this.state = 54; + //BA.debugLineNum = 4170;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + if (true) break; + +case 49: +//C +this.state = 50; + //BA.debugLineNum = 4174;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 4175;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 4176;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 4177;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 4179;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 4181;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 50: +//for +this.state = 53; +step60 = 1; +limit60 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 81; +if (true) break; + +case 81: +//C +this.state = 53; +if ((step60 > 0 && _e <= limit60) || (step60 < 0 && _e >= limit60)) this.state = 52; +if (true) break; + +case 82: +//C +this.state = 81; +_e = ((int)(0 + _e + step60)) ; +if (true) break; + +case 52: +//C +this.state = 82; + //BA.debugLineNum = 4182;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 53: +//C +this.state = 54; +; + //BA.debugLineNum = 4184;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 4185;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4186;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4187;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 54: +//C +this.state = 80; +; + if (true) break; +if (true) break; + +case 55: +//C +this.state = 56; +; + if (true) break; + +case 56: +//C +this.state = 57; +; + //BA.debugLineNum = 4191;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4192;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4193;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE LENGTH(PE_CEDIS) > 3 AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU"))); + //BA.debugLineNum = 4194;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 57: +//if +this.state = 74; +if (parent._s.getRowCount()>0) { +this.state = 59; +}if (true) break; + +case 59: +//C +this.state = 60; + //BA.debugLineNum = 4195;BA.debugLine="Printer1.WriteString(\"------------PROMOS--------"; +parent._printer1._writestring /*String*/ ("------------PROMOS------------"+_elinefeed); + //BA.debugLineNum = 4196;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 60: +//for +this.state = 73; +step75 = 1; +limit75 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 83; +if (true) break; + +case 83: +//C +this.state = 73; +if ((step75 > 0 && _i <= limit75) || (step75 < 0 && _i >= limit75)) this.state = 62; +if (true) break; + +case 84: +//C +this.state = 83; +_i = ((int)(0 + _i + step75)) ; +if (true) break; + +case 62: +//C +this.state = 63; + //BA.debugLineNum = 4197;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 4198;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 63: +//if +this.state = 72; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 65; +}else { +this.state = 67; +}if (true) break; + +case 65: +//C +this.state = 72; + //BA.debugLineNum = 4199;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + if (true) break; + +case 67: +//C +this.state = 68; + //BA.debugLineNum = 4203;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 4204;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 4205;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 4206;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 4208;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 4210;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 68: +//for +this.state = 71; +step85 = 1; +limit85 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 85; +if (true) break; + +case 85: +//C +this.state = 71; +if ((step85 > 0 && _e <= limit85) || (step85 < 0 && _e >= limit85)) this.state = 70; +if (true) break; + +case 86: +//C +this.state = 85; +_e = ((int)(0 + _e + step85)) ; +if (true) break; + +case 70: +//C +this.state = 86; + //BA.debugLineNum = 4211;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 71: +//C +this.state = 72; +; + //BA.debugLineNum = 4213;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 4214;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4215;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4216;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 72: +//C +this.state = 84; +; + if (true) break; +if (true) break; + +case 73: +//C +this.state = 74; +; + //BA.debugLineNum = 4219;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + if (true) break; + +case 74: +//C +this.state = -1; +; + //BA.debugLineNum = 4221;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4223;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 4224;BA.debugLine="s.Position =0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 4228;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa: $\" & s"; +parent._printer1._writestring /*String*/ ("Subtotal Preventa: $"+parent._s.GetString("TOTAL")+_elinefeed); + //BA.debugLineNum = 4229;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4230;BA.debugLine="c= skmt.ExecQuery(\"select sum(PE_CANT) as PC_NOAR"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))); + //BA.debugLineNum = 4231;BA.debugLine="C.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 4232;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & c.Ge"; +parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._c.GetString("PC_NOART")+_elinefeed); + //BA.debugLineNum = 4233;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 4234;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 4235;BA.debugLine="s.Position =0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 4239;BA.debugLine="Printer1.WriteString(\"Descuento: $\" & 150 & eL"; +parent._printer1._writestring /*String*/ ("Descuento: $"+BA.NumberToString(150)+_elinefeed); + //BA.debugLineNum = 4240;BA.debugLine="Printer1.WriteString(\"Total Preventa: $\" & (s.G"; +parent._printer1._writestring /*String*/ ("Total Preventa: $"+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("TOTAL")))-150))+_elinefeed); + //BA.debugLineNum = 4242;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4243;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed); + //BA.debugLineNum = 4244;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" & eLINEFEED)"; +parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed); + //BA.debugLineNum = 4245;BA.debugLine="Printer1.WriteString(la_Calle.Text & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 4246;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; +parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+_elinefeed); + //BA.debugLineNum = 4247;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; +parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed); + //BA.debugLineNum = 4248;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; +parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+_elinefeed); + //BA.debugLineNum = 4249;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed); + //BA.debugLineNum = 4250;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4252;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 87; +return; +case 87: +//C +this.state = -1; +; + //BA.debugLineNum = 4253;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 4255;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 4258;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _impresion3() throws Exception{ +ResumableSub_Impresion3 rsub = new ResumableSub_Impresion3(this); +rsub.resume(ba, null); +} +public static class ResumableSub_Impresion3 extends BA.ResumableSub { +public ResumableSub_Impresion3(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +String _elinefeed = ""; +int _cont = 0; +int _i = 0; +int _e = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null; +String _subtot = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +int step50; +int limit50; +int step61; +int limit61; +int step74; +int limit74; +int step93; +int limit93; +int step105; +int limit105; +int step122; +int limit122; +int step132; +int limit132; + +@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 = 3849;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 3850;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 3851;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 3853;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3854;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3855;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3856;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 3861;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)"; +_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a))); + //BA.debugLineNum = 3862;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 3863;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3864;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 = 3866;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3867;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3868;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 = 3869;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 99; +return; +case 99: +//C +this.state = 7; +; + //BA.debugLineNum = 3870;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3871;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 = 3872;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 = 3874;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 100; +return; +case 100: +//C +this.state = 38; +; + //BA.debugLineNum = 3875;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 3878;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3879;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3880;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 = 3881;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 101; +return; +case 101: +//C +this.state = 25; +; + //BA.debugLineNum = 3882;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3883;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 = 3884;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 = 3886;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 102; +return; +case 102: +//C +this.state = 38; +; + //BA.debugLineNum = 3887;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 3890;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3891;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3892;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 3909;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" & eLI"; +parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed); + //BA.debugLineNum = 3911;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed); + //BA.debugLineNum = 3912;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._stime+_elinefeed); + //BA.debugLineNum = 3913;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & eLI"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed); + //BA.debugLineNum = 3914;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed); + //BA.debugLineNum = 3915;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed); + //BA.debugLineNum = 3916;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 3917;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed); + //BA.debugLineNum = 3919;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1."; +parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed); + //BA.debugLineNum = 3920;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2."; +parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed); + //BA.debugLineNum = 3922;BA.debugLine="Printer1.WriteString(\"-----------PREVENTA--------"; +parent._printer1._writestring /*String*/ ("-----------PREVENTA-----------"+_elinefeed); + //BA.debugLineNum = 3924;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_CANT * IFNULL(PE_RECALCULO,0) AS PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT, length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC, PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{parent._subs._traealmacen /*String*/ (ba)}))); + //BA.debugLineNum = 3925;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 39: +//if +this.state = 76; +if (parent._s.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 3926;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 42: +//for +this.state = 75; +step50 = 1; +limit50 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 103; +if (true) break; + +case 103: +//C +this.state = 75; +if ((step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50)) this.state = 44; +if (true) break; + +case 104: +//C +this.state = 103; +_i = ((int)(0 + _i + step50)) ; +if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 3927;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 3928;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 45: +//if +this.state = 74; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 47; +}else { +this.state = 49; +}if (true) break; + +case 47: +//C +this.state = 74; + //BA.debugLineNum = 3929;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + if (true) break; + +case 49: +//C +this.state = 50; + //BA.debugLineNum = 3931;BA.debugLine="If s.GetInt(\"PE_RECALCULO\") = 0 Then"; +if (true) break; + +case 50: +//if +this.state = 73; +if (parent._s.GetInt("PE_RECALCULO")==0) { +this.state = 52; +}else if(parent._s.GetInt("PE_CANT")==parent._s.GetInt("PE_RECCANT")) { +this.state = 58; +}else if(parent._s.GetInt("PE_CANT")!=parent._s.GetInt("PE_RECCANT")) { +this.state = 64; +}if (true) break; + +case 52: +//C +this.state = 53; + //BA.debugLineNum = 3932;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3933;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3934;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 3935;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 3937;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3939;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 53: +//for +this.state = 56; +step61 = 1; +limit61 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 105; +if (true) break; + +case 105: +//C +this.state = 56; +if ((step61 > 0 && _e <= limit61) || (step61 < 0 && _e >= limit61)) this.state = 55; +if (true) break; + +case 106: +//C +this.state = 105; +_e = ((int)(0 + _e + step61)) ; +if (true) break; + +case 55: +//C +this.state = 106; + //BA.debugLineNum = 3940;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 56: +//C +this.state = 73; +; + //BA.debugLineNum = 3942;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed+_elinefeed); + //BA.debugLineNum = 3943;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3944;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3945;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 58: +//C +this.state = 59; + //BA.debugLineNum = 3947;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3948;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3949;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3950;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano); + //BA.debugLineNum = 3952;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3954;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 59: +//for +this.state = 62; +step74 = 1; +limit74 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 107; +if (true) break; + +case 107: +//C +this.state = 62; +if ((step74 > 0 && _e <= limit74) || (step74 < 0 && _e >= limit74)) this.state = 61; +if (true) break; + +case 108: +//C +this.state = 107; +_e = ((int)(0 + _e + step74)) ; +if (true) break; + +case 61: +//C +this.state = 108; + //BA.debugLineNum = 3955;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 62: +//C +this.state = 73; +; + //BA.debugLineNum = 3958;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer"; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 3959;BA.debugLine="descpro.Position = 0"; +_descpro.setPosition((int) (0)); + //BA.debugLineNum = 3961;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_RECALCULO")+" $"+parent._s.GetString("PE_COSTO_TOTREC")+_elinefeed+_elinefeed); + //BA.debugLineNum = 3963;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed); + //BA.debugLineNum = 3964;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3965;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3966;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 64: +//C +this.state = 65; + //BA.debugLineNum = 3968;BA.debugLine="Log(s.GetInt(\"PE_RECCANT\"))"; +parent.__c.LogImpl("317432696",BA.NumberToString(parent._s.GetInt("PE_RECCANT")),0); + //BA.debugLineNum = 3969;BA.debugLine="Log(s.GetInt(\"PE_CANT\"))"; +parent.__c.LogImpl("317432697",BA.NumberToString(parent._s.GetInt("PE_CANT")),0); + //BA.debugLineNum = 3970;BA.debugLine="Log(\"aqui\")"; +parent.__c.LogImpl("317432698","aqui",0); + //BA.debugLineNum = 3971;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_RECCANT\""; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_RECCANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3972;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3973;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3974;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano); + //BA.debugLineNum = 3976;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3978;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 65: +//for +this.state = 68; +step93 = 1; +limit93 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 109; +if (true) break; + +case 109: +//C +this.state = 68; +if ((step93 > 0 && _e <= limit93) || (step93 < 0 && _e >= limit93)) this.state = 67; +if (true) break; + +case 110: +//C +this.state = 109; +_e = ((int)(0 + _e + step93)) ; +if (true) break; + +case 67: +//C +this.state = 110; + //BA.debugLineNum = 3979;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 68: +//C +this.state = 69; +; + //BA.debugLineNum = 3983;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer"; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 3984;BA.debugLine="descpro.Position = 0"; +_descpro.setPosition((int) (0)); + //BA.debugLineNum = 3986;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_RECCANT")+" X $"+parent._s.GetString("PE_RECALCULO")+" $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(parent._s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed); + //BA.debugLineNum = 3987;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed); + //BA.debugLineNum = 3989;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE_C"; +_subtot = BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU")))); + //BA.debugLineNum = 3990;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3991;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3992;BA.debugLine="TAMANO = subTot + TAMANO"; +parent._tamano = (int) ((double)(Double.parseDouble(_subtot))+parent._tamano); + //BA.debugLineNum = 3994;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3996;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 69: +//for +this.state = 72; +step105 = 1; +limit105 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 111; +if (true) break; + +case 111: +//C +this.state = 72; +if ((step105 > 0 && _e <= limit105) || (step105 < 0 && _e >= limit105)) this.state = 71; +if (true) break; + +case 112: +//C +this.state = 111; +_e = ((int)(0 + _e + step105)) ; +if (true) break; + +case 71: +//C +this.state = 112; + //BA.debugLineNum = 3997;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 72: +//C +this.state = 73; +; + //BA.debugLineNum = 4000;BA.debugLine="Printer1.WriteString((s.GETSTRING(\"PE_CANT\")-"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 4001;BA.debugLine="Printer1.WriteString(BLANCO & (s.GETSTRING(\"P"; +parent._printer1._writestring /*String*/ (parent._blanco+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent.__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed); + //BA.debugLineNum = 4004;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4005;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4006;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 73: +//C +this.state = 74; +; + if (true) break; + +case 74: +//C +this.state = 104; +; + if (true) break; +if (true) break; + +case 75: +//C +this.state = 76; +; + if (true) break; + +case 76: +//C +this.state = 77; +; + //BA.debugLineNum = 4011;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4012;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4013;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE LENGTH(PE_CEDIS) > 3 AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU"))); + //BA.debugLineNum = 4014;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 77: +//if +this.state = 94; +if (parent._s.getRowCount()>0) { +this.state = 79; +}if (true) break; + +case 79: +//C +this.state = 80; + //BA.debugLineNum = 4015;BA.debugLine="Printer1.WriteString(\"------------PROMOS--------"; +parent._printer1._writestring /*String*/ ("------------PROMOS------------"+_elinefeed); + //BA.debugLineNum = 4016;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 80: +//for +this.state = 93; +step122 = 1; +limit122 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 113; +if (true) break; + +case 113: +//C +this.state = 93; +if ((step122 > 0 && _i <= limit122) || (step122 < 0 && _i >= limit122)) this.state = 82; +if (true) break; + +case 114: +//C +this.state = 113; +_i = ((int)(0 + _i + step122)) ; +if (true) break; + +case 82: +//C +this.state = 83; + //BA.debugLineNum = 4017;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 4018;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 83: +//if +this.state = 92; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 85; +}else { +this.state = 87; +}if (true) break; + +case 85: +//C +this.state = 92; + //BA.debugLineNum = 4019;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + if (true) break; + +case 87: +//C +this.state = 88; + //BA.debugLineNum = 4023;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 4024;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 4025;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 4026;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 4028;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 4030;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 88: +//for +this.state = 91; +step132 = 1; +limit132 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 115; +if (true) break; + +case 115: +//C +this.state = 91; +if ((step132 > 0 && _e <= limit132) || (step132 < 0 && _e >= limit132)) this.state = 90; +if (true) break; + +case 116: +//C +this.state = 115; +_e = ((int)(0 + _e + step132)) ; +if (true) break; + +case 90: +//C +this.state = 116; + //BA.debugLineNum = 4031;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 91: +//C +this.state = 92; +; + //BA.debugLineNum = 4033;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 4034;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 4035;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 4036;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 92: +//C +this.state = 114; +; + if (true) break; +if (true) break; + +case 93: +//C +this.state = 94; +; + //BA.debugLineNum = 4039;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + if (true) break; + +case 94: +//C +this.state = 95; +; + //BA.debugLineNum = 4041;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 4043;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TOT"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 4044;BA.debugLine="s.Position =0"; +parent._s.setPosition((int) (0)); + //BA.debugLineNum = 4048;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa: $\" & s"; +parent._printer1._writestring /*String*/ ("Subtotal Preventa: $"+parent._s.GetString("TOTAL")+_elinefeed); + //BA.debugLineNum = 4051;BA.debugLine="c= skmt.ExecQuery(\"select sum(PE_CANT) as PC_NOAR"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))); + //BA.debugLineNum = 4052;BA.debugLine="C.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 4053;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & c.Ge"; +parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._c.GetString("PC_NOART")+_elinefeed); + //BA.debugLineNum = 4054;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 4055;BA.debugLine="Dim s3 As Cursor =skmt.ExecQuery(\"select IFNULL(S"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select IFNULL(SUM(PE_COSTO_TOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) = 0"))); + //BA.debugLineNum = 4056;BA.debugLine="s3.Position =0"; +_s3.setPosition((int) (0)); + //BA.debugLineNum = 4057;BA.debugLine="S2=skmt.ExecQuery(\"select IFNULL(SUM(PE_RECALCULO"; +parent._s2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select IFNULL(SUM(PE_RECALCULOTOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) <> 0"))); + //BA.debugLineNum = 4058;BA.debugLine="S2.Position =0"; +parent._s2.setPosition((int) (0)); + //BA.debugLineNum = 4060;BA.debugLine="If NumberFormat2((s3.GetString(\"TOTAL\") + S2.GetS"; +if (true) break; + +case 95: +//if +this.state = 98; +if ((parent.__c.NumberFormat2(((double)(Double.parseDouble(_s3.GetString("TOTAL")))+(double)(Double.parseDouble(parent._s2.GetString("TOTAL")))),(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(parent._s.GetString("TOTAL")) == false) { +this.state = 97; +}if (true) break; + +case 97: +//C +this.state = 98; + //BA.debugLineNum = 4062;BA.debugLine="Printer1.WriteString(\"Descuento: $\" & NumberFo"; +parent._printer1._writestring /*String*/ ("Descuento: $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("TOTAL")))-(double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + if (true) break; + +case 98: +//C +this.state = -1; +; + //BA.debugLineNum = 4069;BA.debugLine="Printer1.WriteString(\"Total Preventa: $\" & Numb"; +parent._printer1._writestring /*String*/ ("Total Preventa: $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + //BA.debugLineNum = 4071;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4072;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed); + //BA.debugLineNum = 4073;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" & eLINEFEED)"; +parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed); + //BA.debugLineNum = 4074;BA.debugLine="Printer1.WriteString(la_Calle.Text & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 4075;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; +parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+_elinefeed); + //BA.debugLineNum = 4076;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; +parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+_elinefeed); + //BA.debugLineNum = 4077;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; +parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+_elinefeed); + //BA.debugLineNum = 4078;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+_elinefeed); + //BA.debugLineNum = 4079;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 4081;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 117; +return; +case 117: +//C +this.state = -1; +; + //BA.debugLineNum = 4082;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 4084;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 4087;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _impresion4() throws Exception{ +ResumableSub_Impresion4 rsub = new ResumableSub_Impresion4(this); +rsub.resume(ba, null); +} +public static class ResumableSub_Impresion4 extends BA.ResumableSub { +public ResumableSub_Impresion4(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pedinow = null; +String _elinefeed = ""; +int _cont = 0; +int _i = 0; +int _e = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null; +String _subtot = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _precioprom = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _contadocredito = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pedifutu = null; +int step58; +int limit58; +int step68; +int limit68; +int step81; +int limit81; +int step102; +int limit102; +int step114; +int limit114; +int step131; +int limit131; +int step140; +int limit140; + +@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 = 3214;BA.debugLine="Dim pedinow As Cursor = skmt.ExecQuery(\"select *"; +_pedinow = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pedinow = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FUTURO = '0' "))); + //BA.debugLineNum = 3215;BA.debugLine="If pedinow.RowCount > 0 Then"; +if (true) break; + +case 1: +//if +this.state = 125; +if (_pedinow.getRowCount()>0) { +this.state = 3; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 3216;BA.debugLine="Mandap"; +parent._mandap(); + //BA.debugLineNum = 3218;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 3219;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 3220;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 3222;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3223;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3224;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3225;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 3230;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)"; +_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a))); + //BA.debugLineNum = 3231;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 3232;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3233;BA.debugLine="If Not(Printer1.IsConnected) Then"; +if (true) break; + +case 4: +//if +this.state = 41; +if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { +this.state = 6; +}else { +this.state = 24; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 3235;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3236;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3237;BA.debugLine="Do While Not(impresoraConectada)"; +if (true) break; + +case 7: +//do while +this.state = 22; +while (parent.__c.Not(parent._impresoraconectada)) { +this.state = 9; +if (true) break; +} +if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 3238;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 130; +return; +case 130: +//C +this.state = 10; +; + //BA.debugLineNum = 3239;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3240;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de"; +if (true) break; + +case 10: +//if +this.state = 15; +if (_cont==7) { +this.state = 12; +;}if (true) break; + +case 12: +//C +this.state = 15; +parent._printer1._connect /*boolean*/ (); +if (true) break; + +case 15: +//C +this.state = 16; +; + //BA.debugLineNum = 3241;BA.debugLine="If cont > 15 Then impresoraConectada = True"; +if (true) break; + +case 16: +//if +this.state = 21; +if (_cont>15) { +this.state = 18; +;}if (true) break; + +case 18: +//C +this.state = 21; +parent._impresoraconectada = parent.__c.True; +if (true) break; + +case 21: +//C +this.state = 7; +; + if (true) break; + +case 22: +//C +this.state = 41; +; + //BA.debugLineNum = 3243;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 131; +return; +case 131: +//C +this.state = 41; +; + //BA.debugLineNum = 3244;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 24: +//C +this.state = 25; + //BA.debugLineNum = 3247;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3248;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3249;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; +if (true) break; + +case 25: +//do while +this.state = 40; +while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { +this.state = 27; +if (true) break; +} +if (true) break; + +case 27: +//C +this.state = 28; + //BA.debugLineNum = 3250;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 132; +return; +case 132: +//C +this.state = 28; +; + //BA.debugLineNum = 3251;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3252;BA.debugLine="If cont = 2 Then Printer1.Connect"; +if (true) break; + +case 28: +//if +this.state = 33; +if (_cont==2) { +this.state = 30; +;}if (true) break; + +case 30: +//C +this.state = 33; +parent._printer1._connect /*boolean*/ (); +if (true) break; + +case 33: +//C +this.state = 34; +; + //BA.debugLineNum = 3253;BA.debugLine="If cont > 4 Then impresoraConectada = True"; +if (true) break; + +case 34: +//if +this.state = 39; +if (_cont>4) { +this.state = 36; +;}if (true) break; + +case 36: +//C +this.state = 39; +parent._impresoraconectada = parent.__c.True; +if (true) break; + +case 39: +//C +this.state = 25; +; + if (true) break; + +case 40: +//C +this.state = 41; +; + //BA.debugLineNum = 3255;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 133; +return; +case 133: +//C +this.state = 41; +; + //BA.debugLineNum = 3256;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 41: +//C +this.state = 42; +; + //BA.debugLineNum = 3259;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3260;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3261;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 3277;BA.debugLine="Printer1.WriteString(\"Centro de atencion a Client"; +parent._printer1._writestring /*String*/ ("Centro de atencion a Clientes Bat"+_elinefeed); + //BA.debugLineNum = 3278;BA.debugLine="Printer1.WriteString(\"Telefono: 800 400 5000\" &"; +parent._printer1._writestring /*String*/ ("Telefono: 800 400 5000"+_elinefeed); + //BA.debugLineNum = 3279;BA.debugLine="Printer1.WriteString(eLINEFEED)"; +parent._printer1._writestring /*String*/ (_elinefeed); + //BA.debugLineNum = 3280;BA.debugLine="Printer1.WriteString(eLINEFEED)"; +parent._printer1._writestring /*String*/ (_elinefeed); + //BA.debugLineNum = 3283;BA.debugLine="Printer1.WriteString(\"DISTRIBUIDORA ROCHA TULA PA"; +parent._printer1._writestring /*String*/ ("DISTRIBUIDORA ROCHA TULA PACHUCA"+_elinefeed); + //BA.debugLineNum = 3284;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" & eLI"; +parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed); + //BA.debugLineNum = 3286;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed); + //BA.debugLineNum = 3287;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._stime+_elinefeed); + //BA.debugLineNum = 3288;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & eLI"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed); + //BA.debugLineNum = 3289;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed); + //BA.debugLineNum = 3290;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed); + //BA.debugLineNum = 3291;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 3292;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed); + //BA.debugLineNum = 3294;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1."; +parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed); + //BA.debugLineNum = 3295;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2."; +parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed); + //BA.debugLineNum = 3297;BA.debugLine="Printer1.WriteString(\"--------------------PREVENT"; +parent._printer1._writestring /*String*/ ("--------------------PREVENTA--------------------"+_elinefeed); + //BA.debugLineNum = 3299;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_CANT * IFNULL(PE_RECALCULO,0) AS PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT, length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC, PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '0' order by PE_PROID",new String[]{parent._subs._traealmacen /*String*/ (ba)}))); + //BA.debugLineNum = 3300;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 42: +//if +this.state = 79; +if (parent._s.getRowCount()>0) { +this.state = 44; +}if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 3301;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 45: +//for +this.state = 78; +step58 = 1; +limit58 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 134; +if (true) break; + +case 134: +//C +this.state = 78; +if ((step58 > 0 && _i <= limit58) || (step58 < 0 && _i >= limit58)) this.state = 47; +if (true) break; + +case 135: +//C +this.state = 134; +_i = ((int)(0 + _i + step58)) ; +if (true) break; + +case 47: +//C +this.state = 48; + //BA.debugLineNum = 3302;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 3303;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 48: +//if +this.state = 77; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 50; +}else { +this.state = 52; +}if (true) break; + +case 50: +//C +this.state = 77; + if (true) break; + +case 52: +//C +this.state = 53; + //BA.debugLineNum = 3306;BA.debugLine="If s.GetInt(\"PE_RECALCULO\") = 0 Then"; +if (true) break; + +case 53: +//if +this.state = 76; +if (parent._s.GetInt("PE_RECALCULO")==0) { +this.state = 55; +}else if(parent._s.GetInt("PE_CANT")==parent._s.GetInt("PE_RECCANT")) { +this.state = 61; +}else if(parent._s.GetInt("PE_CANT")!=parent._s.GetInt("PE_RECCANT")) { +this.state = 67; +}if (true) break; + +case 55: +//C +this.state = 56; + //BA.debugLineNum = 3307;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3308;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3309;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 3310;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 3312;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3314;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 56: +//for +this.state = 59; +step68 = 1; +limit68 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 136; +if (true) break; + +case 136: +//C +this.state = 59; +if ((step68 > 0 && _e <= limit68) || (step68 < 0 && _e >= limit68)) this.state = 58; +if (true) break; + +case 137: +//C +this.state = 136; +_e = ((int)(0 + _e + step68)) ; +if (true) break; + +case 58: +//C +this.state = 137; + //BA.debugLineNum = 3315;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 59: +//C +this.state = 76; +; + //BA.debugLineNum = 3317;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed+_elinefeed); + //BA.debugLineNum = 3318;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3319;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3320;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 61: +//C +this.state = 62; + //BA.debugLineNum = 3322;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3323;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3324;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3325;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano); + //BA.debugLineNum = 3327;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3329;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 62: +//for +this.state = 65; +step81 = 1; +limit81 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 138; +if (true) break; + +case 138: +//C +this.state = 65; +if ((step81 > 0 && _e <= limit81) || (step81 < 0 && _e >= limit81)) this.state = 64; +if (true) break; + +case 139: +//C +this.state = 138; +_e = ((int)(0 + _e + step81)) ; +if (true) break; + +case 64: +//C +this.state = 139; + //BA.debugLineNum = 3330;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 65: +//C +this.state = 76; +; + //BA.debugLineNum = 3333;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer"; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 3334;BA.debugLine="descpro.Position = 0"; +_descpro.setPosition((int) (0)); + //BA.debugLineNum = 3336;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_RECALCULO")+" $"+parent._s.GetString("PE_COSTO_TOTREC")+_elinefeed+_elinefeed); + //BA.debugLineNum = 3338;BA.debugLine="Log(s.GetString(\"PE_PRONOMBRE\"))"; +parent.__c.LogImpl("317170557",parent._s.GetString("PE_PRONOMBRE"),0); + //BA.debugLineNum = 3339;BA.debugLine="Log(descpro.GetDouble(\"CAT_PD_DESCUENTO\"))"; +parent.__c.LogImpl("317170558",BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO")),0); + //BA.debugLineNum = 3340;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed); + //BA.debugLineNum = 3341;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3342;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3343;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 67: +//C +this.state = 68; + //BA.debugLineNum = 3345;BA.debugLine="Log(s.GetInt(\"PE_RECCANT\"))"; +parent.__c.LogImpl("317170564",BA.NumberToString(parent._s.GetInt("PE_RECCANT")),0); + //BA.debugLineNum = 3346;BA.debugLine="Log(s.GetInt(\"PE_CANT\"))"; +parent.__c.LogImpl("317170565",BA.NumberToString(parent._s.GetInt("PE_CANT")),0); + //BA.debugLineNum = 3347;BA.debugLine="Log(\"aqui\")"; +parent.__c.LogImpl("317170566","aqui",0); + //BA.debugLineNum = 3348;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_RECCANT\""; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_RECCANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3349;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3350;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3351;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano); + //BA.debugLineNum = 3353;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3355;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 68: +//for +this.state = 71; +step102 = 1; +limit102 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 140; +if (true) break; + +case 140: +//C +this.state = 71; +if ((step102 > 0 && _e <= limit102) || (step102 < 0 && _e >= limit102)) this.state = 70; +if (true) break; + +case 141: +//C +this.state = 140; +_e = ((int)(0 + _e + step102)) ; +if (true) break; + +case 70: +//C +this.state = 141; + //BA.debugLineNum = 3356;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 71: +//C +this.state = 72; +; + //BA.debugLineNum = 3360;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer"; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 3361;BA.debugLine="descpro.Position = 0"; +_descpro.setPosition((int) (0)); + //BA.debugLineNum = 3363;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_RECCANT")+" X $"+parent._s.GetString("PE_RECALCULO")+" $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(parent._s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed); + //BA.debugLineNum = 3364;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed); + //BA.debugLineNum = 3366;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE_C"; +_subtot = BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU")))); + //BA.debugLineNum = 3367;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3368;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3369;BA.debugLine="TAMANO = subTot + TAMANO"; +parent._tamano = (int) ((double)(Double.parseDouble(_subtot))+parent._tamano); + //BA.debugLineNum = 3371;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3373;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 72: +//for +this.state = 75; +step114 = 1; +limit114 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 142; +if (true) break; + +case 142: +//C +this.state = 75; +if ((step114 > 0 && _e <= limit114) || (step114 < 0 && _e >= limit114)) this.state = 74; +if (true) break; + +case 143: +//C +this.state = 142; +_e = ((int)(0 + _e + step114)) ; +if (true) break; + +case 74: +//C +this.state = 143; + //BA.debugLineNum = 3374;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 75: +//C +this.state = 76; +; + //BA.debugLineNum = 3377;BA.debugLine="Printer1.WriteString((s.GETSTRING(\"PE_CANT\")-"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3378;BA.debugLine="Printer1.WriteString(BLANCO & (s.GETSTRING(\"P"; +parent._printer1._writestring /*String*/ (parent._blanco+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent.__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed); + //BA.debugLineNum = 3381;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3382;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3383;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 76: +//C +this.state = 77; +; + if (true) break; + +case 77: +//C +this.state = 135; +; + if (true) break; +if (true) break; + +case 78: +//C +this.state = 79; +; + if (true) break; + +case 79: +//C +this.state = 80; +; + //BA.debugLineNum = 3388;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 3391;BA.debugLine="totalpromos = 0"; +parent._totalpromos = 0; + //BA.debugLineNum = 3392;BA.debugLine="totalpromostotal = 0"; +parent._totalpromostotal = 0; + //BA.debugLineNum = 3393;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '0' order by PE_CEDIS, PE_COSTOU"))); + //BA.debugLineNum = 3394;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 80: +//if +this.state = 110; +if (parent._s.getRowCount()>0) { +this.state = 82; +}if (true) break; + +case 82: +//C +this.state = 83; + //BA.debugLineNum = 3396;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 83: +//for +this.state = 109; +step131 = 1; +limit131 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 144; +if (true) break; + +case 144: +//C +this.state = 109; +if ((step131 > 0 && _i <= limit131) || (step131 < 0 && _i >= limit131)) this.state = 85; +if (true) break; + +case 145: +//C +this.state = 144; +_i = ((int)(0 + _i + step131)) ; +if (true) break; + +case 85: +//C +this.state = 86; + //BA.debugLineNum = 3397;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 3398;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 86: +//if +this.state = 108; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 88; +}else { +this.state = 90; +}if (true) break; + +case 88: +//C +this.state = 108; + if (true) break; + +case 90: +//C +this.state = 91; + //BA.debugLineNum = 3403;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3404;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3405;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 3406;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 3408;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3410;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 91: +//for +this.state = 94; +step140 = 1; +limit140 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 146; +if (true) break; + +case 146: +//C +this.state = 94; +if ((step140 > 0 && _e <= limit140) || (step140 < 0 && _e >= limit140)) this.state = 93; +if (true) break; + +case 147: +//C +this.state = 146; +_e = ((int)(0 + _e + step140)) ; +if (true) break; + +case 93: +//C +this.state = 147; + //BA.debugLineNum = 3411;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 94: +//C +this.state = 95; +; + //BA.debugLineNum = 3413;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 3416;BA.debugLine="If Subs.traeTipoCliente= 5 Then"; +if (true) break; + +case 95: +//if +this.state = 100; +if (parent._subs._traetipocliente /*int*/ (ba)==5) { +this.state = 97; +}else { +this.state = 99; +}if (true) break; + +case 97: +//C +this.state = 100; + //BA.debugLineNum = 3417;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.Exec"; +_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_precioprom = (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_LISTAPRECIO AS CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"' ")))); + if (true) break; + +case 99: +//C +this.state = 100; + //BA.debugLineNum = 3419;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.Exec"; +_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_precioprom = (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_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"' ")))); + if (true) break; +; + //BA.debugLineNum = 3422;BA.debugLine="If precioprom.RowCount > 0 Then"; + +case 100: +//if +this.state = 107; +if (_precioprom.getRowCount()>0) { +this.state = 102; +}if (true) break; + +case 102: +//C +this.state = 103; + //BA.debugLineNum = 3423;BA.debugLine="precioprom.Position = 0"; +_precioprom.setPosition((int) (0)); + //BA.debugLineNum = 3424;BA.debugLine="Log (precioprom.GETSTRING(\"CAT_GP_PRECIO\"))"; +parent.__c.LogImpl("317170643",_precioprom.GetString("CAT_GP_PRECIO"),0); + //BA.debugLineNum = 3425;BA.debugLine="Log (s.GETSTRING(\"PE_COSTOU\"))"; +parent.__c.LogImpl("317170644",parent._s.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 3426;BA.debugLine="If NumberFormat2(precioprom.GETSTRING(\"CAT_GP"; +if (true) break; + +case 103: +//if +this.state = 106; +if ((parent.__c.NumberFormat2((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)) == false) { +this.state = 105; +}if (true) break; + +case 105: +//C +this.state = 106; + //BA.debugLineNum = 3428;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & prec"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+_precioprom.GetString("CAT_GP_PRECIO")+" Desc.: "+parent.__c.NumberFormat2(((((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))-(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))))*100)/(double)(double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))),(int) (0.),(int) (2),(int) (2),parent.__c.False)+"%"+_elinefeed+_elinefeed); + if (true) break; + +case 106: +//C +this.state = 107; +; + if (true) break; + +case 107: +//C +this.state = 108; +; + //BA.debugLineNum = 3432;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3433;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3434;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 108: +//C +this.state = 145; +; + if (true) break; +if (true) break; + +case 109: +//C +this.state = 110; +; + //BA.debugLineNum = 3437;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + if (true) break; + +case 110: +//C +this.state = 111; +; + //BA.debugLineNum = 3439;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 3469;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa: $\" &"; +parent._printer1._writestring /*String*/ ("Subtotal Preventa: $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango3 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + //BA.debugLineNum = 3470;BA.debugLine="If NumberFormat2(Subs.calculaTotalConPromoXRango"; +if (true) break; + +case 111: +//if +this.state = 114; +if ((parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango3 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango2 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)) == false) { +this.state = 113; +}if (true) break; + +case 113: +//C +this.state = 114; + //BA.debugLineNum = 3471;BA.debugLine="Printer1.WriteString(\"Descuento: $\" & NumberF"; +parent._printer1._writestring /*String*/ ("Descuento: $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango3 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango2 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + if (true) break; + +case 114: +//C +this.state = 115; +; + //BA.debugLineNum = 3474;BA.debugLine="Printer1.WriteString(\"Total Preventa: $\" & Num"; +parent._printer1._writestring /*String*/ ("Total Preventa: $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango2 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + //BA.debugLineNum = 3475;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 3477;BA.debugLine="Private contadocredito As Cursor = Starter.skmt."; +_contadocredito = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_contadocredito = (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 BANDERA FROM CODIGOS_CREDITO WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA) ")))); + //BA.debugLineNum = 3478;BA.debugLine="If contadocredito.RowCount > 0 Then"; +if (true) break; + +case 115: +//if +this.state = 124; +if (_contadocredito.getRowCount()>0) { +this.state = 117; +}if (true) break; + +case 117: +//C +this.state = 118; + //BA.debugLineNum = 3479;BA.debugLine="contadocredito.Position = 0"; +_contadocredito.setPosition((int) (0)); + //BA.debugLineNum = 3480;BA.debugLine="If contadocredito.getstring(\"BANDERA\") = \"1\" Th"; +if (true) break; + +case 118: +//if +this.state = 123; +if ((_contadocredito.GetString("BANDERA")).equals("1")) { +this.state = 120; +}else { +this.state = 122; +}if (true) break; + +case 120: +//C +this.state = 123; + //BA.debugLineNum = 3481;BA.debugLine="Printer1.WriteString(\"Tipo de entrega: CREDI"; +parent._printer1._writestring /*String*/ ("Tipo de entrega: CREDITO"+_elinefeed); + if (true) break; + +case 122: +//C +this.state = 123; + //BA.debugLineNum = 3483;BA.debugLine="Printer1.WriteString(\"Tipo de entrega: CONTA"; +parent._printer1._writestring /*String*/ ("Tipo de entrega: CONTADO"+_elinefeed); + if (true) break; + +case 123: +//C +this.state = 124; +; + if (true) break; + +case 124: +//C +this.state = 125; +; + //BA.debugLineNum = 3487;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 3488;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed); + //BA.debugLineNum = 3489;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" & eLINEFEED"; +parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed); + //BA.debugLineNum = 3490;BA.debugLine="Printer1.WriteString(la_Calle.Text & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 3491;BA.debugLine="Printer1.WriteString(\"--------------ESTE TICKET"; +parent._printer1._writestring /*String*/ ("--------------ESTE TICKET NO ES UN--------------"+_elinefeed); + //BA.debugLineNum = 3492;BA.debugLine="Printer1.WriteString(\"----------COMPROBANTE FISC"; +parent._printer1._writestring /*String*/ ("----------COMPROBANTE FISCAL, SOLO ES-----------"+_elinefeed); + //BA.debugLineNum = 3493;BA.debugLine="Printer1.WriteString(\"------------------INFORMAT"; +parent._printer1._writestring /*String*/ ("------------------INFORMATIVO-------------------"+_elinefeed); + //BA.debugLineNum = 3494;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed); + //BA.debugLineNum = 3495;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 3497;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 148; +return; +case 148: +//C +this.state = 125; +; + //BA.debugLineNum = 3498;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3500;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + if (true) break; + +case 125: +//C +this.state = 126; +; + //BA.debugLineNum = 3504;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 149; +return; +case 149: +//C +this.state = 126; +; + //BA.debugLineNum = 3505;BA.debugLine="Dim pedifutu As Cursor = skmt.ExecQuery(\"select *"; +_pedifutu = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pedifutu = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FUTURO = '1' "))); + //BA.debugLineNum = 3506;BA.debugLine="If pedifutu.RowCount > 0 Then"; +if (true) break; + +case 126: +//if +this.state = 129; +if (_pedifutu.getRowCount()>0) { +this.state = 128; +}if (true) break; + +case 128: +//C +this.state = 129; + //BA.debugLineNum = 3507;BA.debugLine="Impresion5"; +parent._impresion5(); + if (true) break; + +case 129: +//C +this.state = -1; +; + //BA.debugLineNum = 3509;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _impresion5() throws Exception{ +ResumableSub_Impresion5 rsub = new ResumableSub_Impresion5(this); +rsub.resume(ba, null); +} +public static class ResumableSub_Impresion5 extends BA.ResumableSub { +public ResumableSub_Impresion5(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +String _elinefeed = ""; +int _cont = 0; +int _i = 0; +int _e = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null; +String _subtot = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _precioprom = null; +int step55; +int limit55; +int step66; +int limit66; +int step79; +int limit79; +int step98; +int limit98; +int step110; +int limit110; +int step125; +int limit125; +int step134; +int limit134; + +@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 = 3574;BA.debugLine="c=skmt.ExecQuery(\"select USUARIO from usuarioa\")"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 3575;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 3576;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 3578;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3579;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3580;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3581;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 3586;BA.debugLine="Public Const eLINEFEED As String = \"\" & Chr(0x0D)"; +_elinefeed = ""+BA.ObjectToString(parent.__c.Chr(((int)0x0d)))+BA.ObjectToString(parent.__c.Chr(((int)0x0a))); + //BA.debugLineNum = 3587;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 3588;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3589;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 = 3591;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3592;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3593;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 = 3594;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 107; +return; +case 107: +//C +this.state = 7; +; + //BA.debugLineNum = 3595;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3596;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 = 3597;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 = 3599;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 108; +return; +case 108: +//C +this.state = 38; +; + //BA.debugLineNum = 3600;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 3603;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3604;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3605;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 = 3606;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 109; +return; +case 109: +//C +this.state = 25; +; + //BA.debugLineNum = 3607;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3608;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 = 3609;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 = 3611;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 110; +return; +case 110: +//C +this.state = 38; +; + //BA.debugLineNum = 3612;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 3615;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3616;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3617;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 3633;BA.debugLine="Printer1.WriteString(\"Centro de atencion a Client"; +parent._printer1._writestring /*String*/ ("Centro de atencion a Clientes Bat"+_elinefeed); + //BA.debugLineNum = 3634;BA.debugLine="Printer1.WriteString(\"Telefono: 800 400 5000\" &"; +parent._printer1._writestring /*String*/ ("Telefono: 800 400 5000"+_elinefeed); + //BA.debugLineNum = 3635;BA.debugLine="Printer1.WriteString(eLINEFEED)"; +parent._printer1._writestring /*String*/ (_elinefeed); + //BA.debugLineNum = 3636;BA.debugLine="Printer1.WriteString(eLINEFEED)"; +parent._printer1._writestring /*String*/ (_elinefeed); + //BA.debugLineNum = 3637;BA.debugLine="Printer1.WriteString(\"DISTRIBUIDORA ROCHA TULA PA"; +parent._printer1._writestring /*String*/ ("DISTRIBUIDORA ROCHA TULA PACHUCA"+_elinefeed); + //BA.debugLineNum = 3638;BA.debugLine="Printer1.WriteString(\"RFC: DRT-110316-9J1\" & eLI"; +parent._printer1._writestring /*String*/ ("RFC: DRT-110316-9J1"+_elinefeed); + //BA.debugLineNum = 3640;BA.debugLine="Printer1.WriteString(sDate & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._sdate+_elinefeed); + //BA.debugLineNum = 3641;BA.debugLine="Printer1.WriteString(sTime & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._stime+_elinefeed); + //BA.debugLineNum = 3642;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & eLI"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+_elinefeed); + //BA.debugLineNum = 3643;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+_elinefeed); + //BA.debugLineNum = 3644;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+_elinefeed); + //BA.debugLineNum = 3645;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 3646;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+_elinefeed); + //BA.debugLineNum = 3648;BA.debugLine="Printer1.WriteString(\"Entre calle1: \" & l_entre1."; +parent._printer1._writestring /*String*/ ("Entre calle1: "+parent._l_entre1.getText()+_elinefeed); + //BA.debugLineNum = 3649;BA.debugLine="Printer1.WriteString(\"Entre Calle2: \" & l_entre2."; +parent._printer1._writestring /*String*/ ("Entre Calle2: "+parent._l_entre2.getText()+_elinefeed); + //BA.debugLineNum = 3651;BA.debugLine="Printer1.WriteString(\"--------------PEDIDO PREACO"; +parent._printer1._writestring /*String*/ ("--------------PEDIDO PREACORDADO----------------"+_elinefeed); + //BA.debugLineNum = 3653;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC, PE_CANT * PE_COSTOU AS PE_COSTO_TOT, PE_CANT * IFNULL(PE_RECALCULO,0) AS PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT, length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC, PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '1' order by PE_PROID",new String[]{parent._subs._traealmacen /*String*/ (ba)}))); + //BA.debugLineNum = 3654;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 39: +//if +this.state = 76; +if (parent._s.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 3655;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 42: +//for +this.state = 75; +step55 = 1; +limit55 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 111; +if (true) break; + +case 111: +//C +this.state = 75; +if ((step55 > 0 && _i <= limit55) || (step55 < 0 && _i >= limit55)) this.state = 44; +if (true) break; + +case 112: +//C +this.state = 111; +_i = ((int)(0 + _i + step55)) ; +if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 3656;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 3657;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 45: +//if +this.state = 74; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 47; +}else { +this.state = 49; +}if (true) break; + +case 47: +//C +this.state = 74; + //BA.debugLineNum = 3658;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + if (true) break; + +case 49: +//C +this.state = 50; + //BA.debugLineNum = 3660;BA.debugLine="If s.GetInt(\"PE_RECALCULO\") = 0 Then"; +if (true) break; + +case 50: +//if +this.state = 73; +if (parent._s.GetInt("PE_RECALCULO")==0) { +this.state = 52; +}else if(parent._s.GetInt("PE_CANT")==parent._s.GetInt("PE_RECCANT")) { +this.state = 58; +}else if(parent._s.GetInt("PE_CANT")!=parent._s.GetInt("PE_RECCANT")) { +this.state = 64; +}if (true) break; + +case 52: +//C +this.state = 53; + //BA.debugLineNum = 3661;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3662;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3663;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 3664;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 3666;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3668;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 53: +//for +this.state = 56; +step66 = 1; +limit66 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 113; +if (true) break; + +case 113: +//C +this.state = 56; +if ((step66 > 0 && _e <= limit66) || (step66 < 0 && _e >= limit66)) this.state = 55; +if (true) break; + +case 114: +//C +this.state = 113; +_e = ((int)(0 + _e + step66)) ; +if (true) break; + +case 55: +//C +this.state = 114; + //BA.debugLineNum = 3669;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 56: +//C +this.state = 73; +; + //BA.debugLineNum = 3671;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed+_elinefeed); + //BA.debugLineNum = 3672;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3673;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3674;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 58: +//C +this.state = 59; + //BA.debugLineNum = 3676;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3677;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3678;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3679;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano); + //BA.debugLineNum = 3681;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3683;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 59: +//for +this.state = 62; +step79 = 1; +limit79 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 115; +if (true) break; + +case 115: +//C +this.state = 62; +if ((step79 > 0 && _e <= limit79) || (step79 < 0 && _e >= limit79)) this.state = 61; +if (true) break; + +case 116: +//C +this.state = 115; +_e = ((int)(0 + _e + step79)) ; +if (true) break; + +case 61: +//C +this.state = 116; + //BA.debugLineNum = 3684;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 62: +//C +this.state = 73; +; + //BA.debugLineNum = 3687;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer"; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 3688;BA.debugLine="descpro.Position = 0"; +_descpro.setPosition((int) (0)); + //BA.debugLineNum = 3690;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_RECALCULO")+" $"+parent._s.GetString("PE_COSTO_TOTREC")+_elinefeed+_elinefeed); + //BA.debugLineNum = 3692;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed); + //BA.debugLineNum = 3693;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3694;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3695;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 64: +//C +this.state = 65; + //BA.debugLineNum = 3697;BA.debugLine="Log(s.GetInt(\"PE_RECCANT\"))"; +parent.__c.LogImpl("317301628",BA.NumberToString(parent._s.GetInt("PE_RECCANT")),0); + //BA.debugLineNum = 3698;BA.debugLine="Log(s.GetInt(\"PE_CANT\"))"; +parent.__c.LogImpl("317301629",BA.NumberToString(parent._s.GetInt("PE_CANT")),0); + //BA.debugLineNum = 3699;BA.debugLine="Log(\"aqui\")"; +parent.__c.LogImpl("317301630","aqui",0); + //BA.debugLineNum = 3700;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_RECCANT\""; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_RECCANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3701;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3702;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3703;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOTREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOTREC")+parent._tamano); + //BA.debugLineNum = 3705;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3707;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 65: +//for +this.state = 68; +step98 = 1; +limit98 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 117; +if (true) break; + +case 117: +//C +this.state = 68; +if ((step98 > 0 && _e <= limit98) || (step98 < 0 && _e >= limit98)) this.state = 67; +if (true) break; + +case 118: +//C +this.state = 117; +_e = ((int)(0 + _e + step98)) ; +if (true) break; + +case 67: +//C +this.state = 118; + //BA.debugLineNum = 3708;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 68: +//C +this.state = 69; +; + //BA.debugLineNum = 3712;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuer"; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 3713;BA.debugLine="descpro.Position = 0"; +_descpro.setPosition((int) (0)); + //BA.debugLineNum = 3715;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_RECCANT")+" X $"+parent._s.GetString("PE_RECALCULO")+" $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(parent._s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed); + //BA.debugLineNum = 3716;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & s.GETS"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+parent._s.GetString("PE_COSTOU")+" Desc.: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+_elinefeed+_elinefeed); + //BA.debugLineNum = 3718;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE_C"; +_subtot = BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU")))); + //BA.debugLineNum = 3719;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3720;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOREC\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOREC")+parent._tamano); + //BA.debugLineNum = 3721;BA.debugLine="TAMANO = subTot + TAMANO"; +parent._tamano = (int) ((double)(Double.parseDouble(_subtot))+parent._tamano); + //BA.debugLineNum = 3723;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3725;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 69: +//for +this.state = 72; +step110 = 1; +limit110 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 119; +if (true) break; + +case 119: +//C +this.state = 72; +if ((step110 > 0 && _e <= limit110) || (step110 < 0 && _e >= limit110)) this.state = 71; +if (true) break; + +case 120: +//C +this.state = 119; +_e = ((int)(0 + _e + step110)) ; +if (true) break; + +case 71: +//C +this.state = 120; + //BA.debugLineNum = 3726;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 72: +//C +this.state = 73; +; + //BA.debugLineNum = 3729;BA.debugLine="Printer1.WriteString((s.GETSTRING(\"PE_CANT\")-"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3730;BA.debugLine="Printer1.WriteString(BLANCO & (s.GETSTRING(\"P"; +parent._printer1._writestring /*String*/ (parent._blanco+BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("PE_CANT")))-(double)(Double.parseDouble(parent._s.GetString("PE_RECCANT")))))+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent.__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),parent.__c.False)+_elinefeed+_elinefeed); + //BA.debugLineNum = 3733;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3734;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3735;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 73: +//C +this.state = 74; +; + if (true) break; + +case 74: +//C +this.state = 112; +; + if (true) break; +if (true) break; + +case 75: +//C +this.state = 76; +; + if (true) break; + +case 76: +//C +this.state = 77; +; + //BA.debugLineNum = 3740;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 3742;BA.debugLine="s=skmt.ExecQuery(\"select PE_PRONOMBRE, PE_CANT, l"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_FUTURO = '1' order by PE_CEDIS, PE_COSTOU"))); + //BA.debugLineNum = 3743;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 77: +//if +this.state = 102; +if (parent._s.getRowCount()>0) { +this.state = 79; +}if (true) break; + +case 79: +//C +this.state = 80; + //BA.debugLineNum = 3745;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 80: +//for +this.state = 101; +step125 = 1; +limit125 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 121; +if (true) break; + +case 121: +//C +this.state = 101; +if ((step125 > 0 && _i <= limit125) || (step125 < 0 && _i >= limit125)) this.state = 82; +if (true) break; + +case 122: +//C +this.state = 121; +_i = ((int)(0 + _i + step125)) ; +if (true) break; + +case 82: +//C +this.state = 83; + //BA.debugLineNum = 3746;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 3747;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_PR"; +if (true) break; + +case 83: +//if +this.state = 100; +if ((parent._s.GetString("PE_CEDIS")).equals(parent._s.GetString("PE_PROID"))) { +this.state = 85; +}else { +this.state = 87; +}if (true) break; + +case 85: +//C +this.state = 100; + if (true) break; + +case 87: +//C +this.state = 88; + //BA.debugLineNum = 3752;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+" "+parent._s.GetString("PE_PRONOMBRE")+_elinefeed); + //BA.debugLineNum = 3753;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_CANT")+parent._tamano); + //BA.debugLineNum = 3754;BA.debugLine="TAMANO = s.GetLong(\"L_COSTOU\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTOU")+parent._tamano); + //BA.debugLineNum = 3755;BA.debugLine="TAMANO = s.GetLong(\"L_COSTO_TOT\") + TAMANO"; +parent._tamano = (int) (parent._s.GetLong("L_COSTO_TOT")+parent._tamano); + //BA.debugLineNum = 3757;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +parent._espacio = (int) (parent._espacio-parent._tamano); + //BA.debugLineNum = 3759;BA.debugLine="For E=0 To ESPACIO -1"; +if (true) break; + +case 88: +//for +this.state = 91; +step134 = 1; +limit134 = (int) (parent._espacio-1); +_e = (int) (0) ; +this.state = 123; +if (true) break; + +case 123: +//C +this.state = 91; +if ((step134 > 0 && _e <= limit134) || (step134 < 0 && _e >= limit134)) this.state = 90; +if (true) break; + +case 124: +//C +this.state = 123; +_e = ((int)(0 + _e + step134)) ; +if (true) break; + +case 90: +//C +this.state = 124; + //BA.debugLineNum = 3760;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; + if (true) break; +if (true) break; + +case 91: +//C +this.state = 92; +; + //BA.debugLineNum = 3762;BA.debugLine="Printer1.WriteString(BLANCO & s.GETSTRING(\"PE_"; +parent._printer1._writestring /*String*/ (parent._blanco+parent._s.GetString("PE_CANT")+" X $"+parent._s.GetString("PE_COSTOU")+" $"+parent._s.GetString("PE_COSTO_TOT")+_elinefeed); + //BA.debugLineNum = 3764;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.ExecQu"; +_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_precioprom = (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_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("PE_PRONOMBRE")))+"' ")))); + //BA.debugLineNum = 3765;BA.debugLine="If precioprom.RowCount > 0 Then"; +if (true) break; + +case 92: +//if +this.state = 99; +if (_precioprom.getRowCount()>0) { +this.state = 94; +}if (true) break; + +case 94: +//C +this.state = 95; + //BA.debugLineNum = 3766;BA.debugLine="precioprom.Position = 0"; +_precioprom.setPosition((int) (0)); + //BA.debugLineNum = 3767;BA.debugLine="Log (precioprom.GETSTRING(\"CAT_GP_PRECIO\"))"; +parent.__c.LogImpl("317301698",_precioprom.GetString("CAT_GP_PRECIO"),0); + //BA.debugLineNum = 3768;BA.debugLine="Log (s.GETSTRING(\"PE_COSTOU\"))"; +parent.__c.LogImpl("317301699",parent._s.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 3769;BA.debugLine="If NumberFormat2(precioprom.GETSTRING(\"CAT_GP"; +if (true) break; + +case 95: +//if +this.state = 98; +if ((parent.__c.NumberFormat2((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))),(int) (0.),(int) (2),(int) (2),parent.__c.False)) == false) { +this.state = 97; +}if (true) break; + +case 97: +//C +this.state = 98; + //BA.debugLineNum = 3771;BA.debugLine="Printer1.WriteString(BLANCO & \"PL $\" & preci"; +parent._printer1._writestring /*String*/ (parent._blanco+"PL $"+_precioprom.GetString("CAT_GP_PRECIO")+" Desc.: "+parent.__c.NumberFormat2(((((double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))-(double)(Double.parseDouble(parent._s.GetString("PE_COSTOU"))))*100)/(double)(double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))),(int) (0.),(int) (2),(int) (2),parent.__c.False)+"%"+_elinefeed+_elinefeed); + if (true) break; + +case 98: +//C +this.state = 99; +; + if (true) break; + +case 99: +//C +this.state = 100; +; + //BA.debugLineNum = 3775;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3776;BA.debugLine="ESPACIO = 21"; +parent._espacio = (int) (21); + //BA.debugLineNum = 3777;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + if (true) break; + +case 100: +//C +this.state = 122; +; + if (true) break; +if (true) break; + +case 101: +//C +this.state = 102; +; + //BA.debugLineNum = 3780;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + if (true) break; + +case 102: +//C +this.state = 103; +; + //BA.debugLineNum = 3782;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 3813;BA.debugLine="Printer1.WriteString(\"Subtotal Preventa: $\" & N"; +parent._printer1._writestring /*String*/ ("Subtotal Preventa: $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango4 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + //BA.debugLineNum = 3814;BA.debugLine="If NumberFormat2(Subs.calculaTotalConPromoXRango4"; +if (true) break; + +case 103: +//if +this.state = 106; +if ((parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango4 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango1 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)) == false) { +this.state = 105; +}if (true) break; + +case 105: +//C +this.state = 106; + //BA.debugLineNum = 3815;BA.debugLine="Printer1.WriteString(\"Descuento: $\" & NumberFo"; +parent._printer1._writestring /*String*/ ("Descuento: $"+parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango4 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango1 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + if (true) break; + +case 106: +//C +this.state = -1; +; + //BA.debugLineNum = 3818;BA.debugLine="Printer1.WriteString(\"Total Preventa: $\" & Numb"; +parent._printer1._writestring /*String*/ ("Total Preventa: $"+parent.__c.NumberFormat2((double)(Double.parseDouble(parent._subs._calculatotalconpromoxrango1 /*String*/ (ba,parent._subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),parent.__c.False)+_elinefeed); + //BA.debugLineNum = 3820;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 3821;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed); + //BA.debugLineNum = 3822;BA.debugLine="Printer1.WriteString(\"ENTREGA EN :\" & eLINEFEED)"; +parent._printer1._writestring /*String*/ ("ENTREGA EN :"+_elinefeed); + //BA.debugLineNum = 3823;BA.debugLine="Printer1.WriteString(la_Calle.Text & eLINEFEED)"; +parent._printer1._writestring /*String*/ (parent._la_calle.getText()+_elinefeed); + //BA.debugLineNum = 3824;BA.debugLine="Printer1.WriteString(\"--------------ESTE TICKET N"; +parent._printer1._writestring /*String*/ ("--------------ESTE TICKET NO ES UN--------------"+_elinefeed); + //BA.debugLineNum = 3825;BA.debugLine="Printer1.WriteString(\"----------COMPROBANTE FISCA"; +parent._printer1._writestring /*String*/ ("----------COMPROBANTE FISCAL, SOLO ES-----------"+_elinefeed); + //BA.debugLineNum = 3826;BA.debugLine="Printer1.WriteString(\"------------------INFORMATI"; +parent._printer1._writestring /*String*/ ("------------------INFORMATIVO-------------------"+_elinefeed); + //BA.debugLineNum = 3827;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------------------------"+_elinefeed); + //BA.debugLineNum = 3828;BA.debugLine="Printer1.WriteString(\" \" & eLINEFEED)"; +parent._printer1._writestring /*String*/ (" "+_elinefeed); + //BA.debugLineNum = 3830;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 125; +return; +case 125: +//C +this.state = -1; +; + //BA.debugLineNum = 3831;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3833;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 3836;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _inicializarlocalizacionmejorada() throws Exception{ +anywheresoftware.b4j.object.JavaObject _locationmanager = null; + //BA.debugLineNum = 1510;BA.debugLine="Sub InicializarLocalizacionMejorada"; + //BA.debugLineNum = 1512;BA.debugLine="Dim LocationManager As JavaObject"; +_locationmanager = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 1513;BA.debugLine="LocationManager.InitializeStatic(\"android.locatio"; +_locationmanager.InitializeStatic("android.location.LocationManager"); + //BA.debugLineNum = 1515;BA.debugLine="g.Start(0, 0) ' GPS"; +_g.Start(ba,(long) (0),(float) (0)); + //BA.debugLineNum = 1517;BA.debugLine="End Sub"; +return ""; +} +public String _iniciofin() throws Exception{ + //BA.debugLineNum = 1900;BA.debugLine="Private Sub iniciofin"; + //BA.debugLineNum = 1912;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 482;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 483;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 484;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(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +String _permission = ""; +boolean _resultc = 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 = 7685;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 = 7686;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]; +_resultc = (Boolean) result[1]; +; + //BA.debugLineNum = 7687;BA.debugLine="If resultC Then"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_resultc) { +this.state = 3; +}else { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 6; + //BA.debugLineNum = 7688;BA.debugLine="camEx.Initialize(p_cam, frontCamera, Me, \"Camera"; +parent._camex._initialize /*String*/ (ba,parent._p_cam,parent._frontcamera,parent,"Camera1"); + //BA.debugLineNum = 7689;BA.debugLine="frontCamera = camEx.Front"; +parent._frontcamera = parent._camex._front /*boolean*/ ; + //BA.debugLineNum = 7690;BA.debugLine="Log(\"inicializamos Camara\")"; +parent.__c.LogImpl("327066374","inicializamos Camara",0); + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 7692;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 = 7694;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result1 = null; +Object[] _records = null; +String _k = ""; +String _permiso_geopass = ""; +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; +byte[] _cat_cl_foto = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar1 = null; +byte[] _fotomostrarfinal = null; +anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _inputstream1 = null; +anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bitmap1 = null; + //BA.debugLineNum = 1946;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 1947;BA.debugLine="If Job.Success = False Then"; +if (_job._success /*boolean*/ ==__c.False) { + //BA.debugLineNum = 1949;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Subs.pars"; +__c.LogImpl("314614531","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red); + }else { + //BA.debugLineNum = 1952;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; +__c.LogImpl("314614534","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 1953;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1954;BA.debugLine="Dim result1 As DBResult = reqManager.HandleJob("; +_result1 = _reqmanager._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1955;BA.debugLine="If result1.Tag = \"traeGeoPass\" Then 'query tag"; +if ((_result1.Tag /*Object*/ ).equals((Object)("traeGeoPass"))) { + //BA.debugLineNum = 1956;BA.debugLine="Log(\"SIN REGISTROS \" & result1.Rows.Size)"; +__c.LogImpl("314614538","SIN REGISTROS "+BA.NumberToString(_result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 1957;BA.debugLine="If result1.Rows.Size = 0 Then MsgboxAsync(\"Con"; +if (_result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { +__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña equivocada, por favor intente de nuevo."),BA.ObjectToCharSequence("ATENCION"),ba);}; + //BA.debugLineNum = 1958;BA.debugLine="For Each records() As Object In result1.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group10 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen10 = group10.getSize() +;int index10 = 0; +; +for (; index10 < groupLen10;index10++){ +_records = (Object[])(group10.Get(index10)); + //BA.debugLineNum = 1959;BA.debugLine="For Each k As String In result1.Columns.Keys"; +{ +final anywheresoftware.b4a.BA.IterableList group11 = _result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final int groupLen11 = group11.getSize() +;int index11 = 0; +; +for (; index11 < groupLen11;index11++){ +_k = BA.ObjectToString(group11.Get(index11)); + //BA.debugLineNum = 1960;BA.debugLine="Log(k & \": \" & records(result1.Columns.Get(k"; +__c.LogImpl("314614542",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + } +}; + //BA.debugLineNum = 1962;BA.debugLine="Private permiso_geoPass As String = \"KO\""; +_permiso_geopass = "KO"; + //BA.debugLineNum = 1963;BA.debugLine="Log($\"|${result1.Columns.Get(\"'OK'\")}|\"$)"; +__c.LogImpl("314614545",("|"+__c.SmartStringFormatter("",_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("'OK'")))+"|"),0); + //BA.debugLineNum = 1966;BA.debugLine="permiso_geoPass = result1.Columns.Get(\"'OK'\""; +_permiso_geopass = BA.ObjectToString(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("'OK'"))); + //BA.debugLineNum = 1968;BA.debugLine="If permiso_geoPass = \"OK\" Then"; +if ((_permiso_geopass).equals("OK")) { + //BA.debugLineNum = 1969;BA.debugLine="m_lat = B4XPages.MainPage.lat_gps"; +_m_lat = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ; + //BA.debugLineNum = 1970;BA.debugLine="m_lon = B4XPages.MainPage.lon_gps"; +_m_lon = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ; + //BA.debugLineNum = 1971;BA.debugLine="GPS_LocationChanged(Starter.ubicacionActual)"; +_gps_locationchanged(_starter._ubicacionactual /*anywheresoftware.b4a.gps.LocationWrapper*/ ); + //BA.debugLineNum = 1972;BA.debugLine="skmt.ExecNonQuery($\"update kmt_info3 set CAT"; +_skmt.ExecNonQuery(("update kmt_info3 set CAT_CL_LAT = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ))+"', CAT_CL_LONG = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ))+"' where CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_subs._traecliente /*String*/ (ba)))+"'")); + //BA.debugLineNum = 1973;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1974;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1975;BA.debugLine="cmd.Name = \"delete_geoPass_GUNA\""; +_cmd.Name /*String*/ = "delete_geoPass_GUNA"; + //BA.debugLineNum = 1976;BA.debugLine="cmd.Parameters = Array As Object( Subs.traeA"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))}; + //BA.debugLineNum = 1977;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"traeGeoPas"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("traeGeoPass")); + }else { + //BA.debugLineNum = 1979;BA.debugLine="MsgboxAsync(\"Contraseña equivocada, por favo"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña equivocada, por favor intente de nuevo."),BA.ObjectToCharSequence("ATENCION"),ba); + }; + } +}; + }; + //BA.debugLineNum = 1984;BA.debugLine="If result1.Tag = \"codigoAutorizacion\" Then"; +if ((_result1.Tag /*Object*/ ).equals((Object)("codigoAutorizacion"))) { + //BA.debugLineNum = 1985;BA.debugLine="If result1.Rows.Size > 0 Then"; +if (_result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()>0) { + //BA.debugLineNum = 1986;BA.debugLine="Log(\"Si hay codigo de autorizaion\")"; +__c.LogImpl("314614568","Si hay codigo de autorizaion",0); + //BA.debugLineNum = 1987;BA.debugLine="For Each records() As Object In result1.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group35 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen35 = group35.getSize() +;int index35 = 0; +; +for (; index35 < groupLen35;index35++){ +_records = (Object[])(group35.Get(index35)); + //BA.debugLineNum = 1988;BA.debugLine="For Each k As String In result1.Columns.Keys"; +{ +final anywheresoftware.b4a.BA.IterableList group36 = _result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final int groupLen36 = group36.getSize() +;int index36 = 0; +; +for (; index36 < groupLen36;index36++){ +_k = BA.ObjectToString(group36.Get(index36)); + //BA.debugLineNum = 1989;BA.debugLine="Log(k & \": \" & records(result1.Columns.Get("; +__c.LogImpl("314614571",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + } +}; + } +}; + //BA.debugLineNum = 1992;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1993;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1994;BA.debugLine="cmd.Name = \"delete_codigoAutorizacion\""; +_cmd.Name /*String*/ = "delete_codigoAutorizacion"; + //BA.debugLineNum = 1995;BA.debugLine="cmd.Parameters = Array As Object(et_codigoAut"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_et_codigoautorizacion.getText().trim()),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_subs._traealmacen /*String*/ (ba))}; + //BA.debugLineNum = 1996;BA.debugLine="reqManager.ExecuteCommand(cmd , \"deleteCodigo"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("deleteCodigoAutorizacion")); + //BA.debugLineNum = 1997;BA.debugLine="DateTime.DateFormat = \"YYYY/MM/dd HH:mm:ss\""; +__c.DateTime.setDateFormat("YYYY/MM/dd HH:mm:ss"); + //BA.debugLineNum = 1998;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1999;BA.debugLine="cmd.Name = \"update_codigoAutorizacion\""; +_cmd.Name /*String*/ = "update_codigoAutorizacion"; + //BA.debugLineNum = 2001;BA.debugLine="cmd.Parameters = Array As Object(DateTime.Dat"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(__c.DateTime.Date(__c.DateTime.getNow())),(Object)(_subs._traeusuariodebd /*String*/ (ba)),(Object)(_et_codigoautorizacion.getText().trim()),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_subs._traealmacen /*String*/ (ba))}; + //BA.debugLineNum = 2002;BA.debugLine="reqManager.ExecuteCommand(cmd , \"updateCodigo"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("updateCodigoAutorizacion")); + //BA.debugLineNum = 2003;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from ticket"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ticket_impreso where idCliente in (select cuenta from cuentaa)"); + //BA.debugLineNum = 2004;BA.debugLine="p_transparenteTicketImpreso.Visible = False"; +_p_transparenteticketimpreso.setVisible(__c.False); + //BA.debugLineNum = 2005;BA.debugLine="et_codigoAutorizacion.Text = \"\""; +_et_codigoautorizacion.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2006;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 2007;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 2008;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CRE"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 2009;BA.debugLine="ToastMessageShow(\"Listo, ya se puede modifica"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Listo, ya se puede modificar la venta."),__c.True); + }else { + //BA.debugLineNum = 2011;BA.debugLine="ToastMessageShow(\"El codigo es incorrecto, po"; +__c.ToastMessageShow(BA.ObjectToCharSequence("El codigo es incorrecto, por favor revise y vuelva a intentar!!"),__c.True); + }; + }; + //BA.debugLineNum = 2014;BA.debugLine="If result1.Tag = \"delete_codigoAutorizacion\" Th"; +if ((_result1.Tag /*Object*/ ).equals((Object)("delete_codigoAutorizacion"))) { + //BA.debugLineNum = 2015;BA.debugLine="Log(\"Codigo Borrado!!\")"; +__c.LogImpl("314614597","Codigo Borrado!!",0); + }; + //BA.debugLineNum = 2017;BA.debugLine="If result1.Tag = \"updateCodigoAutorizacion\" The"; +if ((_result1.Tag /*Object*/ ).equals((Object)("updateCodigoAutorizacion"))) { + //BA.debugLineNum = 2018;BA.debugLine="Log(\"Codigo Actualizado\")"; +__c.LogImpl("314614600","Codigo Actualizado",0); + }; + //BA.debugLineNum = 2020;BA.debugLine="If result1.Tag = \"insertEnvioTicketPDF\" Then"; +if ((_result1.Tag /*Object*/ ).equals((Object)("insertEnvioTicketPDF"))) { + //BA.debugLineNum = 2021;BA.debugLine="Log(\"Información de ticket enviada a web!!\")"; +__c.LogImpl("314614603","Información de ticket enviada a web!!",0); + }; + }; + //BA.debugLineNum = 2043;BA.debugLine="If result1.Tag = \"kmt_datos_foto\" Then 'query ta"; +if ((_result1.Tag /*Object*/ ).equals((Object)("kmt_datos_foto"))) { + //BA.debugLineNum = 2044;BA.debugLine="For Each records() As Object In result1.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group72 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen72 = group72.getSize() +;int index72 = 0; +; +for (; index72 < groupLen72;index72++){ +_records = (Object[])(group72.Get(index72)); + //BA.debugLineNum = 2045;BA.debugLine="Dim CAT_CL_FOTO() As Byte = records(result1.Co"; +_cat_cl_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]); + } +}; + //BA.debugLineNum = 2047;BA.debugLine="Log(\"si paso\")"; +__c.LogImpl("314614629","si paso",0); + //BA.debugLineNum = 2048;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 SET foto = (?) WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_foto)})); + //BA.debugLineNum = 2050;BA.debugLine="Dim fotomostrar As Cursor = Starter.skmt.ExecQu"; +_fotomostrar = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fotomostrar = (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 foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2051;BA.debugLine="If fotomostrar.RowCount > 0 Then"; +if (_fotomostrar.getRowCount()>0) { + //BA.debugLineNum = 2052;BA.debugLine="Dim fotomostrar1 As Cursor = Starter.skmt.Exec"; +_fotomostrar1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fotomostrar1 = (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 foto FROM kmt_info3 where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA) AND foto IS NULL"))); + //BA.debugLineNum = 2053;BA.debugLine="If fotomostrar1.RowCount > 0 Then"; +if (_fotomostrar1.getRowCount()>0) { + //BA.debugLineNum = 2054;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirAssets"; +_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"images.png").getObject())); + //BA.debugLineNum = 2055;BA.debugLine="Log(\"aqui no hay foto\")"; +__c.LogImpl("314614637","aqui no hay foto",0); + }else { + //BA.debugLineNum = 2057;BA.debugLine="fotomostrar.Position = 0"; +_fotomostrar.setPosition((int) (0)); + //BA.debugLineNum = 2058;BA.debugLine="Private fotomostrarfinal() As Byte = fotomost"; +_fotomostrarfinal = _fotomostrar.GetBlob("foto"); + //BA.debugLineNum = 2059;BA.debugLine="Dim InputStream1 As InputStream"; +_inputstream1 = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); + //BA.debugLineNum = 2060;BA.debugLine="InputStream1.InitializeFromBytesArray(fotomos"; +_inputstream1.InitializeFromBytesArray(_fotomostrarfinal,(int) (0),_fotomostrarfinal.length); + //BA.debugLineNum = 2061;BA.debugLine="Dim Bitmap1 As Bitmap"; +_bitmap1 = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 2062;BA.debugLine="Bitmap1.Initialize2(InputStream1)"; +_bitmap1.Initialize2((java.io.InputStream)(_inputstream1.getObject())); + //BA.debugLineNum = 2063;BA.debugLine="InputStream1.Close"; +_inputstream1.Close(); + //BA.debugLineNum = 2064;BA.debugLine="ImageView4.Bitmap = Bitmap1"; +_imageview4.setBitmap((android.graphics.Bitmap)(_bitmap1.getObject())); + //BA.debugLineNum = 2065;BA.debugLine="Log(\"aqui si hay foto\")"; +__c.LogImpl("314614647","aqui si hay foto",0); + }; + }; + }; + }; + //BA.debugLineNum = 2070;BA.debugLine="Job.Release"; +_job._release /*String*/ (); + //BA.debugLineNum = 2071;BA.debugLine="End Sub"; +return ""; +} +public String _l_atiende_longclick() throws Exception{ + //BA.debugLineNum = 7913;BA.debugLine="Private Sub l_atiende_LongClick"; + //BA.debugLineNum = 7914;BA.debugLine="p_atiende.Height = Root.Height"; +_p_atiende.setHeight(_root.getHeight()); + //BA.debugLineNum = 7915;BA.debugLine="p_atiende.Width = Root.Width"; +_p_atiende.setWidth(_root.getWidth()); + //BA.debugLineNum = 7916;BA.debugLine="p_atiende.Visible = True"; +_p_atiende.setVisible(__c.True); + //BA.debugLineNum = 7917;BA.debugLine="End Sub"; +return ""; +} +public String _l_chk_e_click() throws Exception{ + //BA.debugLineNum = 6498;BA.debugLine="Private Sub l_chk_e_Click"; + //BA.debugLineNum = 6500;BA.debugLine="End Sub"; +return ""; +} +public String _l_limite_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarepen = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +String _fechainicio = ""; +long _ticksinicio = 0L; +long _tickshoy = 0L; +int _diferenciadias = 0; + //BA.debugLineNum = 7814;BA.debugLine="Private Sub l_limite_Click"; + //BA.debugLineNum = 7817;BA.debugLine="Dim pagarepen As Cursor = B4XPages.MainPage.skmt."; +_pagarepen = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pagarepen = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select FECHA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 7818;BA.debugLine="If pagarepen.RowCount > 0 Then"; +if (_pagarepen.getRowCount()>0) { + //BA.debugLineNum = 7819;BA.debugLine="Dim cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 7820;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 7821;BA.debugLine="p_deuda.Visible = True"; +_p_deuda.setVisible(__c.True); + //BA.debugLineNum = 7822;BA.debugLine="p_deuda.Width = Root.Width"; +_p_deuda.setWidth(_root.getWidth()); + //BA.debugLineNum = 7823;BA.debugLine="p_deuda.Height = Root.Height"; +_p_deuda.setHeight(_root.getHeight()); + //BA.debugLineNum = 7825;BA.debugLine="pagarepen.Position = 0"; +_pagarepen.setPosition((int) (0)); + //BA.debugLineNum = 7826;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 7827;BA.debugLine="Dim FechaInicio As String = pagarepen.GetString("; +_fechainicio = _pagarepen.GetString("FECHA"); + //BA.debugLineNum = 7829;BA.debugLine="Log(pagarepen.GetString(\"FECHA\"))"; +__c.LogImpl("327656207",_pagarepen.GetString("FECHA"),0); + //BA.debugLineNum = 7832;BA.debugLine="Dim TicksInicio As Long = DateTime.DateParse(Fec"; +_ticksinicio = __c.DateTime.DateParse(_fechainicio); + //BA.debugLineNum = 7833;BA.debugLine="Dim TicksHoy As Long = DateTime.DateParse(DateTi"; +_tickshoy = __c.DateTime.DateParse(__c.DateTime.Date(__c.DateTime.getNow())); + //BA.debugLineNum = 7836;BA.debugLine="Dim DiferenciaDias As Int = (TicksHoy - TicksIni"; +_diferenciadias = (int) ((_tickshoy-_ticksinicio)/(double)__c.DateTime.TicksPerDay); + //BA.debugLineNum = 7839;BA.debugLine="Log($\"Días transcurridos: ${DiferenciaDias}\"$)"; +__c.LogImpl("327656217",("Días transcurridos: "+__c.SmartStringFormatter("",(Object)(_diferenciadias))+""),0); + //BA.debugLineNum = 7841;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select IFNUL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_DIASCREDITO,0) AS CAT_CL_DIASCREDITO from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 7842;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 7844;BA.debugLine="If DiferenciaDias <= c.GetInt(\"CAT_CL_DIASCREDIT"; +if (_diferenciadias<=_c.GetInt("CAT_CL_DIASCREDITO")+1) { + //BA.debugLineNum = 7848;BA.debugLine="l_deuda.Text = cs.Color(Colors.Black).Append(\"M"; +_l_deuda.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Monto de la deuda:"+__c.CRLF+__c.CRLF)).Pop().Size((int) (18)).Color(__c.Colors.RGB((int) (48),(int) (109),(int) (0))).Append(BA.ObjectToCharSequence("$ "+_pagarepen.GetString("SALDO_PENDIENTE"))).PopAll().getObject())); + }else if(_diferenciadias>_c.GetInt("CAT_CL_DIASCREDITO")+1) { + //BA.debugLineNum = 7851;BA.debugLine="l_deuda.Text = cs.Color(Colors.Black).Append(\"M"; +_l_deuda.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Monto de la deuda:"+__c.CRLF+__c.CRLF)).Pop().Color(__c.Colors.Red).Size((int) (18)).Append(BA.ObjectToCharSequence("$ "+_pagarepen.GetString("SALDO_PENDIENTE")+__c.CRLF+__c.CRLF)).Pop().Size((int) (14)).Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Dias de atraso:"+__c.CRLF+__c.CRLF)).Pop().Size((int) (18)).Color(__c.Colors.Red).Append(BA.ObjectToCharSequence((_diferenciadias-(_c.GetInt("CAT_CL_DIASCREDITO")+1)))).PopAll().getObject())); + }; + }else { + //BA.debugLineNum = 7854;BA.debugLine="p_deuda.Visible = True"; +_p_deuda.setVisible(__c.True); + //BA.debugLineNum = 7856;BA.debugLine="p_deuda.Width = Root.Width"; +_p_deuda.setWidth(_root.getWidth()); + //BA.debugLineNum = 7857;BA.debugLine="p_deuda.Height = Root.Height"; +_p_deuda.setHeight(_root.getHeight()); + //BA.debugLineNum = 7859;BA.debugLine="l_deuda.Text = \"No tiene adeudo\""; +_l_deuda.setText(BA.ObjectToCharSequence("No tiene adeudo")); + }; + //BA.debugLineNum = 7862;BA.debugLine="End Sub"; +return ""; +} +public String _la_geo_click() throws Exception{ + //BA.debugLineNum = 6711;BA.debugLine="Private Sub LA_GEO_Click"; + //BA.debugLineNum = 6712;BA.debugLine="Log(geoCont)"; +__c.LogImpl("325100289",BA.NumberToString(_geocont),0); + //BA.debugLineNum = 6713;BA.debugLine="If geoCont = 3 Then"; +if (_geocont==3) { + //BA.debugLineNum = 6714;BA.debugLine="Subs.centraPanel(p_pideGeoPass, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_pidegeopass,_root.getWidth()); + //BA.debugLineNum = 6715;BA.debugLine="geoCont = 0"; +_geocont = (int) (0); + //BA.debugLineNum = 6716;BA.debugLine="If distance > 99 Then"; +if (_distance>99) { + //BA.debugLineNum = 6717;BA.debugLine="p_pideGeoPass.BringToFront"; +_p_pidegeopass.BringToFront(); + //BA.debugLineNum = 6718;BA.debugLine="et_geopass.RequestFocus"; +_et_geopass.RequestFocus(); + //BA.debugLineNum = 6719;BA.debugLine="p_pideGeoPass.Visible = True"; +_p_pidegeopass.setVisible(__c.True); + }; + }; + //BA.debugLineNum = 6722;BA.debugLine="geoCont = geoCont + 1"; +_geocont = (int) (_geocont+1); + //BA.debugLineNum = 6723;BA.debugLine="End Sub"; +return ""; +} +public String _la_geo_longclick() throws Exception{ + //BA.debugLineNum = 1939;BA.debugLine="Private Sub LA_GEO_LongClick"; + //BA.debugLineNum = 1944;BA.debugLine="End Sub"; +return ""; +} +public String _la_gps_click() throws Exception{ + //BA.debugLineNum = 1452;BA.debugLine="Private Sub LA_GPS_Click"; + //BA.debugLineNum = 1454;BA.debugLine="MejorarPrecisionGPS"; +_mejorarprecisiongps(); + //BA.debugLineNum = 1456;BA.debugLine="ToastMessageShow(\"Mejorando precisión GPS...\", Fa"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Mejorando precisión GPS..."),__c.False); + //BA.debugLineNum = 1457;BA.debugLine="End Sub"; +return ""; +} +public String _label19_click() throws Exception{ +String _numerotel = ""; +anywheresoftware.b4a.objects.IntentWrapper _intent1 = null; + //BA.debugLineNum = 7657;BA.debugLine="Private Sub Label19_Click"; + //BA.debugLineNum = 7658;BA.debugLine="Dim numeroTel As String = Label19.Text"; +_numerotel = _label19.getText(); + //BA.debugLineNum = 7660;BA.debugLine="numeroTel = numeroTel.Replace(\" \", \"\").Replace(\"-"; +_numerotel = _numerotel.replace(" ","").replace("-","").replace("(","").replace(")",""); + //BA.debugLineNum = 7662;BA.debugLine="If numeroTel.Length > 0 Then"; +if (_numerotel.length()>0) { + //BA.debugLineNum = 7663;BA.debugLine="Dim Intent1 As Intent"; +_intent1 = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 7664;BA.debugLine="Intent1.Initialize(\"android.intent.action.DIAL\","; +_intent1.Initialize("android.intent.action.DIAL","tel:"+_numerotel); + //BA.debugLineNum = 7665;BA.debugLine="StartActivity(Intent1)"; +__c.StartActivity(ba,(Object)(_intent1.getObject())); + }else { + //BA.debugLineNum = 7667;BA.debugLine="ToastMessageShow(\"Número no válido\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Número no válido"),__c.False); + }; + //BA.debugLineNum = 7670;BA.debugLine="Return True"; +if (true) return BA.ObjectToString(__c.True); + //BA.debugLineNum = 7671;BA.debugLine="End Sub"; +return ""; +} +public String _label19_longclick() throws Exception{ + //BA.debugLineNum = 7958;BA.debugLine="Private Sub Label19_LongClick"; + //BA.debugLineNum = 7959;BA.debugLine="p_telefono.Height = Root.Height"; +_p_telefono.setHeight(_root.getHeight()); + //BA.debugLineNum = 7960;BA.debugLine="p_telefono.Width = Root.Width"; +_p_telefono.setWidth(_root.getWidth()); + //BA.debugLineNum = 7961;BA.debugLine="p_telefono.Visible = True"; +_p_telefono.setVisible(__c.True); + //BA.debugLineNum = 7964;BA.debugLine="End Sub"; +return ""; +} +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 2073;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 2075;BA.debugLine="End Sub"; +return ""; +} +public String _mandap() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null; +int _i = 0; +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; + //BA.debugLineNum = 3511;BA.debugLine="Sub Mandap"; + //BA.debugLineNum = 3513;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_CE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO FROM PEDIDO WHERE (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 3514;BA.debugLine="Dim d As Cursor=B4XPages.MainPage.skmt.ExecQuery("; +_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO"))); + //BA.debugLineNum = 3515;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 3516;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 = 3517;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 3518;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 3519;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3520;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 3521;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"P"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 3522;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + } +}; + }; + //BA.debugLineNum = 3525;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3526;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3529;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3532;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_RE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_RECALCULO,PE_RECALCULOTOT,ifnull(PE_RECCEDIS,'') as PE_RECCEDIS,PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,ifnull(PE_CANT,0) as PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, IFNULL(PE_RECCANT,0) AS PE_RECCANT FROM PEDIDO WHERE PE_RECALCULO <> ? or PE_RECALCULO <> ? or PE_RECALCULO IS NOT NULL",new String[]{"","null"}))); + //BA.debugLineNum = 3533;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery($\"SELECT COUNT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO where PE_RUTA = '"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"'")))); + //BA.debugLineNum = 3534;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 3535;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 = 3536;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 3537;BA.debugLine="If c.GetString(\"PE_RECCEDIS\") = \"\" Then"; +if ((_c.GetString("PE_RECCEDIS")).equals("")) { + //BA.debugLineNum = 3538;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 3539;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3540;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 3541;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 3542;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + }else { + //BA.debugLineNum = 3544;BA.debugLine="If c.GetString(\"PE_RECCANT\") = c.GetString(\"PE"; +if ((_c.GetString("PE_RECCANT")).equals(_c.GetString("PE_CANT"))) { + //BA.debugLineNum = 3545;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 3546;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3547;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 3548;BA.debugLine="cmd.Parameters = Array As Object(C.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 3549;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + }else { + //BA.debugLineNum = 3552;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 3553;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3554;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 3555;BA.debugLine="cmd.Parameters = Array As Object(C.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_RECCANT")),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 3556;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + //BA.debugLineNum = 3558;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 3559;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3560;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 3561;BA.debugLine="cmd.Parameters = Array As Object(C.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_c.GetString("PE_COSTOU"))),(int) (1),(int) (2),(int) (2),__c.False)),(Object)(_c.GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 3562;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + }; + }; + } +}; + }; + //BA.debugLineNum = 3567;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3568;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3570;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3571;BA.debugLine="End Sub"; +return ""; +} +public void _mandawamsgcredito(String _numtel,String _monto) throws Exception{ +ResumableSub_mandaWAMsgCredito rsub = new ResumableSub_mandaWAMsgCredito(this,_numtel,_monto); +rsub.resume(ba, null); +} +public static class ResumableSub_mandaWAMsgCredito extends BA.ResumableSub { +public ResumableSub_mandaWAMsgCredito(gunav2.keymon.com.mx.c_cliente parent,String _numtel,String _monto) { +this.parent = parent; +this._numtel = _numtel; +this._monto = _monto; +} +gunav2.keymon.com.mx.c_cliente parent; +String _numtel; +String _monto; +String _fecha = ""; +String _idcliente = ""; +String _link = ""; +String _eljson = ""; +gunav2.keymon.com.mx.httpjob _job = 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 = 7526;BA.debugLine="DateTime.DateFormat=\"MM/dd/yyyy HH:mm:ss\""; +parent.__c.DateTime.setDateFormat("MM/dd/yyyy HH:mm:ss"); + //BA.debugLineNum = 7527;BA.debugLine="Private Fecha As String=DateTime.Date(DateTime.no"; +_fecha = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 7528;BA.debugLine="numTel = \"521\" & numTel"; +_numtel = "521"+_numtel; + //BA.debugLineNum = 7529;BA.debugLine="Private numTel As String = \"5215554192439\""; +_numtel = "5215554192439"; + //BA.debugLineNum = 7531;BA.debugLine="Private idCliente As String = Subs.traeCliente '\""; +_idcliente = parent._subs._traecliente /*String*/ (ba); + //BA.debugLineNum = 7532;BA.debugLine="Private ruta As String = Subs.traeRuta '\"333\""; +parent._ruta = parent._subs._traeruta /*String*/ (ba); + //BA.debugLineNum = 7533;BA.debugLine="Private ALMACEN As String = Subs.traeAlmacen '\"1\""; +parent._almacen = parent._subs._traealmacen /*String*/ (ba); + //BA.debugLineNum = 7536;BA.debugLine="Private link As String = \"http://keymon.net:9000/"; +_link = "http://keymon.net:9000/v1/messages"; + //BA.debugLineNum = 7537;BA.debugLine="Private elJSON As String = $\"{ \"number\":\"${numT"; +_eljson = ("{\n"+" \"number\":\""+parent.__c.SmartStringFormatter("",(Object)(_numtel))+"\",\n"+" \"message\":\"Tu compra de Guna va ser a *crédito* por el monto de $"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.NumberFormat2((double)(Double.parseDouble(_monto)),(int) (1),(int) (2),(int) (2),parent.__c.True)))+"\\n\\nManda *1* para confirmar\\nManda *0* para rechazar\\n\\n*Nota:* Si este mensaje no se contesta, se considerará que el pago es en *EFECTIVO*.\\n\\n(Solo el *número* por favor)\",\n"+" \"monto\":\""+parent.__c.SmartStringFormatter("",(Object)(_monto))+"\",\n"+" \"idcliente\":\""+parent.__c.SmartStringFormatter("",(Object)(_idcliente))+"\",\n"+" \"almacen\":\""+parent.__c.SmartStringFormatter("",(Object)(parent._almacen))+"\",\n"+" \"ruta\": \""+parent.__c.SmartStringFormatter("",(Object)(parent._ruta))+"\",\n"+" \"fecha\":\""+parent.__c.SmartStringFormatter("",(Object)(_fecha))+"\"\n"+" }"); + //BA.debugLineNum = 7546;BA.debugLine="Private job As HttpJob"; +_job = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 7547;BA.debugLine="job.Initialize(\"\", Me)"; +_job._initialize /*String*/ (ba,"",parent); + //BA.debugLineNum = 7548;BA.debugLine="job.PostString(link, elJSON)"; +_job._poststring /*String*/ (_link,_eljson); + //BA.debugLineNum = 7549;BA.debugLine="job.GetRequest.SetContentType(\"application/json\")"; +_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().SetContentType("application/json"); + //BA.debugLineNum = 7550;BA.debugLine="Wait For (job) JobDone(job As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_job)); +this.state = 1; +return; +case 1: +//C +this.state = -1; +_job = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 7562;BA.debugLine="Log(\"Whatsapp enviado con exito: \" & job.Success)"; +parent.__c.LogImpl("326542117","Whatsapp enviado con exito: "+BA.ObjectToString(_job._success /*boolean*/ ),0); + //BA.debugLineNum = 7563;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _mejorarprecisiongps() throws Exception{ +ResumableSub_MejorarPrecisionGPS rsub = new ResumableSub_MejorarPrecisionGPS(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_MejorarPrecisionGPS extends BA.ResumableSub { +public ResumableSub_MejorarPrecisionGPS(gunav2.keymon.com.mx.c_cliente parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_cliente parent; +int _i = 0; +anywheresoftware.b4a.gps.LocationWrapper _loc = null; +int step2; +int limit2; + +@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 = 1383;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP2\")"; +parent.__c.CallSubDelayed(ba,(Object)(parent._tracker.getObject()),"StartFLP2"); + //BA.debugLineNum = 1385;BA.debugLine="For i = 1 To 10"; +if (true) break; + +case 1: +//for +this.state = 12; +step2 = 1; +limit2 = (int) (10); +_i = (int) (1) ; +this.state = 13; +if (true) break; + +case 13: +//C +this.state = 12; +if ((step2 > 0 && _i <= limit2) || (step2 < 0 && _i >= limit2)) this.state = 3; +if (true) break; + +case 14: +//C +this.state = 13; +_i = ((int)(0 + _i + step2)) ; +if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 1386;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 15; +return; +case 15: +//C +this.state = 4; +; + //BA.debugLineNum = 1387;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialize"; +if (true) break; + +case 4: +//if +this.state = 11; +if (parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { +this.state = 6; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 1388;BA.debugLine="Dim loc As Location = Tracker.FLP.GetLastKnownL"; +_loc = new anywheresoftware.b4a.gps.LocationWrapper(); +_loc = parent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation(); + //BA.debugLineNum = 1389;BA.debugLine="If loc.Accuracy < 25 Then ' Buena precisión"; +if (true) break; + +case 7: +//if +this.state = 10; +if (_loc.getAccuracy()<25) { +this.state = 9; +}if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 1390;BA.debugLine="Return True"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;}; + if (true) break; + +case 10: +//C +this.state = 11; +; + if (true) break; + +case 11: +//C +this.state = 14; +; + if (true) break; +if (true) break; + +case 12: +//C +this.state = -1; +; + //BA.debugLineNum = 1394;BA.debugLine="Return False ' No se logró buena precisión"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 1395;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _muestraboton(anywheresoftware.b4a.objects.ButtonWrapper _thisbutton,String _thetext,String _thetag,int _left,int _top,int _width,int _height) throws Exception{ + //BA.debugLineNum = 6475;BA.debugLine="Sub muestraBoton (thisButton As Button, theText As"; + //BA.debugLineNum = 6476;BA.debugLine="thisButton.Text = theText"; +_thisbutton.setText(BA.ObjectToCharSequence(_thetext)); + //BA.debugLineNum = 6477;BA.debugLine="thisButton.Tag = theTag"; +_thisbutton.setTag((Object)(_thetag)); + //BA.debugLineNum = 6478;BA.debugLine="thisButton.Left = Left"; +_thisbutton.setLeft(_left); + //BA.debugLineNum = 6479;BA.debugLine="thisButton.Top = Top"; +_thisbutton.setTop(_top); + //BA.debugLineNum = 6480;BA.debugLine="thisButton.Width = width"; +_thisbutton.setWidth(_width); + //BA.debugLineNum = 6481;BA.debugLine="thisButton.Height = height"; +_thisbutton.setHeight(_height); + //BA.debugLineNum = 6482;BA.debugLine="thisButton.Visible = True"; +_thisbutton.setVisible(__c.True); + //BA.debugLineNum = 6483;BA.debugLine="End Sub"; +return ""; +} +public String _muestrabotoncentrado(anywheresoftware.b4a.objects.ButtonWrapper _thisbutton,String _thetext,String _thetag,int _top,int _width,int _height) throws Exception{ +int _anchopantalla = 0; + //BA.debugLineNum = 6486;BA.debugLine="Sub muestraBotonCentrado (thisButton As Button, th"; + //BA.debugLineNum = 6487;BA.debugLine="Private anchoPantalla As Int"; +_anchopantalla = 0; + //BA.debugLineNum = 6488;BA.debugLine="thisButton.Text = theText"; +_thisbutton.setText(BA.ObjectToCharSequence(_thetext)); + //BA.debugLineNum = 6489;BA.debugLine="thisButton.Tag = theTag"; +_thisbutton.setTag((Object)(_thetag)); + //BA.debugLineNum = 6490;BA.debugLine="anchoPantalla = GetDeviceLayoutValues.Width"; +_anchopantalla = __c.GetDeviceLayoutValues(ba).Width; + //BA.debugLineNum = 6491;BA.debugLine="thisButton.Left = (anchoPantalla/2) - (width/2)"; +_thisbutton.setLeft((int) ((_anchopantalla/(double)2)-(_width/(double)2))); + //BA.debugLineNum = 6492;BA.debugLine="thisButton.Top = Top"; +_thisbutton.setTop(_top); + //BA.debugLineNum = 6493;BA.debugLine="thisButton.Width = width"; +_thisbutton.setWidth(_width); + //BA.debugLineNum = 6494;BA.debugLine="thisButton.Height = height"; +_thisbutton.setHeight(_height); + //BA.debugLineNum = 6495;BA.debugLine="thisButton.Visible = True"; +_thisbutton.setVisible(__c.True); + //BA.debugLineNum = 6496;BA.debugLine="End Sub"; +return ""; +} +public String _muestraencuesta() throws Exception{ + //BA.debugLineNum = 6395;BA.debugLine="Sub muestraEncuesta"; + //BA.debugLineNum = 6396;BA.debugLine="Log(\"Muestra Encuesta\")"; +__c.LogImpl("324051713","Muestra Encuesta",0); + //BA.debugLineNum = 6397;BA.debugLine="p_encuesta.Top = 0"; +_p_encuesta.setTop((int) (0)); + //BA.debugLineNum = 6398;BA.debugLine="p_encuesta.left = 0"; +_p_encuesta.setLeft((int) (0)); + //BA.debugLineNum = 6399;BA.debugLine="p_encuesta.Height = GetDeviceLayoutValues.Height"; +_p_encuesta.setHeight(__c.GetDeviceLayoutValues(ba).Height); + //BA.debugLineNum = 6400;BA.debugLine="p_encuesta.Width = GetDeviceLayoutValues.Width"; +_p_encuesta.setWidth(__c.GetDeviceLayoutValues(ba).Width); + //BA.debugLineNum = 6401;BA.debugLine="p_encuesta.SetVisibleAnimated(200, True)"; +_p_encuesta.SetVisibleAnimated((int) (200),__c.True); + //BA.debugLineNum = 6402;BA.debugLine="p_encuesta.Elevation = 90 'ignore"; +_p_encuesta.setElevation((float) (90)); + //BA.debugLineNum = 6403;BA.debugLine="p_encuesta.BringToFront"; +_p_encuesta.BringToFront(); + //BA.debugLineNum = 6406;BA.debugLine="End Sub"; +return ""; +} +public String _nuevo_click() throws Exception{ + //BA.debugLineNum = 3057;BA.debugLine="Sub NUEVO_Click"; + //BA.debugLineNum = 3058;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")"; +_b4xpages._showpage /*String*/ (ba,"NuevoCliente"); + //BA.debugLineNum = 3059;BA.debugLine="End Sub"; +return ""; +} +public String _ocultapanelencuesta() throws Exception{ + //BA.debugLineNum = 6409;BA.debugLine="Sub ocultaPanelEncuesta"; + //BA.debugLineNum = 6411;BA.debugLine="b_encuesta_1.Visible = False"; +_b_encuesta_1.setVisible(__c.False); + //BA.debugLineNum = 6412;BA.debugLine="b_encuesta_2.Visible = False"; +_b_encuesta_2.setVisible(__c.False); + //BA.debugLineNum = 6413;BA.debugLine="b_encuesta_3.Visible = False"; +_b_encuesta_3.setVisible(__c.False); + //BA.debugLineNum = 6414;BA.debugLine="p_encuesta.Visible = False"; +_p_encuesta.setVisible(__c.False); + //BA.debugLineNum = 6417;BA.debugLine="End Sub"; +return ""; +} +public String _openpdf(String _afile) throws Exception{ +anywheresoftware.b4a.objects.IntentWrapper _in = null; + //BA.debugLineNum = 7291;BA.debugLine="private Sub openPDF(afile As String)"; + //BA.debugLineNum = 7296;BA.debugLine="Dim in As Intent"; +_in = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 7297;BA.debugLine="in.Initialize(in.ACTION_VIEW, \"\")"; +_in.Initialize(_in.ACTION_VIEW,""); + //BA.debugLineNum = 7298;BA.debugLine="Starter.ffileProvider.SetFileUriAsIntentData(in,"; +_starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._setfileuriasintentdata /*String*/ (_in,_afile); + //BA.debugLineNum = 7299;BA.debugLine="in.SetComponent(\"android/com.android.internal.app"; +_in.SetComponent("android/com.android.internal.app.ResolverActivity"); + //BA.debugLineNum = 7300;BA.debugLine="in.SetType(\"application/pdf\")"; +_in.SetType("application/pdf"); + //BA.debugLineNum = 7301;BA.debugLine="StartActivity(in)"; +__c.StartActivity(ba,(Object)(_in.getObject())); + //BA.debugLineNum = 7306;BA.debugLine="End Sub"; +return ""; +} +public String _p_atiende_click() throws Exception{ + //BA.debugLineNum = 7954;BA.debugLine="Private Sub p_atiende_Click"; + //BA.debugLineNum = 7956;BA.debugLine="End Sub"; +return ""; +} +public String _p_camara_click() throws Exception{ + //BA.debugLineNum = 7762;BA.debugLine="Private Sub p_camara_Click"; + //BA.debugLineNum = 7764;BA.debugLine="End Sub"; +return ""; +} +public String _p_cliente__click() throws Exception{ + //BA.debugLineNum = 7802;BA.debugLine="Private Sub p_cliente__Click"; + //BA.debugLineNum = 7804;BA.debugLine="End Sub"; +return ""; +} +public String _p_cliente_click() throws Exception{ + //BA.debugLineNum = 4695;BA.debugLine="Private Sub p_cliente_Click"; + //BA.debugLineNum = 4697;BA.debugLine="End Sub"; +return ""; +} +public String _p_comentario_click() throws Exception{ + //BA.debugLineNum = 7569;BA.debugLine="Private Sub p_comentario_Click"; + //BA.debugLineNum = 7571;BA.debugLine="End Sub"; +return ""; +} +public String _p_comentarios_click() throws Exception{ + //BA.debugLineNum = 7573;BA.debugLine="Private Sub p_comentarios_Click"; + //BA.debugLineNum = 7575;BA.debugLine="End Sub"; +return ""; +} +public String _p_deuda_click() throws Exception{ + //BA.debugLineNum = 7868;BA.debugLine="Private Sub p_deuda_Click"; + //BA.debugLineNum = 7869;BA.debugLine="p_deuda.Visible = False"; +_p_deuda.setVisible(__c.False); + //BA.debugLineNum = 7870;BA.debugLine="End Sub"; +return ""; +} +public String _p_encuesta_click() throws Exception{ + //BA.debugLineNum = 6510;BA.debugLine="Private Sub p_encuesta_Click"; + //BA.debugLineNum = 6512;BA.debugLine="End Sub"; +return ""; +} +public String _p_modulo5_click() throws Exception{ + //BA.debugLineNum = 5684;BA.debugLine="Private Sub p_modulo5_Click"; + //BA.debugLineNum = 5686;BA.debugLine="End Sub"; +return ""; +} +public String _p_pidegeopass_click() throws Exception{ + //BA.debugLineNum = 1895;BA.debugLine="Private Sub p_pideGeoPass_Click"; + //BA.debugLineNum = 1897;BA.debugLine="End Sub"; +return ""; +} +public String _p_telefono_click() throws Exception{ + //BA.debugLineNum = 8005;BA.debugLine="Private Sub p_telefono_Click"; + //BA.debugLineNum = 8007;BA.debugLine="End Sub"; +return ""; +} +public String _p_transparenteiniciofin_click() throws Exception{ + //BA.debugLineNum = 6725;BA.debugLine="Private Sub p_transparenteInicioFin_Click"; + //BA.debugLineNum = 6727;BA.debugLine="End Sub"; +return ""; +} +public String _p_transparentepdf_click() throws Exception{ + //BA.debugLineNum = 7489;BA.debugLine="Private Sub p_transparentePDF_Click"; + //BA.debugLineNum = 7491;BA.debugLine="End Sub"; +return ""; +} +public String _p_transparenteticketimpreso_click() throws Exception{ + //BA.debugLineNum = 6733;BA.debugLine="Private Sub p_transparenteTicketImpreso_Click"; + //BA.debugLineNum = 6735;BA.debugLine="End Sub"; +return ""; +} +public String _p6_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5505;BA.debugLine="Private Sub p6_TextChanged (Old As String, New As"; + //BA.debugLineNum = 5506;BA.debugLine="If p6.Text.Length > 2 Then"; +if (_p6.getText().length()>2) { + //BA.debugLineNum = 5507;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido1\",\"A"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido1"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5508;BA.debugLine="p6.Text = \"\""; +_p6.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5510;BA.debugLine="End Sub"; +return ""; +} +public String _p7_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5514;BA.debugLine="Private Sub p7_TextChanged (Old As String, New As"; + //BA.debugLineNum = 5515;BA.debugLine="If p7.Text.Length > 2 Then"; +if (_p7.getText().length()>2) { + //BA.debugLineNum = 5516;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido2\",\"A"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido2"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5517;BA.debugLine="p7.Text = \"\""; +_p7.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5519;BA.debugLine="End Sub"; +return ""; +} +public String _p8_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 5523;BA.debugLine="Private Sub p8_TextChanged (Old As String, New As"; + //BA.debugLineNum = 5524;BA.debugLine="If p8.Text.Length > 2 Then"; +if (_p8.getText().length()>2) { + //BA.debugLineNum = 5526;BA.debugLine="Msgbox(\"Valida tu respuesta, dato no valido3\",\"A"; +__c.Msgbox(BA.ObjectToCharSequence("Valida tu respuesta, dato no valido3"),BA.ObjectToCharSequence("Aviso"),ba); + //BA.debugLineNum = 5527;BA.debugLine="p8.Text = \"\""; +_p8.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 5529;BA.debugLine="End Sub"; +return ""; +} +public String _panel10_click() throws Exception{ + //BA.debugLineNum = 6506;BA.debugLine="Private Sub Panel10_Click"; + //BA.debugLineNum = 6508;BA.debugLine="End Sub"; +return ""; +} +public String _panel4_click() throws Exception{ + //BA.debugLineNum = 5688;BA.debugLine="Private Sub Panel4_Click"; + //BA.debugLineNum = 5690;BA.debugLine="End Sub"; +return ""; +} +public String _panel5_click() throws Exception{ + //BA.debugLineNum = 4699;BA.debugLine="Private Sub Panel5_Click"; + //BA.debugLineNum = 4701;BA.debugLine="End Sub"; +return ""; +} +public String _pdfgenerar() throws Exception{ +gunav2.keymon.com.mx.cpdf _pdf = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s56 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s57 = null; +double _pagina = 0; +int _multiplicador = 0; +int _i = 0; +int _e = 0; +String _subtot = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; + //BA.debugLineNum = 6759;BA.debugLine="Private Sub PDFGENERAR"; + //BA.debugLineNum = 6760;BA.debugLine="ESPACIO = 0"; +_espacio = (int) (0); + //BA.debugLineNum = 6762;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 6763;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 6764;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 6765;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 6766;BA.debugLine="Dim PDF As cPDF"; +_pdf = new gunav2.keymon.com.mx.cpdf(); + //BA.debugLineNum = 6768;BA.debugLine="PDF.Initialize(\"mm\")"; +_pdf._initialize /*gunav2.keymon.com.mx.cpdf*/ (ba,"mm"); + //BA.debugLineNum = 6770;BA.debugLine="PDF.sProperty(PDF.PropertyAuthor,\"Keymonsoft\"). _"; +_pdf._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertyauthor /*String*/ ,"Keymonsoft")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertytitle /*String*/ ,"Ticket")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertykeywords /*String*/ ,"B4X,PDF,Cross platform"); + //BA.debugLineNum = 6777;BA.debugLine="Dim s56 As Cursor=skmt.ExecQuery2(\"select PE_PRON"; +_s56 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s56 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU,IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC,PE_CANT * PE_COSTOU AS PE_COSTO_TOT,PE_CANT * IFNULL(PE_RECALCULO,0) AS PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 6778;BA.debugLine="Dim s57 As Cursor = skmt.ExecQuery2(\"select PE_PR"; +_s57 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s57 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU,IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC,PE_CANT * PE_COSTOU AS PE_COSTO_TOT,PE_CANT * IFNULL(PE_RECALCULO,0) AS PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 6780;BA.debugLine="Dim pagina As Double = ((18 + (s56.RowCount*2) +"; +_pagina = ((18+(_s56.getRowCount()*2)+(_s57.getRowCount()*2))*(6))+25; + //BA.debugLineNum = 6782;BA.debugLine="Dim multiplicador As Int = 0"; +_multiplicador = (int) (0); + //BA.debugLineNum = 6783;BA.debugLine="PDF.pageAdd(-300,pagina)"; +_pdf._pageadd /*gunav2.keymon.com.mx.cpdf*/ (-300,_pagina); + //BA.debugLineNum = 6786;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBlack)"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6788;BA.debugLine="PDF.outImage(xui.DefaultFolder,\"guna-fondo.jpg\",1"; +_pdf._outimage /*gunav2.keymon.com.mx.cpdf*/ (_xui.getDefaultFolder(),"guna-fondo.jpg",1,_pagina-45,45,0); + //BA.debugLineNum = 6789;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6790;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"GUNA\")"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"GUNA"); + //BA.debugLineNum = 6791;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6792;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,sDate& \" \" &"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_sdate+" "+_stime); + //BA.debugLineNum = 6793;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6794;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Vendedor:\""; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Vendedor:"+_subs._traeusuariodebd /*String*/ (ba)); + //BA.debugLineNum = 6795;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6796;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Tienda: \" &"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Tienda: "+_la_nombre.getText()); + //BA.debugLineNum = 6797;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6798;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"ID.Cliente:"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"ID.Cliente: "+_la_cuenta.getText()); + //BA.debugLineNum = 6799;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6800;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Calle: \" &"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Calle: "+_la_calle.getText()); + //BA.debugLineNum = 6801;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6802;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Colonia: \""; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Colonia: "+_la_col.getText()); + //BA.debugLineNum = 6803;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6804;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 6805;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6806;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 6807;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 6808;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 6811;BA.debugLine="If ALMACEN = 88 Then"; +if ((_almacen).equals(BA.NumberToString(88))) { + //BA.debugLineNum = 6813;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU,IFNULL(PE_RECALCULO,0) AS PE_RECALCULO, length(PE_COSTOU) as L_COSTOU, length(Ifnull(PE_RECALCULO,0)) as L_COSTOREC,PE_CANT * PE_COSTOU AS PE_COSTO_TOT,PE_CANT * IFNULL(PE_RECALCULO,0) AS PE_COSTO_TOTREC, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,length(PE_CANT * IFNULL(PE_RECALCULO,0)) as L_COSTO_TOTREC,PE_PROID, PE_CEDIS, PE_RECCANT FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 6814;BA.debugLine="If S.RowCount>0 Then"; +if (_s.getRowCount()>0) { + //BA.debugLineNum = 6815;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6816;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"------------------------------------PREVENTA-----------------------------------------"); + //BA.debugLineNum = 6817;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6818;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant."; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant. Precio Importe"); + //BA.debugLineNum = 6819;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6820;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 6821;BA.debugLine="For i=0 To S.RowCount -1"; +{ +final int step45 = 1; +final int limit45 = (int) (_s.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit45 ;_i = _i + step45 ) { + //BA.debugLineNum = 6822;BA.debugLine="S.Position=i"; +_s.setPosition(_i); + //BA.debugLineNum = 6824;BA.debugLine="If s.GetDouble(\"PE_RECALCULO\") = 0 Then"; +if (_s.GetDouble("PE_RECALCULO")==0) { + //BA.debugLineNum = 6825;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 6826;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6827;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 6829;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6830;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6831;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 6835;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT")); + //BA.debugLineNum = 6836;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 6837;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 6838;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 6839;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 6840;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step60 = 1; +final int limit60 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit60 ;_e = _e + step60 ) { + //BA.debugLineNum = 6841;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 6843;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6844;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6845;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GET"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT")); + }; + }else if(_s.GetDouble("PE_CANT")==_s.GetDouble("PE_RECCANT")) { + //BA.debugLineNum = 6851;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 6852;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6853;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 6855;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6856;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6857;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 6861;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOREC")+_s.GetLong("L_COSTO_TOTREC")); + //BA.debugLineNum = 6862;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 6863;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 6864;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 6865;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 6866;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step80 = 1; +final int limit80 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit80 ;_e = _e + step80 ) { + //BA.debugLineNum = 6867;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 6869;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6870;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6871;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GET"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_RECALCULO")+_blanco+_s.GetString("PE_COSTO_TOTREC")); + }; + }else if(_s.GetDouble("PE_CANT")!=_s.GetDouble("PE_RECCANT")) { + //BA.debugLineNum = 6879;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 6880;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6881;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 6883;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6884;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6885;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 6886;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOREC")+_s.GetLong("L_COSTO_TOTREC")); + //BA.debugLineNum = 6887;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 6888;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 6889;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 6890;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 6891;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step100 = 1; +final int limit100 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit100 ;_e = _e + step100 ) { + //BA.debugLineNum = 6892;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 6894;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6895;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6896;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GET"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_RECCANT")+_blanco+_s.GetString("PE_RECALCULO")+_blanco+__c.NumberFormat2(((double)(Double.parseDouble(_s.GetString("PE_RECCANT")))*(double)(Double.parseDouble(_s.GetString("PE_RECALCULO")))),(int) (1),(int) (2),(int) (2),__c.False)); + }; + //BA.debugLineNum = 6900;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 6901;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6902;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 6904;BA.debugLine="Private subTot As String = (s.GETSTRING(\"PE"; +_subtot = BA.NumberToString(((double)(Double.parseDouble(_s.GetString("PE_CANT")))-(double)(Double.parseDouble(_s.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_s.GetString("PE_COSTOU")))); + //BA.debugLineNum = 6905;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBl"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6906;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6907;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 6908;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOTREC")); + //BA.debugLineNum = 6909;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 6910;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 6911;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 6912;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 6913;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step120 = 1; +final int limit120 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit120 ;_e = _e + step120 ) { + //BA.debugLineNum = 6914;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 6916;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorB"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6917;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6918;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, (s.GE"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,BA.NumberToString(((double)(Double.parseDouble(_s.GetString("PE_CANT")))-(double)(Double.parseDouble(_s.GetString("PE_RECCANT")))))+_blanco+_s.GetString("PE_COSTOU")+_blanco+__c.NumberFormat2((double)(Double.parseDouble(_subtot)),(int) (1),(int) (2),(int) (2),__c.False)); + }; + }; + } +}; + //BA.debugLineNum = 6924;BA.debugLine="PDF.outtext(1,108-9*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,108-9*6," "); + }; + //BA.debugLineNum = 6926;BA.debugLine="s.Close"; +_s.Close(); + }else { + //BA.debugLineNum = 6929;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 6930;BA.debugLine="If S.RowCount>0 Then"; +if (_s.getRowCount()>0) { + //BA.debugLineNum = 6931;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6932;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"------------------------------------PREVENTA-----------------------------------------"); + //BA.debugLineNum = 6933;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6934;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant."; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant. Precio Importe"); + //BA.debugLineNum = 6935;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6936;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 6937;BA.debugLine="For i=0 To S.RowCount -1"; +{ +final int step141 = 1; +final int limit141 = (int) (_s.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit141 ;_i = _i + step141 ) { + //BA.debugLineNum = 6938;BA.debugLine="S.Position=i"; +_s.setPosition(_i); + //BA.debugLineNum = 6939;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 6940;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6941;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 6943;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBla"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6944;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6945;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 6949;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT")); + //BA.debugLineNum = 6950;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 6951;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 6952;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 6953;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 6954;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step155 = 1; +final int limit155 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit155 ;_e = _e + step155 ) { + //BA.debugLineNum = 6955;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 6957;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBl"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6958;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6959;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT")); + }; + } +}; + //BA.debugLineNum = 6965;BA.debugLine="PDF.outtext(1,108-9*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,108-9*6," "); + }; + //BA.debugLineNum = 6967;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 6968;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 6969;BA.debugLine="If S.RowCount>0 Then"; +if (_s.getRowCount()>0) { + //BA.debugLineNum = 6970;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6971;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------PROMOS PREVENTA-------------------------------------"); + //BA.debugLineNum = 6972;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6973;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant."; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant. Precio Importe"); + //BA.debugLineNum = 6974;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6975;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"--------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 6976;BA.debugLine="For i=0 To S.RowCount -1"; +{ +final int step174 = 1; +final int limit174 = (int) (_s.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit174 ;_i = _i + step174 ) { + //BA.debugLineNum = 6977;BA.debugLine="S.Position=i"; +_s.setPosition(_i); + //BA.debugLineNum = 6978;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 6979;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6980;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 6982;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBla"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6983;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6984;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetSt"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 6985;BA.debugLine="LogColor(s.GetLong(\"L_CANT\"),Colors.Magenta)"; +__c.LogImpl("325493730",BA.NumberToString(_s.GetLong("L_CANT")),__c.Colors.Magenta); + //BA.debugLineNum = 6986;BA.debugLine="LogColor(s.GetLong(\"L_COSTOU\"),Colors.Magent"; +__c.LogImpl("325493731",BA.NumberToString(_s.GetLong("L_COSTOU")),__c.Colors.Magenta); + //BA.debugLineNum = 6987;BA.debugLine="LogColor(s.GetLong(\"L_COSTO_TOT\"),Colors.Mag"; +__c.LogImpl("325493732",BA.NumberToString(_s.GetLong("L_COSTO_TOT")),__c.Colors.Magenta); + //BA.debugLineNum = 6988;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT")); + //BA.debugLineNum = 6989;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 6990;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 6991;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 6992;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 6993;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step191 = 1; +final int limit191 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit191 ;_e = _e + step191 ) { + //BA.debugLineNum = 6994;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 6996;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBl"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 6997;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 6998;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETS"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT")); + }; + } +}; + }; + }; + //BA.debugLineNum = 7004;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 7007;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7008;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7009;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7010;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7019;BA.debugLine="s=skmt.ExecQuery(\"select SUM(PE_COSTO_TOT) AS TO"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 7020;BA.debugLine="s.Position =0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 7021;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7022;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Subtotal p"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Subtotal preventa: $"+_s.GetString("TOTAL")); + //BA.debugLineNum = 7024;BA.debugLine="c= skmt.ExecQuery2(\"select sum(PE_CANT) as PC_NO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_FOLIO = ?",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7025;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 7026;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7027;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total arti"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total articulos preventa: "+_c.GetString("PC_NOART")); + //BA.debugLineNum = 7030;BA.debugLine="Dim s3 As Cursor =skmt.ExecQuery(\"select IFNULL("; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select IFNULL(SUM(PE_COSTO_TOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) = 0"))); + //BA.debugLineNum = 7031;BA.debugLine="s3.Position =0"; +_s3.setPosition((int) (0)); + //BA.debugLineNum = 7032;BA.debugLine="S2=skmt.ExecQuery(\"select IFNULL(SUM(PE_RECALCUL"; +_s2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery("select IFNULL(SUM(PE_RECALCULOTOT),0) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and IFNULL(PE_RECALCULO,0) <> 0"))); + //BA.debugLineNum = 7033;BA.debugLine="S2.Position =0"; +_s2.setPosition((int) (0)); + //BA.debugLineNum = 7035;BA.debugLine="If NumberFormat2((s3.GetString(\"TOTAL\") + S2.Get"; +if ((__c.NumberFormat2(((double)(Double.parseDouble(_s3.GetString("TOTAL")))+(double)(Double.parseDouble(_s2.GetString("TOTAL")))),(int) (0),(int) (2),(int) (2),__c.False)).equals(_s.GetString("TOTAL")) == false) { + //BA.debugLineNum = 7036;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7037;BA.debugLine="Log(s.GetString(\"TOTAL\") & \"|\" & Subs.calculaTo"; +__c.LogImpl("325493782",_s.GetString("TOTAL")+"|"+_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)),0); + //BA.debugLineNum = 7038;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Descuento"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Descuento: $"+__c.NumberFormat2((double)(Double.parseDouble(_s.GetString("TOTAL")))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False)); + }; + //BA.debugLineNum = 7041;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7043;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total Prev"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total Preventa: $"+__c.NumberFormat2((double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))),(int) (0),(int) (2),(int) (2),__c.False)); + }; + //BA.debugLineNum = 7051;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7052;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7053;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7054;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------ESTE TICKET NO ES UN ---------------------------"); + //BA.debugLineNum = 7055;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7056;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-------------------COMPROBANTE FISCAL, SOLO ES--------------------"); + //BA.debugLineNum = 7057;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7058;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"---------------------------------INFORMATIVO-----------------------------------"); + //BA.debugLineNum = 7059;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7060;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7061;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7062;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7063;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7064;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7065;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7066;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7067;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7068;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7069;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7070;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7071;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7072;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7082;BA.debugLine="DateTime.DateFormat = \"ddmmyyyy\""; +__c.DateTime.setDateFormat("ddmmyyyy"); + //BA.debugLineNum = 7083;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 7084;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 7085;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 7086;BA.debugLine="archivoTicketPDF = sDate&sTime&\".pdf\""; +_archivoticketpdf = _sdate+_stime+".pdf"; + //BA.debugLineNum = 7088;BA.debugLine="savePDF(PDF, archivoTicketPDF, PDF.CompressAlways"; +_savepdf(_pdf,_archivoticketpdf,_pdf._compressalways /*int*/ ); + //BA.debugLineNum = 7091;BA.debugLine="End Sub"; +return ""; +} +public String _pdfgenerar2() throws Exception{ +gunav2.keymon.com.mx.cpdf _pdf = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s56 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s57 = null; +double _pagina = 0; +int _multiplicador = 0; +int _i = 0; +int _e = 0; + //BA.debugLineNum = 7093;BA.debugLine="Private Sub PDFGENERAR2"; + //BA.debugLineNum = 7094;BA.debugLine="ESPACIO = 0"; +_espacio = (int) (0); + //BA.debugLineNum = 7095;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 7096;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 7097;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 7098;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 7099;BA.debugLine="Dim PDF As cPDF"; +_pdf = new gunav2.keymon.com.mx.cpdf(); + //BA.debugLineNum = 7101;BA.debugLine="PDF.Initialize(\"mm\")"; +_pdf._initialize /*gunav2.keymon.com.mx.cpdf*/ (ba,"mm"); + //BA.debugLineNum = 7103;BA.debugLine="PDF.sProperty(PDF.PropertyAuthor,\"Keymonsoft\"). _"; +_pdf._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertyauthor /*String*/ ,"Keymonsoft")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertytitle /*String*/ ,"Ticket")._sproperty /*gunav2.keymon.com.mx.cpdf*/ (_pdf._propertykeywords /*String*/ ,"B4X,PDF,Cross platform"); + //BA.debugLineNum = 7108;BA.debugLine="Dim s56 As Cursor=skmt.ExecQuery2(\"select PE_PRON"; +_s56 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s56 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7109;BA.debugLine="Dim s57 As Cursor = skmt.ExecQuery2(\"select PE_PR"; +_s57 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s57 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7111;BA.debugLine="Dim pagina As Double = ((18 + (s56.RowCount*2) +"; +_pagina = ((18+(_s56.getRowCount()*2)+(_s57.getRowCount()*2))*(6))+12; + //BA.debugLineNum = 7113;BA.debugLine="Dim multiplicador As Int = 0"; +_multiplicador = (int) (0); + //BA.debugLineNum = 7114;BA.debugLine="PDF.pageAdd(-300,pagina)"; +_pdf._pageadd /*gunav2.keymon.com.mx.cpdf*/ (-300,_pagina); + //BA.debugLineNum = 7117;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBlack)"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 7119;BA.debugLine="PDF.outImage(xui.DefaultFolder,\"guna-fondo.jpg\",1"; +_pdf._outimage /*gunav2.keymon.com.mx.cpdf*/ (_xui.getDefaultFolder(),"guna-fondo.jpg",1,_pagina-45,45,0); + //BA.debugLineNum = 7120;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7121;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"GUNA\")"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"GUNA"); + //BA.debugLineNum = 7122;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7123;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,sDate& \" \" &"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_sdate+" "+_stime); + //BA.debugLineNum = 7124;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7125;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Vendedor:\""; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Vendedor:"+_subs._traeusuariodebd /*String*/ (ba)); + //BA.debugLineNum = 7126;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7127;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Tienda: \" &"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Tienda: "+_la_nombre.getText()); + //BA.debugLineNum = 7128;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7129;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"ID.Cliente:"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"ID.Cliente: "+_la_cuenta.getText()); + //BA.debugLineNum = 7130;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7131;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Calle: \" &"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Calle: "+_la_calle.getText()); + //BA.debugLineNum = 7132;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7133;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Colonia: \""; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Colonia: "+_la_col.getText()); + //BA.debugLineNum = 7134;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7135;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7136;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7137;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \")"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7138;BA.debugLine="c = skmt.ExecQuery2(\"SELECT * FROM PEDIDO WHERE P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("SELECT * FROM PEDIDO WHERE PE_FOLIO = ?",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7139;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 7140;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) < 4 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PROID",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7141;BA.debugLine="If S.RowCount>0 Then"; +if (_s.getRowCount()>0) { + //BA.debugLineNum = 7142;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7143;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"------------------------------------PREVENTA-----------------------------------------"); + //BA.debugLineNum = 7144;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7145;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant."; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant. Precio Importe"); + //BA.debugLineNum = 7146;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7147;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7148;BA.debugLine="For i=0 To S.RowCount -1"; +{ +final int step44 = 1; +final int limit44 = (int) (_s.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit44 ;_i = _i + step44 ) { + //BA.debugLineNum = 7149;BA.debugLine="S.Position=i"; +_s.setPosition(_i); + //BA.debugLineNum = 7150;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 7151;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7152;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 7154;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBlac"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 7155;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7156;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 7160;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_C"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT")); + //BA.debugLineNum = 7161;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 7162;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 7163;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 7164;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 7165;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step58 = 1; +final int limit58 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit58 ;_e = _e + step58 ) { + //BA.debugLineNum = 7166;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 7168;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBla"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 7169;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7170;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETST"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT")); + }; + } +}; + //BA.debugLineNum = 7176;BA.debugLine="PDF.outtext(1,108-9*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,108-9*6," "); + }; + //BA.debugLineNum = 7178;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 7179;BA.debugLine="s=skmt.ExecQuery2(\"select PE_PRONOMBRE, PE_CANT,"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select PE_PRONOMBRE, PE_CANT, length(pe_cant) as L_CANT, PE_COSTOU, length(PE_COSTOU) as L_COSTOU,PE_CANT * PE_COSTOU AS PE_COSTO_TOT, length(PE_CANT * PE_COSTOU) as L_COSTO_TOT,PE_PROID, PE_CEDIS FROM PEDIDO WHERE PE_FOLIO = ? AND LENGTH(PE_CEDIS) > 3 AND PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_COSTOU",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7180;BA.debugLine="If S.RowCount>0 Then"; +if (_s.getRowCount()>0) { + //BA.debugLineNum = 7181;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7182;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------PROMOS PREVENTA-------------------------------------"); + //BA.debugLineNum = 7183;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7184;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Cant."; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Cant. Precio Importe"); + //BA.debugLineNum = 7185;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7186;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"---------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7187;BA.debugLine="For i=0 To S.RowCount -1"; +{ +final int step77 = 1; +final int limit77 = (int) (_s.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit77 ;_i = _i + step77 ) { + //BA.debugLineNum = 7188;BA.debugLine="S.Position=i"; +_s.setPosition(_i); + //BA.debugLineNum = 7189;BA.debugLine="If s.GetString(\"PE_CEDIS\") = s.GetString(\"PE_P"; +if ((_s.GetString("PE_CEDIS")).equals(_s.GetString("PE_PROID"))) { + //BA.debugLineNum = 7190;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7191;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + }else { + //BA.debugLineNum = 7193;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,7,PDF.colorBlac"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),7,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 7194;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7195;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,s.GetStr"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_PRONOMBRE")); + //BA.debugLineNum = 7196;BA.debugLine="LogColor(s.GetLong(\"L_CANT\"),Colors.Magenta)"; +__c.LogImpl("325559143",BA.NumberToString(_s.GetLong("L_CANT")),__c.Colors.Magenta); + //BA.debugLineNum = 7197;BA.debugLine="LogColor(s.GetLong(\"L_COSTOU\"),Colors.Magenta"; +__c.LogImpl("325559144",BA.NumberToString(_s.GetLong("L_COSTOU")),__c.Colors.Magenta); + //BA.debugLineNum = 7198;BA.debugLine="LogColor(s.GetLong(\"L_COSTO_TOT\"),Colors.Mage"; +__c.LogImpl("325559145",BA.NumberToString(_s.GetLong("L_COSTO_TOT")),__c.Colors.Magenta); + //BA.debugLineNum = 7199;BA.debugLine="TAMANO = s.GetLong(\"L_CANT\") + s.GetLong(\"L_C"; +_tamano = (int) (_s.GetLong("L_CANT")+_s.GetLong("L_COSTOU")+_s.GetLong("L_COSTO_TOT")); + //BA.debugLineNum = 7200;BA.debugLine="ESPACIO = 92"; +_espacio = (int) (92); + //BA.debugLineNum = 7201;BA.debugLine="BLANCO = \" \""; +_blanco = " "; + //BA.debugLineNum = 7202;BA.debugLine="ESPACIO = ESPACIO - TAMANO"; +_espacio = (int) (_espacio-_tamano); + //BA.debugLineNum = 7203;BA.debugLine="ESPACIO = ESPACIO / 2"; +_espacio = (int) (_espacio/(double)2); + //BA.debugLineNum = 7204;BA.debugLine="For E=0 To ESPACIO -1"; +{ +final int step94 = 1; +final int limit94 = (int) (_espacio-1); +_e = (int) (0) ; +for (;_e <= limit94 ;_e = _e + step94 ) { + //BA.debugLineNum = 7205;BA.debugLine="BLANCO = \" \" & BLANCO"; +_blanco = " "+_blanco; + } +}; + //BA.debugLineNum = 7207;BA.debugLine="PDF.sFont(PDF.fontHelvetica,0,10,PDF.colorBla"; +_pdf._sfont /*gunav2.keymon.com.mx.cpdf*/ (_pdf._fonthelvetica /*String*/ ,(int) (0),10,_pdf._colorblack /*double[]*/ ); + //BA.debugLineNum = 7208;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7209;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6, s.GETST"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,_s.GetString("PE_CANT")+_blanco+_s.GetString("PE_COSTOU")+_blanco+_s.GetString("PE_COSTO_TOT")); + }; + } +}; + }; + //BA.debugLineNum = 7213;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 7216;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7217;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7218;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7219;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7220;BA.debugLine="s=skmt.ExecQuery2(\"select SUM(PE_COSTO_TOT) AS T"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select SUM(PE_COSTO_TOT) AS TOTAL FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_FOLIO = ?",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7221;BA.debugLine="s.Position =0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 7224;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7225;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Descuento:"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Descuento: $"+BA.NumberToString(150)); + //BA.debugLineNum = 7226;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7227;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total prev"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total preventa: $"+BA.NumberToString(((double)(Double.parseDouble(_s.GetString("TOTAL")))-150))); + //BA.debugLineNum = 7228;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 7229;BA.debugLine="c= skmt.ExecQuery2(\"select sum(PE_CANT) as PC_NO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select sum(PE_CANT) as PC_NOART from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_FOLIO = ?",new String[]{"PREVENTA"}))); + //BA.debugLineNum = 7230;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 7231;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7232;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"Total arti"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"Total articulos preventa: "+_c.GetString("PC_NOART")); + //BA.debugLineNum = 7233;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 7237;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7238;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7239;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7240;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"--------------------------ESTE TICKET NO ES UN ---------------------------"); + //BA.debugLineNum = 7241;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7242;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-------------------COMPROBANTE FISCAL, SOLO ES--------------------"); + //BA.debugLineNum = 7243;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7244;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"---------------------------------INFORMATIVO-----------------------------------"); + //BA.debugLineNum = 7245;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7246;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7247;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7248;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7249;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7250;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7251;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7252;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7253;BA.debugLine="multiplicador = multiplicador +1"; +_multiplicador = (int) (_multiplicador+1); + //BA.debugLineNum = 7254;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\" \" )"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6," "); + //BA.debugLineNum = 7256;BA.debugLine="PDF.outtext(1,pagina-multiplicador*6,\"-----------"; +_pdf._outtext /*gunav2.keymon.com.mx.cpdf*/ (1,_pagina-_multiplicador*6,"-----------------------------------------------------------------------------------------"); + //BA.debugLineNum = 7264;BA.debugLine="DateTime.DateFormat = \"ddmmyyyy\""; +__c.DateTime.setDateFormat("ddmmyyyy"); + //BA.debugLineNum = 7265;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 7266;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 7267;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 7268;BA.debugLine="archivoTicketPDF = sDate&sTime&\".pdf\""; +_archivoticketpdf = _sdate+_stime+".pdf"; + //BA.debugLineNum = 7270;BA.debugLine="savePDF(PDF, archivoTicketPDF, PDF.CompressAlways"; +_savepdf(_pdf,_archivoticketpdf,_pdf._compressalways /*int*/ ); + //BA.debugLineNum = 7273;BA.debugLine="End Sub"; +return ""; +} +public String _pnlplanlealtad_click() throws Exception{ + //BA.debugLineNum = 7806;BA.debugLine="Private Sub pnlPlanLealtad_Click"; + //BA.debugLineNum = 7808;BA.debugLine="End Sub"; +return ""; +} +public String _printer_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 4526;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; + //BA.debugLineNum = 4527;BA.debugLine="If Success Then"; +if (_success) { + }else { + //BA.debugLineNum = 4532;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 = 4533;BA.debugLine="StartPrinter"; +_startprinter(); + }; + }; + //BA.debugLineNum = 4536;BA.debugLine="End Sub"; +return ""; +} +public String _printer1_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 4501;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; + //BA.debugLineNum = 4503;BA.debugLine="If Success Then"; +if (_success) { + //BA.debugLineNum = 4504;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); + //BA.debugLineNum = 4505;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 = 4506;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 = 4509;BA.debugLine="impresoraConectada = True"; +_impresoraconectada = __c.True; + }else { + //BA.debugLineNum = 4513;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; +__c.LogImpl("317629196","Error conectando la impresora",__c.Colors.Red); + //BA.debugLineNum = 4514;BA.debugLine="errorImpresora = errorImpresora + 1"; +_errorimpresora = (int) (_errorimpresora+1); + //BA.debugLineNum = 4515;BA.debugLine="If errorImpresora > 1 Then"; +if (_errorimpresora>1) { + //BA.debugLineNum = 4516;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; +_starter._mac_impresora /*String*/ = "0"; + //BA.debugLineNum = 4517;BA.debugLine="errorImpresora = 0"; +_errorimpresora = (int) (0); + }; + }; + //BA.debugLineNum = 4520;BA.debugLine="End Sub"; +return ""; +} +public String _printer1_error() throws Exception{ + //BA.debugLineNum = 4522;BA.debugLine="Sub Printer1_Error"; + //BA.debugLineNum = 4523;BA.debugLine="Log(\"error printer\")"; +__c.LogImpl("317694721","error printer",0); + //BA.debugLineNum = 4524;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4759;BA.debugLine="Private Sub RadioButton1_CheckedChange(Checked As"; + //BA.debugLineNum = 4760;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4761;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319005442",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4762;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton10_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4811;BA.debugLine="Private Sub RadioButton10_CheckedChange(Checked As"; + //BA.debugLineNum = 4812;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4813;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319595266",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4814;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton11_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4816;BA.debugLine="Private Sub RadioButton11_CheckedChange(Checked As"; + //BA.debugLineNum = 4817;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4818;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319660802",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4819;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton12_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4821;BA.debugLine="Private Sub RadioButton12_CheckedChange(Checked As"; + //BA.debugLineNum = 4822;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4823;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319726338",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4824;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton13_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4826;BA.debugLine="Private Sub RadioButton13_CheckedChange(Checked As"; + //BA.debugLineNum = 4827;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4828;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319791874",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4829;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton14_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4831;BA.debugLine="Private Sub RadioButton14_CheckedChange(Checked As"; + //BA.debugLineNum = 4832;BA.debugLine="encuentasmapa.Put(\"P5\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P5"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4833;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319857410",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4834;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton15_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4751;BA.debugLine="Private Sub RadioButton15_CheckedChange(Checked As"; + //BA.debugLineNum = 4752;BA.debugLine="encuentasmapa.Put(\"P2\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P2"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4753;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("318939906",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4754;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton16_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4746;BA.debugLine="Private Sub RadioButton16_CheckedChange(Checked As"; + //BA.debugLineNum = 4747;BA.debugLine="encuentasmapa.Put(\"P2\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P2"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4748;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("318874370",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4749;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton17_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4741;BA.debugLine="Private Sub RadioButton17_CheckedChange(Checked As"; + //BA.debugLineNum = 4742;BA.debugLine="encuentasmapa.Put(\"P2\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P2"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4743;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("318808834",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4744;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4764;BA.debugLine="Private Sub RadioButton2_CheckedChange(Checked As"; + //BA.debugLineNum = 4765;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4766;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319070978",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4767;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4769;BA.debugLine="Private Sub RadioButton3_CheckedChange(Checked As"; + //BA.debugLineNum = 4770;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4771;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319136514",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4772;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton4_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4774;BA.debugLine="Private Sub RadioButton4_CheckedChange(Checked As"; + //BA.debugLineNum = 4775;BA.debugLine="encuentasmapa.Put(\"P3\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P3"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4776;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319202050",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4777;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton5_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4782;BA.debugLine="Private Sub RadioButton5_CheckedChange(Checked As"; + //BA.debugLineNum = 4783;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4784;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319267586",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4785;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton6_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4787;BA.debugLine="Private Sub RadioButton6_CheckedChange(Checked As"; + //BA.debugLineNum = 4788;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4789;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319333122",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4790;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton7_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4792;BA.debugLine="Private Sub RadioButton7_CheckedChange(Checked As"; + //BA.debugLineNum = 4793;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4794;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319398658",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4795;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton8_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4797;BA.debugLine="Private Sub RadioButton8_CheckedChange(Checked As"; + //BA.debugLineNum = 4798;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4799;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319464194",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4800;BA.debugLine="End Sub"; +return ""; +} +public String _radiobutton9_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4802;BA.debugLine="Private Sub RadioButton9_CheckedChange(Checked As"; + //BA.debugLineNum = 4803;BA.debugLine="encuentasmapa.Put(\"P4\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P4"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4804;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("319529730",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4805;BA.debugLine="End Sub"; +return ""; +} +public String _rb1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4652;BA.debugLine="Sub RB1_CheckedChange(Checked As Boolean)"; + //BA.debugLineNum = 4653;BA.debugLine="If RB1.Checked = True Then"; +if (_rb1.getChecked()==__c.True) { + //BA.debugLineNum = 4654;BA.debugLine="E_RES_E.Text = \"CENTRAL DE ABASTOS\""; +_e_res_e.setText(BA.ObjectToCharSequence("CENTRAL DE ABASTOS")); + }; + //BA.debugLineNum = 4656;BA.debugLine="End Sub"; +return ""; +} +public String _rb1_e1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4705;BA.debugLine="Private Sub RB1_E1_CheckedChange(Checked As Boolea"; + //BA.debugLineNum = 4706;BA.debugLine="Log($\"RB1 Clicked - chk:${Sender.As(RadioButton)."; +__c.LogImpl("318612225",("RB1 Clicked - chk:"+__c.SmartStringFormatter("",(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getChecked()))+""),0); + //BA.debugLineNum = 4707;BA.debugLine="encuentasmapa.Put(\"P1\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P1"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4708;BA.debugLine="encuentasmapa.Remove(\"P2\")"; +_encuentasmapa.Remove((Object)("P2")); + //BA.debugLineNum = 4709;BA.debugLine="Panel7.Visible = False"; +_panel7.setVisible(__c.False); + //BA.debugLineNum = 4710;BA.debugLine="RadioButton17.Checked = False"; +_radiobutton17.setChecked(__c.False); + //BA.debugLineNum = 4711;BA.debugLine="RadioButton16.Checked = False"; +_radiobutton16.setChecked(__c.False); + //BA.debugLineNum = 4712;BA.debugLine="RadioButton15.Checked = False"; +_radiobutton15.setChecked(__c.False); + //BA.debugLineNum = 4713;BA.debugLine="encuentasmapa.Remove(\"P2\")"; +_encuentasmapa.Remove((Object)("P2")); + //BA.debugLineNum = 4714;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("318612233",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4715;BA.debugLine="End Sub"; +return ""; +} +public String _rb1_p4_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5585;BA.debugLine="Private Sub RB1_P4_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5586;BA.debugLine="If RB1_P4_M2.Checked = True Then"; +if (_rb1_p4_m2.getChecked()==__c.True) { + //BA.debugLineNum = 5587;BA.debugLine="Panel7_M2.Visible = True"; +_panel7_m2.setVisible(__c.True); + //BA.debugLineNum = 5588;BA.debugLine="panel7_p4_m2.Visible = True"; +_panel7_p4_m2.setVisible(__c.True); + }else { + //BA.debugLineNum = 5590;BA.debugLine="Panel7_M2.Visible = False"; +_panel7_m2.setVisible(__c.False); + //BA.debugLineNum = 5591;BA.debugLine="panel7_p4_m2.Visible = False"; +_panel7_p4_m2.setVisible(__c.False); + }; + //BA.debugLineNum = 5594;BA.debugLine="End Sub"; +return ""; +} +public String _rb2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4658;BA.debugLine="Sub RB2_CheckedChange(Checked As Boolean)"; + //BA.debugLineNum = 4659;BA.debugLine="If RB2.Checked = True Then"; +if (_rb2.getChecked()==__c.True) { + //BA.debugLineNum = 4660;BA.debugLine="E_RES_E.Text = \"AUTOSERVICIO\""; +_e_res_e.setText(BA.ObjectToCharSequence("AUTOSERVICIO")); + }; + //BA.debugLineNum = 4662;BA.debugLine="End Sub"; +return ""; +} +public String _rb2_e1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4717;BA.debugLine="Private Sub RB2_E1_CheckedChange(Checked As Boolea"; + //BA.debugLineNum = 4718;BA.debugLine="Log($\"RB2 Clicked - chk:${Sender.As(RadioButton)."; +__c.LogImpl("318677761",("RB2 Clicked - chk:"+__c.SmartStringFormatter("",(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getChecked()))+""),0); + //BA.debugLineNum = 4719;BA.debugLine="encuentasmapa.Put(\"P1\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P1"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4720;BA.debugLine="RadioButton17.Checked = False"; +_radiobutton17.setChecked(__c.False); + //BA.debugLineNum = 4721;BA.debugLine="encuentasmapa.Remove(\"P2\")"; +_encuentasmapa.Remove((Object)("P2")); + //BA.debugLineNum = 4722;BA.debugLine="RadioButton17.Checked = False"; +_radiobutton17.setChecked(__c.False); + //BA.debugLineNum = 4723;BA.debugLine="RadioButton16.Checked = False"; +_radiobutton16.setChecked(__c.False); + //BA.debugLineNum = 4724;BA.debugLine="RadioButton15.Checked = False"; +_radiobutton15.setChecked(__c.False); + //BA.debugLineNum = 4725;BA.debugLine="Panel7.Visible = False"; +_panel7.setVisible(__c.False); + //BA.debugLineNum = 4726;BA.debugLine="encuentasmapa.Remove(\"P2\")"; +_encuentasmapa.Remove((Object)("P2")); + //BA.debugLineNum = 4727;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("318677770",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4728;BA.debugLine="End Sub"; +return ""; +} +public String _rb2_p4_m2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 5596;BA.debugLine="Private Sub RB2_P4_M2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 5597;BA.debugLine="If RB2_P4_M2.Checked = True Then"; +if (_rb2_p4_m2.getChecked()==__c.True) { + //BA.debugLineNum = 5598;BA.debugLine="Panel7_M2.Visible = False"; +_panel7_m2.setVisible(__c.False); + //BA.debugLineNum = 5599;BA.debugLine="panel7_p4_m2.Visible = False"; +_panel7_p4_m2.setVisible(__c.False); + //BA.debugLineNum = 5600;BA.debugLine="RB1_P3_M2.Checked = False"; +_rb1_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5601;BA.debugLine="RB2_P3_M2.Checked = False"; +_rb2_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5602;BA.debugLine="RB3_P3_M2.Checked = False"; +_rb3_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5603;BA.debugLine="RB4_P3_M2.Checked = False"; +_rb4_p3_m2.setChecked(__c.False); + //BA.debugLineNum = 5604;BA.debugLine="ET_P3_M2.Text = \"\""; +_et_p3_m2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 5605;BA.debugLine="CB1_P4_M2.Checked = False"; +_cb1_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5606;BA.debugLine="CB2_P4_M2.Checked = False"; +_cb2_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5607;BA.debugLine="CB3_P4_M2.Checked = False"; +_cb3_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5608;BA.debugLine="CB4_P4_M2.Checked = False"; +_cb4_p4_m2.setChecked(__c.False); + //BA.debugLineNum = 5609;BA.debugLine="textemp3 = \"\""; +_textemp3 = ""; + }else { + //BA.debugLineNum = 5611;BA.debugLine="Panel7_M2.Visible = True"; +_panel7_m2.setVisible(__c.True); + //BA.debugLineNum = 5612;BA.debugLine="panel7_p4_m2.Visible = True"; +_panel7_p4_m2.setVisible(__c.True); + }; + //BA.debugLineNum = 5615;BA.debugLine="End Sub"; +return ""; +} +public String _rb3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4664;BA.debugLine="Sub RB3_CheckedChange(Checked As Boolean)"; + //BA.debugLineNum = 4665;BA.debugLine="If RB3.Checked = True Then"; +if (_rb3.getChecked()==__c.True) { + //BA.debugLineNum = 4666;BA.debugLine="E_RES_E.Text = \"CLUB DE PRECIO\""; +_e_res_e.setText(BA.ObjectToCharSequence("CLUB DE PRECIO")); + }; + //BA.debugLineNum = 4668;BA.debugLine="End Sub"; +return ""; +} +public String _rb3_e1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4730;BA.debugLine="Private Sub RB3_E1_CheckedChange(Checked As Boolea"; + //BA.debugLineNum = 4731;BA.debugLine="Log($\"RB3 Clicked - chk:${Sender.As(RadioButton)."; +__c.LogImpl("318743297",("RB3 Clicked - chk:"+__c.SmartStringFormatter("",(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getChecked()))+""),0); + //BA.debugLineNum = 4732;BA.debugLine="encuentasmapa.Put(\"P1\", Sender.As(RadioButton).te"; +_encuentasmapa.Put((Object)("P1"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText())); + //BA.debugLineNum = 4734;BA.debugLine="Panel7.Visible = True"; +_panel7.setVisible(__c.True); + //BA.debugLineNum = 4735;BA.debugLine="Log(encuentasmapa)"; +__c.LogImpl("318743301",BA.ObjectToString(_encuentasmapa),0); + //BA.debugLineNum = 4736;BA.debugLine="End Sub"; +return ""; +} +public String _rb4_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 4670;BA.debugLine="Sub RB4_CheckedChange(Checked As Boolean)"; + //BA.debugLineNum = 4671;BA.debugLine="If RB4.Checked = True Then"; +if (_rb4.getChecked()==__c.True) { + //BA.debugLineNum = 4672;BA.debugLine="E_RES_E.Text = \"DIRECTO PEDEGREE\""; +_e_res_e.setText(BA.ObjectToCharSequence("DIRECTO PEDEGREE")); + }; + //BA.debugLineNum = 4674;BA.debugLine="End Sub"; +return ""; +} +public String _recalculoxcant() throws Exception{ +int _promespdes = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel = null; +int _hjh = 0; +float _recalculo = 0f; +float _recalculototal = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel2 = null; + //BA.debugLineNum = 1398;BA.debugLine="Sub recalculoXcant"; + //BA.debugLineNum = 1400;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA) AND PE_CEDIS = ? ",new String[]{_subs._traealmacen /*String*/ (ba)}))); + //BA.debugLineNum = 1401;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1402;BA.debugLine="For promespdes = 0 To c.RowCount -1"; +{ +final int step3 = 1; +final int limit3 = (int) (_c.getRowCount()-1); +_promespdes = (int) (0) ; +for (;_promespdes <= limit3 ;_promespdes = _promespdes + step3 ) { + //BA.debugLineNum = 1403;BA.debugLine="c.Position = promespdes"; +_c.setPosition(_promespdes); + //BA.debugLineNum = 1404;BA.debugLine="Dim rangosel As Cursor= B4XPages.MainPage.skmt."; +_rangosel = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rangosel = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? AND CAT_PD_RANGO <= ? AND CAT_PD_RANGO2 >= ?",new String[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT")),BA.NumberToString(_c.GetInt("PE_CANT"))}))); + //BA.debugLineNum = 1405;BA.debugLine="If rangosel.RowCount > 0 Then"; +if (_rangosel.getRowCount()>0) { + //BA.debugLineNum = 1406;BA.debugLine="For hjh = 0 To rangosel.RowCount-1"; +{ +final int step7 = 1; +final int limit7 = (int) (_rangosel.getRowCount()-1); +_hjh = (int) (0) ; +for (;_hjh <= limit7 ;_hjh = _hjh + step7 ) { + //BA.debugLineNum = 1407;BA.debugLine="rangosel.Position = hjh"; +_rangosel.setPosition(_hjh); + //BA.debugLineNum = 1408;BA.debugLine="If rangosel.GetString(\"CAT_PD_TIER\").Contains"; +if (_rangosel.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { + //BA.debugLineNum = 1409;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("313959179",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 1410;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))"; +__c.LogImpl("313959180",_rangosel.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 1411;BA.debugLine="Private recalculo As Float = c.GetString(\"PE"; +_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False)))); + //BA.debugLineNum = 1412;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +__c.LogImpl("313959182",BA.NumberToString(_recalculo),__c.Colors.Blue); + //BA.debugLineNum = 1413;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("313959183",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 1414;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\")"; +__c.LogImpl("313959184",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 1415;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))"; +__c.LogImpl("313959185",_rangosel.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 1416;BA.debugLine="Private recalculototal As Float =c.GetString"; +_recalculototal = (float) ((double)(Double.parseDouble(_c.GetString("PE_CANT")))*_recalculo); + //BA.debugLineNum = 1417;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_REC"; +_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = PE_CANT WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? and PE_FOLIO = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel.GetString("CAT_PD_COD_PROMO"),_c.GetString("PE_PROID"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")})); + }; + } +}; + }else { + //BA.debugLineNum = 1421;BA.debugLine="Dim rangosel2 As Cursor= B4XPages.MainPage.skm"; +_rangosel2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rangosel2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? and ? > cat_pd_rango2",new String[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT"))}))); + //BA.debugLineNum = 1423;BA.debugLine="If rangosel2.RowCount > 0 Then"; +if (_rangosel2.getRowCount()>0) { + //BA.debugLineNum = 1425;BA.debugLine="For hjh = 0 To rangosel2.RowCount-1"; +{ +final int step24 = 1; +final int limit24 = (int) (_rangosel2.getRowCount()-1); +_hjh = (int) (0) ; +for (;_hjh <= limit24 ;_hjh = _hjh + step24 ) { + //BA.debugLineNum = 1426;BA.debugLine="rangosel2.Position = hjh"; +_rangosel2.setPosition(_hjh); + //BA.debugLineNum = 1427;BA.debugLine="If rangosel2.GetString(\"CAT_PD_TIER\").Contai"; +if (_rangosel2.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { + //BA.debugLineNum = 1428;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("313959198",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 1429;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")"; +__c.LogImpl("313959199",_rangosel2.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 1430;BA.debugLine="Private recalculo As Float = c.GetString(\"P"; +_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False)))); + //BA.debugLineNum = 1431;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +__c.LogImpl("313959201",BA.NumberToString(_recalculo),__c.Colors.Blue); + //BA.debugLineNum = 1432;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("313959202",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 1433;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\""; +__c.LogImpl("313959203",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 1434;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")"; +__c.LogImpl("313959204",_rangosel2.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 1435;BA.debugLine="Private recalculototal As Float = rangosel2"; +_recalculototal = (float) ((double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_RANGO2")))*_recalculo); + //BA.debugLineNum = 1438;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RE"; +_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = ? WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel2.GetString("CAT_PD_COD_PROMO"),_rangosel2.GetString("CAT_PD_RANGO2"),_c.GetString("PE_PROID"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")})); + }; + } +}; + }else { + //BA.debugLineNum = 1442;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RECA"; +_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("PE_PROID"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")})); + }; + //BA.debugLineNum = 1444;BA.debugLine="rangosel2.Close"; +_rangosel2.Close(); + }; + //BA.debugLineNum = 1446;BA.debugLine="rangosel.Close"; +_rangosel.Close(); + } +}; + }; + //BA.debugLineNum = 1449;BA.debugLine="skmt.ExecNonQuery2(\"UPDATE PEDIDO set PE_RECALCUL"; +_skmt.ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_CEDIS <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_subs._traealmacen /*String*/ (ba)})); + //BA.debugLineNum = 1450;BA.debugLine="End Sub"; +return ""; +} +public String _revisargeocerca() throws Exception{ + //BA.debugLineNum = 1465;BA.debugLine="Private Sub RevisarGeocerca"; + //BA.debugLineNum = 1468;BA.debugLine="Log(distancealm)"; +__c.LogImpl("314090243",BA.NumberToString(_distancealm),0); + //BA.debugLineNum = 1469;BA.debugLine="Log(distance)"; +__c.LogImpl("314090244",BA.NumberToString(_distance),0); + //BA.debugLineNum = 1471;BA.debugLine="If distancealm > 0 Or distance > 50 Then"; +if (_distancealm>0 || _distance>50) { + //BA.debugLineNum = 1472;BA.debugLine="If distancealm < 100 Or distance < 50 Then"; +if (_distancealm<100 || _distance<50) { + //BA.debugLineNum = 1473;BA.debugLine="HabilitarBotones(True)"; +_habilitarbotones(__c.True); + }else { + //BA.debugLineNum = 1475;BA.debugLine="HabilitarBotones(True)"; +_habilitarbotones(__c.True); + }; + }; + //BA.debugLineNum = 1478;BA.debugLine="End Sub"; +return ""; +} +public String _savepdf(gunav2.keymon.com.mx.cpdf _apdf,String _afile,int _acompress) throws Exception{ +String _folder = ""; + //BA.debugLineNum = 7275;BA.debugLine="private Sub savePDF(apdf As cPDF,afile As String,a"; + //BA.debugLineNum = 7276;BA.debugLine="Dim folder As String"; +_folder = ""; + //BA.debugLineNum = 7281;BA.debugLine="folder = Starter.fFileProvider.SharedFolder"; +_folder = _starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ; + //BA.debugLineNum = 7288;BA.debugLine="apdf.saveToFile(folder, afile, acompress)"; +_apdf._savetofile /*gunav2.keymon.com.mx.cpdf*/ (_folder,_afile,_acompress); + //BA.debugLineNum = 7289;BA.debugLine="End Sub"; +return ""; +} +public void _sc_result(String _atype,String _values,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{ +ResumableSub_sc_result rsub = new ResumableSub_sc_result(this,_atype,_values,_image); +rsub.resume(ba, null); +} +public static class ResumableSub_sc_result extends BA.ResumableSub { +public ResumableSub_sc_result(gunav2.keymon.com.mx.c_cliente parent,String _atype,String _values,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) { +this.parent = parent; +this._atype = _atype; +this._values = _values; +this._image = _image; +} +gunav2.keymon.com.mx.c_cliente parent; +String _atype; +String _values; +anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image; +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 = 3078;BA.debugLine="CODIGO = Values"; +parent._codigo = _values; + //BA.debugLineNum = 3079;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN"; +parent._dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM kmt_info3 WHERE CAT_CL_NUM_SERIEFISICO = ?",new String[]{parent._codigo}))); + //BA.debugLineNum = 3080;BA.debugLine="DD.Position =0"; +parent._dd.setPosition((int) (0)); + //BA.debugLineNum = 3081;BA.debugLine="If DD.GetString(\"CUANTOS\") > 0 Then"; +if (true) break; + +case 1: +//if +this.state = 16; +if ((double)(Double.parseDouble(parent._dd.GetString("CUANTOS")))>0) { +this.state = 3; +}else { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 16; + //BA.debugLineNum = 3082;BA.debugLine="MsgboxAsync(\"Código ya asignado\", \"AVISO\")"; +parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Código ya asignado"),BA.ObjectToCharSequence("AVISO"),ba); + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 3084;BA.debugLine="If CODIGO.Length = 7 Then"; +if (true) break; + +case 6: +//if +this.state = 15; +if (parent._codigo.length()==7) { +this.state = 8; +}else { +this.state = 14; +}if (true) break; + +case 8: +//C +this.state = 9; + //BA.debugLineNum = 3085;BA.debugLine="Msgbox2Async(\"El código \"& CODIGO & \" es correc"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El código "+parent._codigo+" es correcto?"),BA.ObjectToCharSequence("Title"),"Yes","Cancel","No",(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.False); + //BA.debugLineNum = 3086;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 17; +return; +case 17: +//C +this.state = 9; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 3087;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 9: +//if +this.state = 12; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 11; +}if (true) break; + +case 11: +//C +this.state = 12; + //BA.debugLineNum = 3088;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE k"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 set CAT_CL_NUM_SERIEFISICO = ?, CAT_CL_LONG = ?, CAT_CL_LAT =? where CAT_CL_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._codigo),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 3089;BA.debugLine="L_QR.TEXT =CODIGO"; +parent._l_qr.setText(BA.ObjectToCharSequence(parent._codigo)); + //BA.debugLineNum = 3090;BA.debugLine="L_QR.TextColor = Colors.Blue"; +parent._l_qr.setTextColor(parent.__c.Colors.Blue); + //BA.debugLineNum = 3091;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert i"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into HIST_CODIGO_BARRAS(CODIGOKMTS, CODIGOB, LAT, LON) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._codigo),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + if (true) break; + +case 12: +//C +this.state = 15; +; + if (true) break; + +case 14: +//C +this.state = 15; + //BA.debugLineNum = 3094;BA.debugLine="MsgboxAsync(\"Código No Valido\", \"AVISO\")"; +parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Código No Valido"),BA.ObjectToCharSequence("AVISO"),ba); + if (true) break; + +case 15: +//C +this.state = 16; +; + if (true) break; + +case 16: +//C +this.state = -1; +; + //BA.debugLineNum = 3097;BA.debugLine="DD.Close"; +parent._dd.Close(); + //BA.debugLineNum = 3098;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _sc_timedout(boolean _timedout) throws Exception{ + //BA.debugLineNum = 3100;BA.debugLine="Sub sc_timedout(timedOut As Boolean)"; + //BA.debugLineNum = 3101;BA.debugLine="Log(\"timedOut \" & timedOut)"; +__c.LogImpl("316842753","timedOut "+BA.ObjectToString(_timedout),0); + //BA.debugLineNum = 3102;BA.debugLine="End Sub"; +return ""; +} +public String _sc_usercancelled(boolean _usercancelled) throws Exception{ + //BA.debugLineNum = 3104;BA.debugLine="Sub sc_usercancelled(userCancelled As Boolean)"; + //BA.debugLineNum = 3105;BA.debugLine="Log(\"userCancelled \" & userCancelled)"; +__c.LogImpl("316908289","userCancelled "+BA.ObjectToString(_usercancelled),0); + //BA.debugLineNum = 3106;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 = 4538;BA.debugLine="Sub StartPrinter"; + //BA.debugLineNum = 4539;BA.debugLine="Dim PairedDevices As Map"; +_paireddevices = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 4540;BA.debugLine="Dim L1 As List"; +_l1 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 4541;BA.debugLine="Dim resimp As Int"; +_resimp = 0; + //BA.debugLineNum = 4542;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True); + //BA.debugLineNum = 4543;BA.debugLine="PairedDevices.Initialize"; +_paireddevices.Initialize(); + //BA.debugLineNum = 4544;BA.debugLine="Try"; +try { //BA.debugLineNum = 4545;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; +_paireddevices = _cmp20.GetPairedDevices(); + } + catch (Exception e9) { + ba.setLastException(e9); //BA.debugLineNum = 4547;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; +__c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba); + //BA.debugLineNum = 4548;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 4549;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); + }; + //BA.debugLineNum = 4552;BA.debugLine="If PairedDevices.Size = 0 Then"; +if (_paireddevices.getSize()==0) { + //BA.debugLineNum = 4553;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 = 4554;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 4557;BA.debugLine="If PairedDevices.Size = 1 Then"; +if (_paireddevices.getSize()==1) { + //BA.debugLineNum = 4558;BA.debugLine="Try"; +try { //BA.debugLineNum = 4559;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 = 4561;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; +__c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba); + //BA.debugLineNum = 4562;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 4563;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); + }; + }else { + //BA.debugLineNum = 4566;BA.debugLine="L1.Initialize"; +_l1.Initialize(); + //BA.debugLineNum = 4567;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 = 4568;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; +_l1.Add(_paireddevices.GetKeyAt(_i)); + } +}; + //BA.debugLineNum = 4570;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; +_resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba); + //BA.debugLineNum = 4571;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; +if (_resimp!=__c.DialogResponse.CANCEL) { + //BA.debugLineNum = 4572;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; +_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp)))); + }; + }; + //BA.debugLineNum = 4575;BA.debugLine="End Sub"; +return ""; +} +public String _stopcamera2() throws Exception{ + //BA.debugLineNum = 7795;BA.debugLine="Private Sub StopCamera2"; + //BA.debugLineNum = 7797;BA.debugLine="If camEx.IsInitialized Then"; +if (_camex.IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 7798;BA.debugLine="camEx.Release"; +_camex._release /*String*/ (); + }; + //BA.debugLineNum = 7800;BA.debugLine="End Sub"; +return ""; +} +public String _tar_click() throws Exception{ + //BA.debugLineNum = 2953;BA.debugLine="Sub Tar_Click"; + //BA.debugLineNum = 2954;BA.debugLine="B4XPages.ShowPage(\"Nota\")"; +_b4xpages._showpage /*String*/ (ba,"Nota"); + //BA.debugLineNum = 2955;BA.debugLine="End Sub"; +return ""; +} +public String _tels_click() throws Exception{ + //BA.debugLineNum = 2918;BA.debugLine="Sub Tels_Click"; + //BA.debugLineNum = 2919;BA.debugLine="B4XPages.ShowPage(\"NoVenta\")"; +_b4xpages._showpage /*String*/ (ba,"NoVenta"); + //BA.debugLineNum = 2920;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((gunav2.keymon.com.mx.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/c_clientes.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_clientes.java new file mode 100644 index 0000000..789916f --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_clientes.java @@ -0,0 +1,513 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_clientes"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; +public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null; +public String _entro = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _gest = null; +public anywheresoftware.b4a.objects.LabelWrapper _lfila = null; +public anywheresoftware.b4a.objects.EditTextWrapper _busca = null; +public String _colonia = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_qr = null; +public com.inforpires.baQRCode.baQRCode _qr = null; +public String _codigo = ""; +public String _stime = ""; +public String _ruta = ""; +public String _q_buscar = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_clientes = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null; +public gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b_qr_click() throws Exception{ +int _scan_width = 0; +int _scan_height = 0; + //BA.debugLineNum = 197;BA.debugLine="Sub b_qr_Click"; + //BA.debugLineNum = 198;BA.debugLine="Dim scan_width As Int"; +_scan_width = 0; + //BA.debugLineNum = 199;BA.debugLine="Dim scan_height As Int"; +_scan_height = 0; + //BA.debugLineNum = 200;BA.debugLine="scan_width = 400"; +_scan_width = (int) (400); + //BA.debugLineNum = 201;BA.debugLine="scan_height = 400"; +_scan_height = (int) (400); + //BA.debugLineNum = 202;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 = 64;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 65;BA.debugLine="reqManager.Initialize(Me, Starter.server)"; +_reqmanager._initialize /*String*/ (ba,this,_starter._server /*String*/ ); + //BA.debugLineNum = 66;BA.debugLine="busca.Text = \"\""; +_busca.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 67;BA.debugLine="entro = \"2\""; +_entro = "2"; + //BA.debugLineNum = 68;BA.debugLine="colonia = 0"; +_colonia = BA.NumberToString(0); + //BA.debugLineNum = 69;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info3 where gestion = 0 ORDER BY CAT_CL_CODIGO"))); + //BA.debugLineNum = 70;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 71;BA.debugLine="lfila.Text = \"NOMBRE\""; +_lfila.setText(BA.ObjectToCharSequence("NOMBRE")); + //BA.debugLineNum = 72;BA.debugLine="Subs.SetDivider(ListView1, Colors.White, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.White,(int) (2)); + //BA.debugLineNum = 73;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 74;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step10 = 1; +final int limit10 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit10 ;_i = _i + step10 ) { + //BA.debugLineNum = 75;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 76;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 77;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 78;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 79;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 80;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 81;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 82;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 83;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 84;BA.debugLine="label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 85;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 87;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 88;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.D"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 89;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.D"; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 90;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_CODIG"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE"))); + } +}; + }; + //BA.debugLineNum = 93;BA.debugLine="If B4XPages.MainPage.cliente.cuest.IsInitialized"; +if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._cuest /*gunav2.keymon.com.mx.c_cuestionario*/ .IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 95;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUESTIONARIO where Q_IDCLIENTE not in (select Q_IDCLIENTE from CUESTIONARIO where Q_IDPREGUNTA = '7')"); + //BA.debugLineNum = 96;BA.debugLine="Log(\"Borramos encuestas incompletas\")"; +__c.LogImpl("370975520","Borramos encuestas incompletas",0); + }; + //BA.debugLineNum = 98;BA.debugLine="entro = \"4\""; +_entro = "4"; + //BA.debugLineNum = 99;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(gunav2.keymon.com.mx.c_clientes parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 164;BA.debugLine="Return True"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;}; + //BA.debugLineNum = 165;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 35;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 36;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 38;BA.debugLine="Root.LoadLayout(\"clientes\")"; +_root.LoadLayout("clientes",ba); + //BA.debugLineNum = 40;BA.debugLine="entro =\"2\""; +_entro = "2"; + //BA.debugLineNum = 41;BA.debugLine="p_clientes.Height = Root.Height"; +_p_clientes.setHeight(_root.getHeight()); + //BA.debugLineNum = 42;BA.debugLine="p_clientes.Width = Root.Width"; +_p_clientes.setWidth(_root.getWidth()); + //BA.debugLineNum = 43;BA.debugLine="Panel4.Left = Round(Root.Width/2)-(Panel4.Width/2"; +_panel4.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_panel4.getWidth()/(double)2))); + //BA.debugLineNum = 44;BA.debugLine="Panel4.Height = Root.Height * 0.70"; +_panel4.setHeight((int) (_root.getHeight()*0.70)); + //BA.debugLineNum = 45;BA.debugLine="ListView1.Height = Panel4.Height * 0.95"; +_listview1.setHeight((int) (_panel4.getHeight()*0.95)); + //BA.debugLineNum = 51;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 58;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 59;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 61;BA.debugLine="qr.initialize"; +_qr.initialize(); + //BA.debugLineNum = 62;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 = 167;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin"; + //BA.debugLineNum = 168;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\""; +_q_buscar = "%"+_busca.getText()+"%"; + //BA.debugLineNum = 169;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select CAT"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info3 where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE LIKE ?)and gestion = 0 order by CAT_CL_NOMBRE ",new String[]{_q_buscar,_q_buscar,_q_buscar}))); + //BA.debugLineNum = 170;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 171;BA.debugLine="Subs.SetDivider(ListView1, Colors.White, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.White,(int) (2)); + //BA.debugLineNum = 172;BA.debugLine="lfila.text = \"Nombre y Calle\""; +_lfila.setText(BA.ObjectToCharSequence("Nombre y Calle")); + //BA.debugLineNum = 173;BA.debugLine="If c2.RowCount>0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 174;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 = 175;BA.debugLine="c2.Position=i"; +_c2.setPosition(_i); + //BA.debugLineNum = 176;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 177;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 178;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 179;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 180;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 181;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 182;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 183;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 184;BA.debugLine="label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 185;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 187;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 188;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.D"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 189;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.D"; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 190;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")+__c.CRLF+"CALLE: "+_c2.GetString("CAT_CL_CALLE"))); + } +}; + }; + //BA.debugLineNum = 193;BA.debugLine="entro = \"4\""; +_entro = "4"; + //BA.debugLineNum = 194;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 195;BA.debugLine="End Sub"; +return ""; +} +public String _calc_ean_checksum(String _number) throws Exception{ +int _i = 0; +char _co = '\0'; +int _soma = 0; +int _n = 0; +float _digit = 0f; + //BA.debugLineNum = 225;BA.debugLine="Sub calc_ean_checksum(number As String) As String"; + //BA.debugLineNum = 226;BA.debugLine="Dim i As Int"; +_i = 0; + //BA.debugLineNum = 227;BA.debugLine="Dim cO As Char"; +_co = '\0'; + //BA.debugLineNum = 228;BA.debugLine="Dim soma As Int"; +_soma = 0; + //BA.debugLineNum = 229;BA.debugLine="Dim n As Int"; +_n = 0; + //BA.debugLineNum = 230;BA.debugLine="Dim digit As Float"; +_digit = 0f; + //BA.debugLineNum = 231;BA.debugLine="soma = 0"; +_soma = (int) (0); + //BA.debugLineNum = 232;BA.debugLine="For i=0 To number.Length - 1"; +{ +final int step7 = 1; +final int limit7 = (int) (_number.length()-1); +_i = (int) (0) ; +for (;_i <= limit7 ;_i = _i + step7 ) { + //BA.debugLineNum = 233;BA.debugLine="digit = number.SubString2(i,i+1)"; +_digit = (float)(Double.parseDouble(_number.substring(_i,(int) (_i+1)))); + //BA.debugLineNum = 234;BA.debugLine="n= digit * ((i Mod 2) * 2 + 1)"; +_n = (int) (_digit*((_i%2)*2+1)); + //BA.debugLineNum = 235;BA.debugLine="soma=soma+n"; +_soma = (int) (_soma+_n); + } +}; + //BA.debugLineNum = 237;BA.debugLine="Return number & ( ( 10 - ( soma Mod 10 )) Mod 10"; +if (true) return _number+BA.NumberToString(((10-(_soma%10))%10)); + //BA.debugLineNum = 238;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 = 6;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Dim s As Cursor"; +_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Dim entro As String"; +_entro = ""; + //BA.debugLineNum = 11;BA.debugLine="Dim gest As Button"; +_gest = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim lfila As Label"; +_lfila = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim busca As EditText"; +_busca = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Dim colonia As String"; +_colonia = ""; + //BA.debugLineNum = 15;BA.debugLine="Private b_qr As Button"; +_b_qr = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Private qr As QRCode"; +_qr = new com.inforpires.baQRCode.baQRCode(); + //BA.debugLineNum = 18;BA.debugLine="Dim CODIGO As String"; +_codigo = ""; + //BA.debugLineNum = 19;BA.debugLine="Dim STIME As String"; +_stime = ""; + //BA.debugLineNum = 21;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 22;BA.debugLine="Dim q_buscar As String"; +_q_buscar = ""; + //BA.debugLineNum = 23;BA.debugLine="Private p_clientes As Panel"; +_p_clientes = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private Panel4 As Panel"; +_panel4 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager(); + //BA.debugLineNum = 27;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 30;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 31;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 32;BA.debugLine="End Sub"; +return null; +} +public String _listview1_itemclick(int _position,Object _value) throws Exception{ +int _i = 0; + //BA.debugLineNum = 101;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As"; + //BA.debugLineNum = 102;BA.debugLine="If colonia = 0 Then"; +if ((_colonia).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 103;BA.debugLine="colonia = Value"; +_colonia = BA.ObjectToString(_value); + }; + //BA.debugLineNum = 105;BA.debugLine="If entro = \"2\" Then"; +if ((_entro).equals("2")) { + //BA.debugLineNum = 106;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select CAT"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_CALLE, CAT_CL_COLONIA, count(*) as cuantos from kmt_info3 where gestion = 0 and CAT_CL_COLONIA = ? GROUP BY CAT_CL_CALLE, CAT_CL_COLONIA order by CAT_CL_CALLE ",new String[]{BA.ObjectToString(_value)}))); + //BA.debugLineNum = 107;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 108;BA.debugLine="lfila.text = \"Calle\""; +_lfila.setText(BA.ObjectToCharSequence("Calle")); + //BA.debugLineNum = 109;BA.debugLine="If c2.RowCount>0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 110;BA.debugLine="For i=0 To c2.RowCount -1"; +{ +final int step9 = 1; +final int limit9 = (int) (_c2.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit9 ;_i = _i + step9 ) { + //BA.debugLineNum = 111;BA.debugLine="c2.Position=i"; +_c2.setPosition(_i); + //BA.debugLineNum = 112;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CAL"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_CL_CALLE")),BA.ObjectToCharSequence(_c2.GetString("cuantos"))); + } +}; + }; + //BA.debugLineNum = 115;BA.debugLine="entro = \"3\""; +_entro = "3"; + }else if((_entro).equals("3")) { + //BA.debugLineNum = 117;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select CA"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info3 where gestion = 0 and CAT_CL_CALLE = ? AND CAT_CL_COLONIA = ? order by CAT_CL_NOMBRE ",new String[]{BA.ObjectToString(_value),_colonia}))); + //BA.debugLineNum = 118;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 119;BA.debugLine="lfila.text = \"Nombre\""; +_lfila.setText(BA.ObjectToCharSequence("Nombre")); + //BA.debugLineNum = 120;BA.debugLine="If c2.RowCount>0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 121;BA.debugLine="For i=0 To c2.RowCount -1"; +{ +final int step20 = 1; +final int limit20 = (int) (_c2.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit20 ;_i = _i + step20 ) { + //BA.debugLineNum = 122;BA.debugLine="c2.Position = i"; +_c2.setPosition(_i); + //BA.debugLineNum = 123;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_COD"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(_c2.GetString("CAT_CL_NOMBRE"))); + } +}; + }; + //BA.debugLineNum = 126;BA.debugLine="entro = \"4\""; +_entro = "4"; + }else if((_entro).equals("4")) { + //BA.debugLineNum = 128;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); + //BA.debugLineNum = 129;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); + //BA.debugLineNum = 130;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 131;BA.debugLine="STIME=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 133;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT COUN"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_STAY_STORE WHERE HSS_IN = ? AND HSS_CODIGO In (select cuenta from cuentaa)",new String[]{"0"}))); + //BA.debugLineNum = 134;BA.debugLine="s.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 135;BA.debugLine="If s.GetString(\"CUANTOS\") = 1 Then"; +if ((_s.GetString("CUANTOS")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 136;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_IN = ? where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + }else { + //BA.debugLineNum = 138;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); + //BA.debugLineNum = 139;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HI"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_IN = ? where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + }; + //BA.debugLineNum = 141;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_OUT set HSO_INI = ? where HSO_INI = 0 ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + //BA.debugLineNum = 142;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 144;BA.debugLine="If B4XPages.MainPage.cliente.bitacora.IsInitiali"; +if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ .IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 145;BA.debugLine="Log(\"VAMOS A CLIENTE CON ENVENTA = FALSO\")"; +__c.LogImpl("371041068","VAMOS A CLIENTE CON ENVENTA = FALSO",0); + //BA.debugLineNum = 146;BA.debugLine="B4XPages.MainPage.cliente.bitacora.iniciamosVen"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._iniciamosventa /*String*/ (); + //BA.debugLineNum = 147;BA.debugLine="Log(B4XPages.MainPage.cliente.bitacora.enVenta)"; +__c.LogImpl("371041070",BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._enventa /*boolean*/ ),0); + }; + //BA.debugLineNum = 149;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }; + //BA.debugLineNum = 154;BA.debugLine="Log(entro)"; +__c.LogImpl("371041077",_entro,0); + //BA.debugLineNum = 155;BA.debugLine="End Sub"; +return ""; +} +public String _p_clientes_click() throws Exception{ + //BA.debugLineNum = 242;BA.debugLine="Private Sub p_clientes_Click"; + //BA.debugLineNum = 244;BA.debugLine="End Sub"; +return ""; +} +public String _sc_noscan() throws Exception{ + //BA.debugLineNum = 221;BA.debugLine="Sub sc_noScan"; + //BA.debugLineNum = 222;BA.debugLine="Log(\"nothing returned from the scan !!!!!\")"; +__c.LogImpl("371368705","nothing returned from the scan !!!!!",0); + //BA.debugLineNum = 223;BA.debugLine="End Sub"; +return ""; +} +public String _sc_result(String _atype,String _values) throws Exception{ + //BA.debugLineNum = 204;BA.debugLine="Sub sc_result(atype As String,Values As String)"; + //BA.debugLineNum = 205;BA.debugLine="CODIGO = Values"; +_codigo = _values; + //BA.debugLineNum = 206;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2(\"select CO"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS ENCONTRADO from kmt_info3 where CAT_CL_NUM_SERIEFISICO = ? order by CAT_CL_NOMBRE ",new String[]{_codigo}))); + //BA.debugLineNum = 207;BA.debugLine="c2.Position =0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 208;BA.debugLine="If c2.GetString(\"ENCONTRADO\") > 0 Then"; +if ((double)(Double.parseDouble(_c2.GetString("ENCONTRADO")))>0) { + //BA.debugLineNum = 209;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery2(\"select CA"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_CODIGO from kmt_info3 where CAT_CL_NUM_SERIEFISICO = ? order by CAT_CL_NOMBRE ",new String[]{_codigo}))); + //BA.debugLineNum = 210;BA.debugLine="s.Position =0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 211;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); + //BA.debugLineNum = 212;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_s.GetString("CAT_CL_CODIGO"))})); + //BA.debugLineNum = 213;BA.debugLine="s.Close"; +_s.Close(); + //BA.debugLineNum = 215;BA.debugLine="B4XPages.ShowPage(\"clientes\")"; +_b4xpages._showpage /*String*/ (ba,"clientes"); + }else { + //BA.debugLineNum = 217;BA.debugLine="Msgbox(\"CODIGO \" & CODIGO & \" NO ENCONTRADO\",\"AV"; +__c.Msgbox(BA.ObjectToCharSequence("CODIGO "+_codigo+" NO ENCONTRADO"),BA.ObjectToCharSequence("AVISO"),ba); + }; + //BA.debugLineNum = 219;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/gunav2/keymon/com/mx/c_cuestionario.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_cuestionario.java new file mode 100644 index 0000000..2702350 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_cuestionario.java @@ -0,0 +1,844 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class c_cuestionario 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, "gunav2.keymon.com.mx.c_cuestionario"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_cuestionario.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.ButtonWrapper _baceptarpregunta = null; +public boolean _encuestainiciada = false; +public anywheresoftware.b4a.objects.B4XViewWrapper _root2 = null; +public String _eventname = ""; +public Object _callback = null; +public String _vpreguntaactual = ""; +public anywheresoftware.b4a.sql.SQL _db = null; +public anywheresoftware.b4a.objects.PanelWrapper _panelsombra = null; +public String _cb_respuestas = ""; +public anywheresoftware.b4a.objects.PanelWrapper _panelactual = null; +public int _bringtofrontcont = 0; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _agregacolumna(String _tabla,String _columna,String _tipo) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 373;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri"; + //BA.debugLineNum = 374;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 375;BA.debugLine="Private c As Cursor = db.ExecQuery($\"SELECT COUN"; +_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)(_db.ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+__c.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+__c.SmartStringFormatter("",(Object)(_columna))+"'")))); + //BA.debugLineNum = 376;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 377;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; +if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 378;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU"; +_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"")); + //BA.debugLineNum = 379;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +__c.LogImpl("372548358",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\"."),0); + }; + } + catch (Exception e9) { + ba.setLastException(e9); //BA.debugLineNum = 382;BA.debugLine="Try"; +try { //BA.debugLineNum = 383;BA.debugLine="db.ExecNonQuery($\"ALTER TABLE ${tabla} ADD COLU"; +_db.ExecNonQuery(("ALTER TABLE "+__c.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"")); + //BA.debugLineNum = 384;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +__c.LogImpl("372548363",("Columna \""+__c.SmartStringFormatter("",(Object)(_columna))+" "+__c.SmartStringFormatter("",(Object)(_tipo))+"\", agregada a \""+__c.SmartStringFormatter("",(Object)(_tabla))+"\".."),0); + } + catch (Exception e13) { + ba.setLastException(e13); //BA.debugLineNum = 386;BA.debugLine="Log(LastException)"; +__c.LogImpl("372548365",BA.ObjectToString(__c.LastException(ba)),0); + }; + }; + //BA.debugLineNum = 389;BA.debugLine="End Sub"; +return ""; +} +public String _agregapreguntaabierta(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _ids,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{ +anywheresoftware.b4a.objects.ScrollViewWrapper _sv_cuest = null; +anywheresoftware.b4a.objects.StringUtils _su = null; +anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null; +anywheresoftware.b4a.objects.PanelWrapper _panelx = null; +anywheresoftware.b4a.objects.PanelWrapper _panel2 = null; +anywheresoftware.b4a.objects.LabelWrapper _lbl = null; +anywheresoftware.b4a.objects.EditTextWrapper[] _et = null; +anywheresoftware.b4a.objects.LabelWrapper[] _labelx = null; +int _p = 0; +anywheresoftware.b4a.objects.LabelWrapper _lx = null; +int _newtop = 0; + //BA.debugLineNum = 161;BA.debugLine="Sub agregaPreguntaAbierta(id As String, pregunta A"; + //BA.debugLineNum = 162;BA.debugLine="Log(\"Iniciamos PreguntaAbierta\")"; +__c.LogImpl("371958529","Iniciamos PreguntaAbierta",0); + //BA.debugLineNum = 163;BA.debugLine="Log(ids)"; +__c.LogImpl("371958530",BA.ObjectToString(_ids),0); + //BA.debugLineNum = 164;BA.debugLine="Log(respuestas)"; +__c.LogImpl("371958531",BA.ObjectToString(_respuestas),0); + //BA.debugLineNum = 165;BA.debugLine="Private sv_cuest As ScrollView"; +_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper(); + //BA.debugLineNum = 166;BA.debugLine="sv_cuest.Initialize(500dip)"; +_sv_cuest.Initialize(ba,__c.DipToCurrent((int) (500))); + //BA.debugLineNum = 167;BA.debugLine="encuestaIniciada = True"; +_encuestainiciada = __c.True; + //BA.debugLineNum = 168;BA.debugLine="vPreguntaActual = id"; +_vpreguntaactual = _id; + //BA.debugLineNum = 169;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")"; +_baceptarpregunta.Initialize(ba,"bAceptarPregunta"); + //BA.debugLineNum = 170;BA.debugLine="Private su As StringUtils"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 171;BA.debugLine="panelSombra.Initialize(\"pSombra\")"; +_panelsombra.Initialize(ba,"pSombra"); + //BA.debugLineNum = 172;BA.debugLine="Private cd As ColorDrawable"; +_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); + //BA.debugLineNum = 173;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)"; +_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0)); + //BA.debugLineNum = 174;BA.debugLine="panelSombra.Background = cd"; +_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject())); + //BA.debugLineNum = 175;BA.debugLine="Private panelX As Panel 'Panel de la pregunta."; +_panelx = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 176;BA.debugLine="panelX.Initialize(\"pQuest\")"; +_panelx.Initialize(ba,"pQuest"); + //BA.debugLineNum = 177;BA.debugLine="Private sv_cuest As ScrollView"; +_sv_cuest = new anywheresoftware.b4a.objects.ScrollViewWrapper(); + //BA.debugLineNum = 178;BA.debugLine="sv_cuest.Initialize(100dip)"; +_sv_cuest.Initialize(ba,__c.DipToCurrent((int) (100))); + //BA.debugLineNum = 179;BA.debugLine="Private panel2 As Panel 'Panel de la pregunta."; +_panel2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 180;BA.debugLine="panel2.Initialize(\"panel2\")"; +_panel2.Initialize(ba,"panel2"); + //BA.debugLineNum = 181;BA.debugLine="panel2.Color = Colors.Yellow"; +_panel2.setColor(__c.Colors.Yellow); + //BA.debugLineNum = 182;BA.debugLine="panelActual = panelX"; +_panelactual = _panelx; + //BA.debugLineNum = 183;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta."; +_lbl = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 184;BA.debugLine="lbl.Initialize(\"\")"; +_lbl.Initialize(ba,""); + //BA.debugLineNum = 185;BA.debugLine="lbl.Text = pregunta"; +_lbl.setText(BA.ObjectToCharSequence(_pregunta)); + //BA.debugLineNum = 186;BA.debugLine="lbl.TextSize = 16"; +_lbl.setTextSize((float) (16)); + //BA.debugLineNum = 187;BA.debugLine="lbl.TextColor = Colors.Black"; +_lbl.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 188;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)"; +_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray); + //BA.debugLineNum = 189;BA.debugLine="panelX.Background = cd"; +_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject())); + //BA.debugLineNum = 190;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20"; +_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200))); + //BA.debugLineNum = 191;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a"; +_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba)); + //BA.debugLineNum = 192;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *"; +_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40))); + //BA.debugLineNum = 193;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l"; +_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText()))); + //BA.debugLineNum = 194;BA.debugLine="Private et(respuestas.Size) As EditText"; +_et = new anywheresoftware.b4a.objects.EditTextWrapper[_respuestas.getSize()]; +{ +int d0 = _et.length; +for (int i0 = 0;i0 < d0;i0++) { +_et[i0] = new anywheresoftware.b4a.objects.EditTextWrapper(); +} +} +; + //BA.debugLineNum = 195;BA.debugLine="Private labelX(respuestas.Size) As Label"; +_labelx = new anywheresoftware.b4a.objects.LabelWrapper[_respuestas.getSize()]; +{ +int d0 = _labelx.length; +for (int i0 = 0;i0 < d0;i0++) { +_labelx[i0] = new anywheresoftware.b4a.objects.LabelWrapper(); +} +} +; + //BA.debugLineNum = 196;BA.debugLine="For p = 0 To respuestas.Size - 1"; +{ +final int step35 = 1; +final int limit35 = (int) (_respuestas.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit35 ;_p = _p + step35 ) { + //BA.debugLineNum = 197;BA.debugLine="et(p).Initialize(\"et\")"; +_et[_p].Initialize(ba,"et"); + //BA.debugLineNum = 198;BA.debugLine="labelX(p).Initialize(\"labelX\")"; +_labelx[_p].Initialize(ba,"labelX"); + //BA.debugLineNum = 199;BA.debugLine="labelX(p).Height = 60dip"; +_labelx[_p].setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 202;BA.debugLine="et(p).As(B4XView).SetTextAlignment(\"CENTER\", \"CE"; +((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_et[_p].getObject()))).SetTextAlignment("CENTER","CENTER"); + //BA.debugLineNum = 203;BA.debugLine="labelX(p).As(B4XView).SetTextAlignment(\"CENTER\","; +((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_labelx[_p].getObject()))).SetTextAlignment("CENTER","CENTER"); + //BA.debugLineNum = 204;BA.debugLine="et(p).SetTextSizeAnimated(0, 10)"; +_et[_p].SetTextSizeAnimated((int) (0),(float) (10)); + //BA.debugLineNum = 205;BA.debugLine="et(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregun"; +_et[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(_panelsombra.getObject()),(Object)("idRespuesta"),_ids.Get(_p)}).getObject())); + //BA.debugLineNum = 206;BA.debugLine="labelX(p).Text = respuestas.Get(p)"; +_labelx[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p))); + //BA.debugLineNum = 207;BA.debugLine="Private lx As Label = labelX(p)"; +_lx = new anywheresoftware.b4a.objects.LabelWrapper(); +_lx = _labelx[_p]; + //BA.debugLineNum = 208;BA.debugLine="et(p).Text = \"\""; +_et[_p].setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 209;BA.debugLine="Log($\"Agregamos ET ${labelX(p).text} - ${(70*p)}"; +__c.LogImpl("371958576",("Agregamos ET "+__c.SmartStringFormatter("",(Object)(_labelx[_p].getText()))+" - "+__c.SmartStringFormatter("",(Object)((70*_p)))+""),0); + //BA.debugLineNum = 211;BA.debugLine="Log(labelX(p).Height)"; +__c.LogImpl("371958578",BA.NumberToString(_labelx[_p].getHeight()),0); + //BA.debugLineNum = 212;BA.debugLine="sv_cuest.panel.AddView(labelX(p), 0, (70 * p), ("; +_sv_cuest.getPanel().AddView((android.view.View)(_labelx[_p].getObject()),(int) (0),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.72)),(int) (60)); + //BA.debugLineNum = 213;BA.debugLine="sv_cuest.panel.AddView(et(p), (labelX(p).Width +"; +_sv_cuest.getPanel().AddView((android.view.View)(_et[_p].getObject()),(int) ((_labelx[_p].getWidth()+5)),(int) ((70*_p)),(int) ((_panelx.getWidth()*0.2)),(int) (115)); + //BA.debugLineNum = 214;BA.debugLine="Private newTop As Int = 0 'lbl.top + lbl.Height"; +_newtop = (int) (0); + //BA.debugLineNum = 215;BA.debugLine="If p <> 0 Then newTop = et(p - 1).Top + et(p - 1"; +if (_p!=0) { +_newtop = (int) (_et[(int) (_p-1)].getTop()+_et[(int) (_p-1)].getHeight()+5);}; + //BA.debugLineNum = 216;BA.debugLine="et(p).Top = newTop"; +_et[_p].setTop(_newtop); + //BA.debugLineNum = 217;BA.debugLine="labelX(p).Top = newTop"; +_labelx[_p].setTop(_newtop); + } +}; + //BA.debugLineNum = 219;BA.debugLine="bAceptarPregunta.Text = \"Continuar\""; +_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar")); + //BA.debugLineNum = 220;BA.debugLine="panelX.AddView(sv_cuest, 10, lbl.top + lbl.Height"; +_panelx.AddView((android.view.View)(_sv_cuest.getObject()),(int) (10),(int) (_lbl.getTop()+_lbl.getHeight()+20),(int) ((_panelx.getWidth()*0.95)),__c.DipToCurrent((int) (300))); + //BA.debugLineNum = 221;BA.debugLine="sv_cuest.panel.Height = newTop + 40dip"; +_sv_cuest.getPanel().setHeight((int) (_newtop+__c.DipToCurrent((int) (40)))); + //BA.debugLineNum = 222;BA.debugLine="panelX.Height = newTop + 80dip + 35dip 'Calculamo"; +_panelx.setHeight((int) (_newtop+__c.DipToCurrent((int) (80))+__c.DipToCurrent((int) (35)))); + //BA.debugLineNum = 223;BA.debugLine="panelX.Height = 150dip + (respuestas.Size * 80) '"; +_panelx.setHeight((int) (__c.DipToCurrent((int) (150))+(_respuestas.getSize()*80))); + //BA.debugLineNum = 225;BA.debugLine="If panelX.Height > (Root2.Height * 0.7) Then ' Si"; +if (_panelx.getHeight()>(_root2.getHeight()*0.7)) { + //BA.debugLineNum = 226;BA.debugLine="panelX.Height = Root2.Height * 0.7"; +_panelx.setHeight((int) (_root2.getHeight()*0.7)); + }; + //BA.debugLineNum = 228;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, (panelX.Heig"; +_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) ((_panelx.getHeight()-__c.DipToCurrent((int) (55)))),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50))); + //BA.debugLineNum = 229;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc"; +_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2))); + //BA.debugLineNum = 230;BA.debugLine="bAceptarPregunta.Enabled = False"; +_baceptarpregunta.setEnabled(__c.False); + //BA.debugLineNum = 231;BA.debugLine="sv_cuest.Height = panelX.Height - (lbl.Top + lbl."; +_sv_cuest.setHeight((int) (_panelx.getHeight()-(_lbl.getTop()+_lbl.getHeight())-__c.DipToCurrent((int) (55)))); + //BA.debugLineNum = 232;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /"; +_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2))); + //BA.debugLineNum = 233;BA.debugLine="panelX.top = (Root2.Height / 2) - (panelX.Height"; +_panelx.setTop((int) ((_root2.getHeight()/(double)2)-(_panelx.getHeight()/(double)2))); + //BA.debugLineNum = 234;BA.debugLine="If respuestas.Size < 10 Then panelX.top = (Root2."; +if (_respuestas.getSize()<10) { +_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)2)));}; + //BA.debugLineNum = 235;BA.debugLine="panelSombra.Width = Root2.Width"; +_panelsombra.setWidth(_root2.getWidth()); + //BA.debugLineNum = 236;BA.debugLine="panelSombra.Height = Root2.Height"; +_panelsombra.setHeight(_root2.getHeight()); + //BA.debugLineNum = 237;BA.debugLine="panelSombra.Elevation = 100dip"; +_panelsombra.setElevation((float) (__c.DipToCurrent((int) (100)))); + //BA.debugLineNum = 238;BA.debugLine="panelSombra.BringToFront"; +_panelsombra.BringToFront(); + //BA.debugLineNum = 239;BA.debugLine="bringToFrontCont = 0"; +_bringtofrontcont = (int) (0); + //BA.debugLineNum = 240;BA.debugLine="End Sub"; +return ""; +} +public String _agregapreguntacheckbox(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{ +anywheresoftware.b4a.objects.StringUtils _su = null; +anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null; +anywheresoftware.b4a.objects.PanelWrapper _panelx = null; +anywheresoftware.b4a.objects.LabelWrapper _lbl = null; +anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper[] _cb = null; +int _p = 0; +int _newtop = 0; + //BA.debugLineNum = 63;BA.debugLine="Sub agregaPreguntaCheckbox(id As String, pregunta"; + //BA.debugLineNum = 64;BA.debugLine="encuestaIniciada = True"; +_encuestainiciada = __c.True; + //BA.debugLineNum = 65;BA.debugLine="vPreguntaActual = id"; +_vpreguntaactual = _id; + //BA.debugLineNum = 66;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")"; +_baceptarpregunta.Initialize(ba,"bAceptarPregunta"); + //BA.debugLineNum = 67;BA.debugLine="bAceptarPregunta.Enabled = False"; +_baceptarpregunta.setEnabled(__c.False); + //BA.debugLineNum = 68;BA.debugLine="Private su As StringUtils"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 69;BA.debugLine="panelSombra.Initialize(\"pSombra\")"; +_panelsombra.Initialize(ba,"pSombra"); + //BA.debugLineNum = 70;BA.debugLine="Private cd As ColorDrawable"; +_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); + //BA.debugLineNum = 71;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)"; +_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0)); + //BA.debugLineNum = 72;BA.debugLine="panelSombra.Background = cd"; +_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject())); + //BA.debugLineNum = 73;BA.debugLine="Private panelX As Panel 'Panel de la pregunta."; +_panelx = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 74;BA.debugLine="panelX.Initialize(\"pQuest\")"; +_panelx.Initialize(ba,"pQuest"); + //BA.debugLineNum = 75;BA.debugLine="panelActual = panelX"; +_panelactual = _panelx; + //BA.debugLineNum = 76;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta."; +_lbl = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 77;BA.debugLine="lbl.Initialize(\"\")"; +_lbl.Initialize(ba,""); + //BA.debugLineNum = 78;BA.debugLine="lbl.Text = pregunta"; +_lbl.setText(BA.ObjectToCharSequence(_pregunta)); + //BA.debugLineNum = 79;BA.debugLine="lbl.TextSize = 16"; +_lbl.setTextSize((float) (16)); + //BA.debugLineNum = 80;BA.debugLine="lbl.TextColor = Colors.Black"; +_lbl.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 81;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)"; +_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray); + //BA.debugLineNum = 82;BA.debugLine="panelX.Background = cd"; +_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject())); + //BA.debugLineNum = 83;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20"; +_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200))); + //BA.debugLineNum = 84;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a"; +_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba)); + //BA.debugLineNum = 85;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *"; +_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40))); + //BA.debugLineNum = 86;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l"; +_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText()))); + //BA.debugLineNum = 87;BA.debugLine="Private cb(respuestas.Size) As CheckBox"; +_cb = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper[_respuestas.getSize()]; +{ +int d0 = _cb.length; +for (int i0 = 0;i0 < d0;i0++) { +_cb[i0] = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); +} +} +; + //BA.debugLineNum = 88;BA.debugLine="For p = 0 To respuestas.Size - 1"; +{ +final int step25 = 1; +final int limit25 = (int) (_respuestas.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit25 ;_p = _p + step25 ) { + //BA.debugLineNum = 89;BA.debugLine="cb(p).Initialize(\"cb\")"; +_cb[_p].Initialize(ba,"cb"); + //BA.debugLineNum = 90;BA.debugLine="cb(p).Text = respuestas.Get(p)"; +_cb[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p))); + //BA.debugLineNum = 91;BA.debugLine="cb(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregun"; +_cb[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(_panelsombra.getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject())); + //BA.debugLineNum = 92;BA.debugLine="panelX.AddView(cb(p), 10dip, (70 * (p + 1)), (pa"; +_panelx.AddView((android.view.View)(_cb[_p].getObject()),__c.DipToCurrent((int) (10)),(int) ((70*(_p+1))),(int) ((_panelx.getWidth()*0.9)),(int) (10)); + //BA.debugLineNum = 93;BA.debugLine="cb(p).Height = su.MeasureMultilineTextHeight(cb("; +_cb[_p].setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_cb[_p].getObject()),BA.ObjectToCharSequence(_cb[_p].getText()))+1)); + //BA.debugLineNum = 94;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1"; +_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10); + //BA.debugLineNum = 95;BA.debugLine="If p <> 0 Then newTop =cb(p - 1).Top + cb(p - 1)"; +if (_p!=0) { +_newtop = (int) (_cb[(int) (_p-1)].getTop()+_cb[(int) (_p-1)].getHeight()+10);}; + //BA.debugLineNum = 96;BA.debugLine="cb(p).Top = newTop"; +_cb[_p].setTop(_newtop); + } +}; + //BA.debugLineNum = 98;BA.debugLine="bAceptarPregunta.Text = \"Continuar\""; +_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar")); + //BA.debugLineNum = 100;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + cb("; +_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) (_newtop+_cb[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50))); + //BA.debugLineNum = 101;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc"; +_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2))); + //BA.debugLineNum = 102;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr"; +_panelx.setHeight((int) (_baceptarpregunta.getTop()+_baceptarpregunta.getHeight()+__c.DipToCurrent((int) (15)))); + //BA.debugLineNum = 103;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /"; +_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2))); + //BA.debugLineNum = 104;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height"; +_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)3))); + //BA.debugLineNum = 105;BA.debugLine="panelSombra.Width = Root2.Width"; +_panelsombra.setWidth(_root2.getWidth()); + //BA.debugLineNum = 106;BA.debugLine="panelSombra.Height = Root2.Height"; +_panelsombra.setHeight(_root2.getHeight()); + //BA.debugLineNum = 107;BA.debugLine="panelSombra.Elevation = 100"; +_panelsombra.setElevation((float) (100)); + //BA.debugLineNum = 108;BA.debugLine="panelSombra.BringToFront"; +_panelsombra.BringToFront(); + //BA.debugLineNum = 110;BA.debugLine="End Sub"; +return ""; +} +public String _agregapreguntaradio(String _id,String _pregunta,anywheresoftware.b4a.objects.collections.List _respuestas) throws Exception{ +anywheresoftware.b4a.objects.StringUtils _su = null; +anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null; +anywheresoftware.b4a.objects.PanelWrapper _panelx = null; +anywheresoftware.b4a.objects.LabelWrapper _lbl = null; +anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper[] _r = null; +int _p = 0; +int _newtop = 0; + //BA.debugLineNum = 112;BA.debugLine="Sub agregaPreguntaRadio(id As String, pregunta As"; + //BA.debugLineNum = 113;BA.debugLine="encuestaIniciada = True"; +_encuestainiciada = __c.True; + //BA.debugLineNum = 114;BA.debugLine="vPreguntaActual = id"; +_vpreguntaactual = _id; + //BA.debugLineNum = 115;BA.debugLine="bAceptarPregunta.Initialize(\"bAceptarPregunta\")"; +_baceptarpregunta.Initialize(ba,"bAceptarPregunta"); + //BA.debugLineNum = 116;BA.debugLine="Private su As StringUtils"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 117;BA.debugLine="panelSombra.Initialize(\"pSombra\")"; +_panelsombra.Initialize(ba,"pSombra"); + //BA.debugLineNum = 118;BA.debugLine="Private cd As ColorDrawable"; +_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); + //BA.debugLineNum = 119;BA.debugLine="cd.Initialize(Colors.ARGB(125, 98, 98, 98), 0)"; +_cd.Initialize(__c.Colors.ARGB((int) (125),(int) (98),(int) (98),(int) (98)),(int) (0)); + //BA.debugLineNum = 120;BA.debugLine="panelSombra.Background = cd"; +_panelsombra.setBackground((android.graphics.drawable.Drawable)(_cd.getObject())); + //BA.debugLineNum = 121;BA.debugLine="Private panelX As Panel 'Panel de la pregunta."; +_panelx = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 122;BA.debugLine="panelX.Initialize(\"pQuest\")"; +_panelx.Initialize(ba,"pQuest"); + //BA.debugLineNum = 123;BA.debugLine="panelActual = panelX"; +_panelactual = _panelx; + //BA.debugLineNum = 124;BA.debugLine="Private lbl As Label 'Etiqueta de la pregunta."; +_lbl = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 125;BA.debugLine="lbl.Initialize(\"\")"; +_lbl.Initialize(ba,""); + //BA.debugLineNum = 126;BA.debugLine="lbl.Text = pregunta"; +_lbl.setText(BA.ObjectToCharSequence(_pregunta)); + //BA.debugLineNum = 127;BA.debugLine="lbl.TextSize = 16"; +_lbl.setTextSize((float) (16)); + //BA.debugLineNum = 128;BA.debugLine="lbl.TextColor = Colors.Black"; +_lbl.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 129;BA.debugLine="cd.Initialize2(Colors.white, 20, 1, Colors.Gray)"; +_cd.Initialize2(__c.Colors.White,(int) (20),(int) (1),__c.Colors.Gray); + //BA.debugLineNum = 130;BA.debugLine="panelX.Background = cd"; +_panelx.setBackground((android.graphics.drawable.Drawable)(_cd.getObject())); + //BA.debugLineNum = 131;BA.debugLine="panelSombra.AddView(panelX, 10dip, 0dip, 80%x, 20"; +_panelsombra.AddView((android.view.View)(_panelx.getObject()),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (0)),__c.PerXToCurrent((float) (80),ba),__c.DipToCurrent((int) (200))); + //BA.debugLineNum = 132;BA.debugLine="Root2.AddView(panelSombra, 0, 0, 100%x, 100%y) 'a"; +_root2.AddView((android.view.View)(_panelsombra.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba)); + //BA.debugLineNum = 133;BA.debugLine="panelX.AddView(lbl, 20dip, 20dip, (panelX.Width *"; +_panelx.AddView((android.view.View)(_lbl.getObject()),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20)),(int) ((_panelx.getWidth()*0.9)),__c.DipToCurrent((int) (40))); + //BA.debugLineNum = 134;BA.debugLine="lbl.Height = su.MeasureMultilineTextHeight(lbl, l"; +_lbl.setHeight(_su.MeasureMultilineTextHeight((android.widget.TextView)(_lbl.getObject()),BA.ObjectToCharSequence(_lbl.getText()))); + //BA.debugLineNum = 135;BA.debugLine="Private r(respuestas.Size) As RadioButton"; +_r = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper[_respuestas.getSize()]; +{ +int d0 = _r.length; +for (int i0 = 0;i0 < d0;i0++) { +_r[i0] = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); +} +} +; + //BA.debugLineNum = 136;BA.debugLine="For p = 0 To respuestas.Size - 1"; +{ +final int step24 = 1; +final int limit24 = (int) (_respuestas.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit24 ;_p = _p + step24 ) { + //BA.debugLineNum = 137;BA.debugLine="r(p).Initialize(\"r\")"; +_r[_p].Initialize(ba,"r"); + //BA.debugLineNum = 138;BA.debugLine="r(p).Text = respuestas.Get(p)"; +_r[_p].setText(BA.ObjectToCharSequence(_respuestas.Get(_p))); + //BA.debugLineNum = 139;BA.debugLine="r(p).Tag = CreateMap(\"id\":id, \"pregunta\":pregunt"; +_r[_p].setTag((Object)(__c.createMap(new Object[] {(Object)("id"),(Object)(_id),(Object)("pregunta"),(Object)(_pregunta),(Object)("panel"),(Object)(_panelsombra.getObject()),(Object)("idRespuesta"),(Object)(_p+1)}).getObject())); + //BA.debugLineNum = 140;BA.debugLine="panelX.AddView(r(p), 10dip, (70 * (p + 1)), (pan"; +_panelx.AddView((android.view.View)(_r[_p].getObject()),__c.DipToCurrent((int) (10)),(int) ((70*(_p+1))),(int) ((_panelx.getWidth()*0.9)),(int) (10)); + //BA.debugLineNum = 141;BA.debugLine="r(p).Height = su.MeasureMultilineTextHeight(r(p)"; +_r[_p].setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_r[_p].getObject()),BA.ObjectToCharSequence(_r[_p].getText()))+25)); + //BA.debugLineNum = 142;BA.debugLine="Private newTop As Int = lbl.top + lbl.Height + 1"; +_newtop = (int) (_lbl.getTop()+_lbl.getHeight()+10); + //BA.debugLineNum = 143;BA.debugLine="If p <> 0 Then newTop = r(p - 1).Top + r(p - 1)."; +if (_p!=0) { +_newtop = (int) (_r[(int) (_p-1)].getTop()+_r[(int) (_p-1)].getHeight()+5);}; + //BA.debugLineNum = 144;BA.debugLine="r(p).Top = newTop"; +_r[_p].setTop(_newtop); + } +}; + //BA.debugLineNum = 146;BA.debugLine="r(0).Checked = True"; +_r[(int) (0)].setChecked(__c.True); + //BA.debugLineNum = 147;BA.debugLine="bAceptarPregunta.Text = \"Continuar\""; +_baceptarpregunta.setText(BA.ObjectToCharSequence("Continuar")); + //BA.debugLineNum = 149;BA.debugLine="panelX.AddView(bAceptarPregunta, 10, newTop + r(r"; +_panelx.AddView((android.view.View)(_baceptarpregunta.getObject()),(int) (10),(int) (_newtop+_r[(int) (_respuestas.getSize()-1)].getHeight()+20),__c.DipToCurrent((int) (150)),__c.DipToCurrent((int) (50))); + //BA.debugLineNum = 150;BA.debugLine="bAceptarPregunta.Left = (panelX.Width / 2) - (bAc"; +_baceptarpregunta.setLeft((int) ((_panelx.getWidth()/(double)2)-(_baceptarpregunta.getWidth()/(double)2))); + //BA.debugLineNum = 151;BA.debugLine="panelX.Height = bAceptarPregunta.Top + bAceptarPr"; +_panelx.setHeight((int) (_baceptarpregunta.getTop()+_baceptarpregunta.getHeight()+__c.DipToCurrent((int) (15)))); + //BA.debugLineNum = 152;BA.debugLine="panelX.left = (Root2.Width / 2) - (panelX.Width /"; +_panelx.setLeft((int) ((_root2.getWidth()/(double)2)-(_panelx.getWidth()/(double)2))); + //BA.debugLineNum = 153;BA.debugLine="panelX.top = (Root2.Height / 3) - (panelX.Height"; +_panelx.setTop((int) ((_root2.getHeight()/(double)3)-(_panelx.getHeight()/(double)2))); + //BA.debugLineNum = 154;BA.debugLine="panelSombra.Width = Root2.Width"; +_panelsombra.setWidth(_root2.getWidth()); + //BA.debugLineNum = 155;BA.debugLine="panelSombra.Height = Root2.Height"; +_panelsombra.setHeight(_root2.getHeight()); + //BA.debugLineNum = 156;BA.debugLine="panelSombra.Elevation = 100"; +_panelsombra.setElevation((float) (100)); + //BA.debugLineNum = 157;BA.debugLine="panelSombra.BringToFront"; +_panelsombra.BringToFront(); + //BA.debugLineNum = 158;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="End Sub"; +return ""; +} +public String _baceptarpregunta_click() throws Exception{ +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 338;BA.debugLine="Private Sub bAceptarPregunta_Click"; + //BA.debugLineNum = 339;BA.debugLine="encuestaIniciada = True"; +_encuestainiciada = __c.True; + //BA.debugLineNum = 340;BA.debugLine="Private m As Map = Sender.As(Button).tag.As(Map)"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.ButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ButtonWrapper(), (android.widget.Button)(__c.Sender(ba)))).getTag()))); + //BA.debugLineNum = 341;BA.debugLine="preguntaContestada(m)"; +_preguntacontestada(_m); + //BA.debugLineNum = 354;BA.debugLine="End Sub"; +return ""; +} +public String _cb_checkedchange(boolean _checked) throws Exception{ +anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper _elcb = null; +anywheresoftware.b4a.objects.collections.Map _elcbmap = null; +int _cuantoschks = 0; +anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null; +String _cb_idrespuestas = ""; + //BA.debugLineNum = 255;BA.debugLine="private Sub cb_CheckedChange(Checked As Boolean)"; + //BA.debugLineNum = 256;BA.debugLine="Private elCB As CheckBox = Sender.As(CheckBox)"; +_elcb = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); +_elcb = ((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(__c.Sender(ba)))); + //BA.debugLineNum = 257;BA.debugLine="Private elCBMap As Map = elCB.tag.As(Map)"; +_elcbmap = new anywheresoftware.b4a.objects.collections.Map(); +_elcbmap = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_elcb.getTag()))); + //BA.debugLineNum = 258;BA.debugLine="Private cuantosChks As Int = 0"; +_cuantoschks = (int) (0); + //BA.debugLineNum = 260;BA.debugLine="If elCB.Text = \"Ninguno de los anteriores\" And el"; +if ((_elcb.getText()).equals("Ninguno de los anteriores") && _elcb.getChecked()==__c.True) { + //BA.debugLineNum = 261;BA.debugLine="For Each v As View In panelActual.GetAllViewsRec"; +_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper(); +{ +final anywheresoftware.b4a.BA.IterableList group5 = _panelactual.GetAllViewsRecursive(); +final int groupLen5 = group5.getSize() +;int index5 = 0; +; +for (; index5 < groupLen5;index5++){ +_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group5.Get(index5))); + //BA.debugLineNum = 262;BA.debugLine="If getViewType(v) = \"CheckBox\" Then"; +if ((_getviewtype(_v)).equals("CheckBox")) { + //BA.debugLineNum = 263;BA.debugLine="cuantosChks = cuantosChks + 1"; +_cuantoschks = (int) (_cuantoschks+1); + //BA.debugLineNum = 264;BA.debugLine="v.As(CheckBox).Checked = False"; +((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setChecked(__c.False); + //BA.debugLineNum = 265;BA.debugLine="v.As(CheckBox).Enabled = False"; +((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.False); + //BA.debugLineNum = 268;BA.debugLine="If v.As(CheckBox).Text = \"Ninguno de los anter"; +if ((((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText()).equals("Ninguno de los anteriores")) { + //BA.debugLineNum = 269;BA.debugLine="v.As(CheckBox).Enabled = True"; +((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.True); + //BA.debugLineNum = 270;BA.debugLine="v.As(CheckBox).Checked = True"; +((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setChecked(__c.True); + }; + //BA.debugLineNum = 272;BA.debugLine="If v.As(CheckBox).Checked Then cb_respuestas ="; +if (((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getChecked()) { +_cb_respuestas = _cb_respuestas+"|"+((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText();}; + }; + } +}; + }else if((_elcb.getText()).equals("Ninguno de los anteriores") && _elcb.getChecked()==__c.False) { + //BA.debugLineNum = 276;BA.debugLine="For Each v As View In panelActual.GetAllViewsRec"; +_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper(); +{ +final anywheresoftware.b4a.BA.IterableList group18 = _panelactual.GetAllViewsRecursive(); +final int groupLen18 = group18.getSize() +;int index18 = 0; +; +for (; index18 < groupLen18;index18++){ +_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group18.Get(index18))); + //BA.debugLineNum = 277;BA.debugLine="If getViewType(v) = \"CheckBox\" Then"; +if ((_getviewtype(_v)).equals("CheckBox")) { + //BA.debugLineNum = 278;BA.debugLine="v.As(CheckBox).Enabled = True"; +((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).setEnabled(__c.True); + }; + } +}; + }; + //BA.debugLineNum = 282;BA.debugLine="If cuantosChks = 0 Then bAceptarPregunta.Enabled"; +if (_cuantoschks==0) { +_baceptarpregunta.setEnabled(__c.False);}; + //BA.debugLineNum = 283;BA.debugLine="cb_respuestas = \"\""; +_cb_respuestas = ""; + //BA.debugLineNum = 284;BA.debugLine="Private cb_idRespuestas As String= \"\""; +_cb_idrespuestas = ""; + //BA.debugLineNum = 285;BA.debugLine="For Each v As View In panelActual.GetAllViewsRecu"; +_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper(); +{ +final anywheresoftware.b4a.BA.IterableList group27 = _panelactual.GetAllViewsRecursive(); +final int groupLen27 = group27.getSize() +;int index27 = 0; +; +for (; index27 < groupLen27;index27++){ +_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group27.Get(index27))); + //BA.debugLineNum = 287;BA.debugLine="If getViewType(v) = \"CheckBox\" Then"; +if ((_getviewtype(_v)).equals("CheckBox")) { + //BA.debugLineNum = 290;BA.debugLine="If v.As(CheckBox).Checked Then"; +if (((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getChecked()) { + //BA.debugLineNum = 292;BA.debugLine="If cb_respuestas = \"\" Then"; +if ((_cb_respuestas).equals("")) { + //BA.debugLineNum = 293;BA.debugLine="cb_respuestas = v.As(CheckBox).Text"; +_cb_respuestas = ((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText(); + //BA.debugLineNum = 294;BA.debugLine="cb_idRespuestas = v.As(CheckBox).Tag.As(Map)."; +_cb_idrespuestas = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta"))); + }else { + //BA.debugLineNum = 296;BA.debugLine="cb_respuestas = cb_respuestas &\"|\" & v.As(Che"; +_cb_respuestas = _cb_respuestas+"|"+((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getText(); + //BA.debugLineNum = 297;BA.debugLine="cb_idRespuestas = cb_idRespuestas &\"|\" & v.As"; +_cb_idrespuestas = _cb_idrespuestas+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(), (android.widget.CheckBox)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta"))); + }; + //BA.debugLineNum = 299;BA.debugLine="bAceptarPregunta.Enabled = True ' Si hay opcio"; +_baceptarpregunta.setEnabled(__c.True); + }; + }; + } +}; + //BA.debugLineNum = 306;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":elC"; +_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(_elcbmap.Get((Object)("id"))))),(Object)("pregunta"),_elcbmap.Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_cb_idrespuestas),(Object)("respuesta"),(Object)(_cb_respuestas),(Object)("panel"),_elcbmap.Get((Object)("panel"))}).getObject())); + //BA.debugLineNum = 307;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 bAceptarPregunta As Button"; +_baceptarpregunta = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 5;BA.debugLine="Dim encuestaIniciada As Boolean = False"; +_encuestainiciada = __c.False; + //BA.debugLineNum = 6;BA.debugLine="Private Root2 As B4XView"; +_root2 = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Private EventName As String 'ignore"; +_eventname = ""; + //BA.debugLineNum = 8;BA.debugLine="Private CallBack As Object 'ignore"; +_callback = new Object(); + //BA.debugLineNum = 9;BA.debugLine="Private vPreguntaActual As String"; +_vpreguntaactual = ""; + //BA.debugLineNum = 10;BA.debugLine="Private db As SQL"; +_db = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 12;BA.debugLine="Dim panelSombra As Panel 'Panel de sombra."; +_panelsombra = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim cb_respuestas As String = \"\""; +_cb_respuestas = ""; + //BA.debugLineNum = 14;BA.debugLine="Dim panelActual As Panel"; +_panelactual = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim bringToFrontCont As Int = 0"; +_bringtofrontcont = (int) (0); + //BA.debugLineNum = 16;BA.debugLine="End Sub"; +return ""; +} +public boolean _clienteconcuestionario(String _idcliente) throws Exception{ +boolean _r = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 357;BA.debugLine="Sub clienteConCuestionario(idCliente As String) As"; + //BA.debugLineNum = 358;BA.debugLine="Private r As Boolean = False"; +_r = __c.False; + //BA.debugLineNum = 359;BA.debugLine="Private c As Cursor = db.ExecQuery($\"select count"; +_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)(_db.ExecQuery(("select count(*) as q from CUESTIONARIO where Q_IDCLIENTE = '"+__c.SmartStringFormatter("",(Object)(_idcliente))+"'")))); + //BA.debugLineNum = 360;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 361;BA.debugLine="If c.GetInt(\"q\") > 0 Then r = True"; +if (_c.GetInt("q")>0) { +_r = __c.True;}; + //BA.debugLineNum = 362;BA.debugLine="Return r"; +if (true) return _r; + //BA.debugLineNum = 363;BA.debugLine="End Sub"; +return false; +} +public String _et_textchanged(String _old,String _new) throws Exception{ +int _ettotales = 0; +int _etcont = 0; +String _etresps = ""; +String _etidresps = ""; +anywheresoftware.b4a.objects.ConcreteViewWrapper _v = null; + //BA.debugLineNum = 309;BA.debugLine="Private Sub et_TextChanged(Old As String, New As S"; + //BA.debugLineNum = 310;BA.debugLine="Log($\"${Old}, ${New}\"$)"; +__c.LogImpl("372286209",(""+__c.SmartStringFormatter("",(Object)(_old))+", "+__c.SmartStringFormatter("",(Object)(_new))+""),0); + //BA.debugLineNum = 311;BA.debugLine="Private etTotales As Int = 0"; +_ettotales = (int) (0); + //BA.debugLineNum = 312;BA.debugLine="Private etCont As Int = 0"; +_etcont = (int) (0); + //BA.debugLineNum = 313;BA.debugLine="Private etResps As String = \"\""; +_etresps = ""; + //BA.debugLineNum = 314;BA.debugLine="Private etIdResps As String = \"\""; +_etidresps = ""; + //BA.debugLineNum = 315;BA.debugLine="For Each v As View In panelActual.GetAllViewsRecu"; +_v = new anywheresoftware.b4a.objects.ConcreteViewWrapper(); +{ +final anywheresoftware.b4a.BA.IterableList group6 = _panelactual.GetAllViewsRecursive(); +final int groupLen6 = group6.getSize() +;int index6 = 0; +; +for (; index6 < groupLen6;index6++){ +_v = (anywheresoftware.b4a.objects.ConcreteViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ConcreteViewWrapper(), (android.view.View)(group6.Get(index6))); + //BA.debugLineNum = 317;BA.debugLine="If getViewType(v) = \"EditText\" Then"; +if ((_getviewtype(_v)).equals("EditText")) { + //BA.debugLineNum = 318;BA.debugLine="etTotales = etTotales + 1"; +_ettotales = (int) (_ettotales+1); + //BA.debugLineNum = 320;BA.debugLine="If v.As(EditText).text <> \"\" Then"; +if ((((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText()).equals("") == false) { + //BA.debugLineNum = 321;BA.debugLine="etCont = etCont + 1"; +_etcont = (int) (_etcont+1); + //BA.debugLineNum = 322;BA.debugLine="If etResps = \"\" Then"; +if ((_etresps).equals("")) { + //BA.debugLineNum = 323;BA.debugLine="etResps = v.As(EditText).Text"; +_etresps = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText(); + //BA.debugLineNum = 324;BA.debugLine="etIdResps = v.As(EditText).Tag.As(Map).Get(\"i"; +_etidresps = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta"))); + }else { + //BA.debugLineNum = 326;BA.debugLine="etResps = etResps &\"|\" & v.As(EditText).Text"; +_etresps = _etresps+"|"+((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getText(); + //BA.debugLineNum = 327;BA.debugLine="etIdResps = etIdResps &\"|\" & v.As(EditText).T"; +_etidresps = _etidresps+"|"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_v.getObject()))).getTag()))).Get((Object)("idRespuesta"))); + }; + }; + }; + } +}; + //BA.debugLineNum = 333;BA.debugLine="Log($\"${etCont}, ${etTotales}\"$)"; +__c.LogImpl("372286232",(""+__c.SmartStringFormatter("",(Object)(_etcont))+", "+__c.SmartStringFormatter("",(Object)(_ettotales))+""),0); + //BA.debugLineNum = 334;BA.debugLine="bAceptarPregunta.Tag = CreateMap(\"idPregunta\":Sen"; +_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)(_etidresps),(Object)("respuesta"),(Object)(_etresps),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject())); + //BA.debugLineNum = 335;BA.debugLine="If etCont = etTotales Then bAceptarPregunta.Enabl"; +if (_etcont==_ettotales) { +_baceptarpregunta.setEnabled(__c.True);} +else { +_baceptarpregunta.setEnabled(__c.False);}; + //BA.debugLineNum = 336;BA.debugLine="End Sub"; +return ""; +} +public String _getviewtype(anywheresoftware.b4a.objects.ConcreteViewWrapper _v) throws Exception{ +String _t = ""; +String[] _t2 = null; + //BA.debugLineNum = 391;BA.debugLine="Sub getViewType (v As View) As String 'ignore"; + //BA.debugLineNum = 392;BA.debugLine="Private t As String = GetType(v)"; +_t = __c.GetType((Object)(_v.getObject())); + //BA.debugLineNum = 394;BA.debugLine="Private t2() As String = Regex.Split(\"\\.\", t)"; +_t2 = __c.Regex.Split("\\.",_t); + //BA.debugLineNum = 396;BA.debugLine="If t2.Length = 3 Then"; +if (_t2.length==3) { + //BA.debugLineNum = 397;BA.debugLine="t = t2(2)"; +_t = _t2[(int) (2)]; + }; + //BA.debugLineNum = 399;BA.debugLine="Return t"; +if (true) return _t; + //BA.debugLineNum = 400;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname,anywheresoftware.b4a.objects.B4XViewWrapper _vroot,anywheresoftware.b4a.sql.SQL _skmt) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 19;BA.debugLine="Public Sub Initialize (vCallback As Object, vEvent"; + //BA.debugLineNum = 20;BA.debugLine="Root2 = vRoot"; +_root2 = _vroot; + //BA.debugLineNum = 21;BA.debugLine="EventName = vEventName"; +_eventname = _veventname; + //BA.debugLineNum = 22;BA.debugLine="CallBack = vCallback"; +_callback = _vcallback; + //BA.debugLineNum = 23;BA.debugLine="db = skmt"; +_db = _skmt; + //BA.debugLineNum = 24;BA.debugLine="vPreguntaActual = 0"; +_vpreguntaactual = BA.NumberToString(0); + //BA.debugLineNum = 25;BA.debugLine="db.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS CUEST"; +_db.ExecNonQuery("CREATE TABLE IF NOT EXISTS CUESTIONARIO (Q_RUTA TEXT, Q_ALMACEN TEXT, Q_IDCLIENTE TEXT, Q_IDPREGUNTA TEXT, Q_PREGUNTA TEXT, Q_IDRESPUESTA TEXT, Q_RESPUESTA TEXT, Q_FECHA TEXT, Q_ENVIO_OK INTEGER DEFAULT 0)"); + //BA.debugLineNum = 26;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_RUTA\", \"TEXT\")"; +_agregacolumna("CUESTIONARIO","Q_RUTA","TEXT"); + //BA.debugLineNum = 27;BA.debugLine="agregaColumna(\"CUESTIONARIO\", \"Q_ALMACEN\", \"TEXT\""; +_agregacolumna("CUESTIONARIO","Q_ALMACEN","TEXT"); + //BA.debugLineNum = 28;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 29;BA.debugLine="End Sub"; +return null; +} +public String _ocultpanelpregunta() throws Exception{ + //BA.debugLineNum = 366;BA.debugLine="Sub ocultPanelPregunta"; + //BA.debugLineNum = 367;BA.debugLine="If panelSombra.IsInitialized Then panelSombra.Rem"; +if (_panelsombra.IsInitialized()) { +_panelsombra.RemoveView();}; + //BA.debugLineNum = 368;BA.debugLine="End Sub"; +return ""; +} +public String _preguntaactual() throws Exception{ + //BA.debugLineNum = 43;BA.debugLine="Sub preguntaActual As String 'ignore"; + //BA.debugLineNum = 44;BA.debugLine="Return vPreguntaActual"; +if (true) return _vpreguntaactual; + //BA.debugLineNum = 45;BA.debugLine="End Sub"; +return ""; +} +public String _preguntacontestada(anywheresoftware.b4a.objects.collections.Map _success) throws Exception{ + //BA.debugLineNum = 242;BA.debugLine="private Sub preguntaContestada(Success As Map) 'ig"; + //BA.debugLineNum = 243;BA.debugLine="If SubExists(CallBack, EventName & \"_preguntaCont"; +if (__c.SubExists(ba,_callback,_eventname+"_preguntaContestada")) { + //BA.debugLineNum = 244;BA.debugLine="CallSubDelayed2(CallBack, EventName & \"_pregunta"; +__c.CallSubDelayed2(ba,_callback,_eventname+"_preguntaContestada",(Object)(_success)); + }; + //BA.debugLineNum = 246;BA.debugLine="End Sub"; +return ""; +} +public String _psombra_click() throws Exception{ + //BA.debugLineNum = 248;BA.debugLine="private Sub pSombra_Click"; + //BA.debugLineNum = 249;BA.debugLine="End Sub"; +return ""; +} +public String _r_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 251;BA.debugLine="private Sub r_CheckedChange(Checked As Boolean)"; + //BA.debugLineNum = 252;BA.debugLine="bAceptarPregunta.tag = CreateMap(\"idPregunta\":Sen"; +_baceptarpregunta.setTag((Object)(__c.createMap(new Object[] {(Object)("idPregunta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("id"))))),(Object)("pregunta"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("pregunta")),(Object)("idRespuesta"),(Object)((BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("idRespuesta"))))),(Object)("respuesta"),(Object)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getText()),(Object)("panel"),((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(((anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(), (android.widget.RadioButton)(__c.Sender(ba)))).getTag()))).Get((Object)("panel"))}).getObject())); + //BA.debugLineNum = 253;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.collections.List _strtolist(String _str) throws Exception{ +String[] _resps = null; +anywheresoftware.b4a.objects.collections.List _l = null; +int _r = 0; + //BA.debugLineNum = 403;BA.debugLine="Sub strToList(str As String) As List 'ignore"; + //BA.debugLineNum = 404;BA.debugLine="Private resps() As String = Regex.Split(\"\\|\", str"; +_resps = __c.Regex.Split("\\|",_str); + //BA.debugLineNum = 405;BA.debugLine="Private l As List"; +_l = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 406;BA.debugLine="l.Initialize"; +_l.Initialize(); + //BA.debugLineNum = 407;BA.debugLine="For r = 0 To resps.Length - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_resps.length-1); +_r = (int) (0) ; +for (;_r <= limit4 ;_r = _r + step4 ) { + //BA.debugLineNum = 408;BA.debugLine="l.Add(resps(r))"; +_l.Add((Object)(_resps[_r])); + } +}; + //BA.debugLineNum = 410;BA.debugLine="Return l"; +if (true) return _l; + //BA.debugLineNum = 411;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/gunav2/keymon/com/mx/c_historico.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_historico.java new file mode 100644 index 0000000..458b595 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_historico.java @@ -0,0 +1,311 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_historico"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 String _ruta = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _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 _borra = null; +public String _existe = ""; +public String _result = ""; +public anywheresoftware.b4a.objects.LabelWrapper _titulo = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_desc = null; +public anywheresoftware.b4a.objects.ListViewWrapper _listview2 = null; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_nota = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b4xpage_appear() throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; + //BA.debugLineNum = 53;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 54;BA.debugLine="p_nota.Height = Root.Height * 0.9"; +_p_nota.setHeight((int) (_root.getHeight()*0.9)); + //BA.debugLineNum = 55;BA.debugLine="p_nota.Width = Root.Width * 0.9"; +_p_nota.setWidth((int) (_root.getWidth()*0.9)); + //BA.debugLineNum = 56;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 57;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 58;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 59;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 61;BA.debugLine="L_CANT.Text =\"\""; +_l_cant.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 62;BA.debugLine="L_TOTAL.Text=\"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 63;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 64;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 65;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 66;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 67;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HVD_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_FECHA asc"))); + //BA.debugLineNum = 68;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 69;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 70;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step17 = 1; +final int limit17 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit17 ;_i = _i + step17 ) { + //BA.debugLineNum = 71;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 72;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 73;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 74;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 75;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 76;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 77;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 78;BA.debugLine="label2.TextSize = 15"; +_label2.setTextSize((float) (15)); + //BA.debugLineNum = 79;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 80;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"HVD_PRONOMBR"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("HVD_PRONOMBRE")),BA.ObjectToCharSequence("Cantidad #"+_c.GetString("HVD_CANT")+" SubTotal $"+_c.GetString("HVD_COSTO_TOT")+" Fecha: "+_c.GetString("HVD_FECHA"))); + } +}; + }; + //BA.debugLineNum = 83;BA.debugLine="If Existe <> 0 Then"; +if ((_existe).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 84;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(H"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)"))); + //BA.debugLineNum = 85;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 86;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 87;BA.debugLine="L_TOTAL.Text = c.GetString(\"PC_MONTO\")"; +_l_total.setText(BA.ObjectToCharSequence(_c.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 93;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(gunav2.keymon.com.mx.c_historico parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 107;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 108;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 109;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 37;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 38;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 40;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 41;BA.debugLine="Root.LoadLayout(\"nota\")"; +_root.LoadLayout("nota",ba); + //BA.debugLineNum = 42;BA.debugLine="borra.Visible = False"; +_borra.setVisible(__c.False); + //BA.debugLineNum = 43;BA.debugLine="Titulo.Text = \"Acumulado\""; +_titulo.setText(BA.ObjectToCharSequence("Acumulado")); + //BA.debugLineNum = 44;BA.debugLine="b_desc.Visible = False"; +_b_desc.setVisible(__c.False); + //BA.debugLineNum = 45;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 46;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //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 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 = 5;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 6;BA.debugLine="Dim clie_id As String"; +_clie_id = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 8;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 10;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 12;BA.debugLine="Dim Regresar As Button"; +_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim L_CANT As Label"; +_l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim L_TOTAL As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Dim borra As Button"; +_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim Existe As String"; +_existe = ""; + //BA.debugLineNum = 20;BA.debugLine="Dim result As String"; +_result = ""; + //BA.debugLineNum = 23;BA.debugLine="Private Titulo As Label"; +_titulo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private b_desc As Button"; +_b_desc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Private ListView2 As ListView"; +_listview2 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 27;BA.debugLine="Private p_nota As Panel"; +_p_nota = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 29;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 95;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 98;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 32;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 33;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 34;BA.debugLine="End Sub"; +return null; +} +public String _listview1_itemclick(int _position,Object _value) throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _i = 0; + //BA.debugLineNum = 116;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As"; + //BA.debugLineNum = 117;BA.debugLine="ListView2.Visible = True"; +_listview2.setVisible(__c.True); + //BA.debugLineNum = 118;BA.debugLine="ListView1.Visible = False"; +_listview1.setVisible(__c.False); + //BA.debugLineNum = 119;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 120;BA.debugLine="For i=0 To 20"; +{ +final int step4 = 1; +final int limit4 = (int) (20); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 121;BA.debugLine="label1 = ListView2.SingleLineLayout.Label"; +_label1 = _listview2.getSingleLineLayout().Label; + //BA.debugLineNum = 122;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 123;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 124;BA.debugLine="ListView2.AddSingleLine(i)"; +_listview2.AddSingleLine(BA.ObjectToCharSequence(_i)); + } +}; + //BA.debugLineNum = 126;BA.debugLine="End Sub"; +return ""; +} +public String _listview2_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 111;BA.debugLine="Sub ListView2_ItemClick (Position As Int, Value As"; + //BA.debugLineNum = 112;BA.debugLine="ListView2.Visible = False"; +_listview2.setVisible(__c.False); + //BA.debugLineNum = 113;BA.debugLine="ListView1.Visible = True"; +_listview1.setVisible(__c.True); + //BA.debugLineNum = 114;BA.debugLine="End Sub"; +return ""; +} +public String _regresar_click() throws Exception{ + //BA.debugLineNum = 100;BA.debugLine="Sub Regresar_Click"; + //BA.debugLineNum = 101;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 102;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/gunav2/keymon/com/mx/c_historico2.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_historico2.java new file mode 100644 index 0000000..511adaa --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_historico2.java @@ -0,0 +1,347 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class c_historico2 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, "gunav2.keymon.com.mx.c_historico2"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_historico2.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 String _ruta = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _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 _borra = null; +public String _existe = ""; +public String _result = ""; +public anywheresoftware.b4a.objects.LabelWrapper _titulo = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_desc = null; +public anywheresoftware.b4a.objects.ListViewWrapper _listview2 = null; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_nota = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_productohist = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s3 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s4 = null; +public b4a.example3.customlistview _customlistview1 = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b4xpage_appear() throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +int _sfdf = 0; + //BA.debugLineNum = 60;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 61;BA.debugLine="p_nota.Height = Root.Height * 0.9"; +_p_nota.setHeight((int) (_root.getHeight()*0.9)); + //BA.debugLineNum = 62;BA.debugLine="p_nota.Width = Root.Width * 0.9"; +_p_nota.setWidth((int) (_root.getWidth()*0.9)); + //BA.debugLineNum = 63;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 64;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 65;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 66;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 68;BA.debugLine="L_CANT.Text =\"\""; +_l_cant.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 69;BA.debugLine="L_TOTAL.Text=\"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 70;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 71;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 72;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 73;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 74;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HVD_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_FECHA asc"))); + //BA.debugLineNum = 75;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 76;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 77;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step17 = 1; +final int limit17 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit17 ;_i = _i + step17 ) { + //BA.debugLineNum = 78;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 79;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 80;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 81;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 82;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 83;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 84;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 85;BA.debugLine="label2.TextSize = 15"; +_label2.setTextSize((float) (15)); + //BA.debugLineNum = 86;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 87;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"HVD_PRONOMBR"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("HVD_PRONOMBRE")),BA.ObjectToCharSequence("Cantidad #"+_c.GetString("HVD_CANT")+" SubTotal $"+_c.GetString("HVD_COSTO_TOT")+" Fecha: "+_c.GetString("HVD_FECHA"))); + } +}; + }; + //BA.debugLineNum = 90;BA.debugLine="If Existe <> 0 Then"; +if ((_existe).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 91;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(H"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)"))); + //BA.debugLineNum = 92;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 93;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 94;BA.debugLine="L_TOTAL.Text = c.GetString(\"PC_MONTO\")"; +_l_total.setText(BA.ObjectToCharSequence(_c.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 100;BA.debugLine="For sfdf = 0 To 1"; +{ +final int step36 = 1; +final int limit36 = (int) (1); +_sfdf = (int) (0) ; +for (;_sfdf <= limit36 ;_sfdf = _sfdf + step36 ) { + //BA.debugLineNum = 101;BA.debugLine="CustomListView1.Add(CreateListItem(\"ejemplo\",\"1\""; +_customlistview1._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ejemplo",(int)(Double.parseDouble("1")),(int)(Double.parseDouble("2")),(int)(Double.parseDouble("3")),(int)(Double.parseDouble("4")),(int) (284),(int) (144)).getObject())),(Object)(_sfdf)); + } +}; + //BA.debugLineNum = 107;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(gunav2.keymon.com.mx.c_historico2 parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_historico2 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 = 142;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 143;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 144;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 44;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 45;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 47;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 48;BA.debugLine="Root.LoadLayout(\"nota2\")"; +_root.LoadLayout("nota2",ba); + //BA.debugLineNum = 49;BA.debugLine="borra.Visible = False"; +_borra.setVisible(__c.False); + //BA.debugLineNum = 50;BA.debugLine="Titulo.Text = \"Acumulado\""; +_titulo.setText(BA.ObjectToCharSequence("Acumulado")); + //BA.debugLineNum = 51;BA.debugLine="b_desc.Visible = False"; +_b_desc.setVisible(__c.False); + //BA.debugLineNum = 52;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 53;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 56;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 = 5;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 6;BA.debugLine="Dim clie_id As String"; +_clie_id = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 8;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 10;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 12;BA.debugLine="Dim Regresar As Button"; +_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim L_CANT As Label"; +_l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim L_TOTAL As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Dim borra As Button"; +_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim Existe As String"; +_existe = ""; + //BA.debugLineNum = 20;BA.debugLine="Dim result As String"; +_result = ""; + //BA.debugLineNum = 23;BA.debugLine="Private Titulo As Label"; +_titulo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private b_desc As Button"; +_b_desc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Private ListView2 As ListView"; +_listview2 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 27;BA.debugLine="Private p_nota As Panel"; +_p_nota = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Private l_productohist As Label"; +_l_productohist = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 30;BA.debugLine="Private l_s1 As Label"; +_l_s1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Private l_s2 As Label"; +_l_s2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 32;BA.debugLine="Private l_s3 As Label"; +_l_s3 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Private l_s4 As Label"; +_l_s4 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Private CustomListView1 As CustomListView"; +_customlistview1 = new b4a.example3.customlistview(); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _prodhis,int _s1,int _s2,int _s3,int _s4,int _width,int _height) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 110;BA.debugLine="Sub CreateListItem(prodhis As String, s1 As Int, s"; + //BA.debugLineNum = 111;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 112;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 113;BA.debugLine="p.LoadLayout(\"historicobat\")"; +_p.LoadLayout("historicobat",ba); + //BA.debugLineNum = 127;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 = 128;BA.debugLine="End Sub"; +return null; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 130;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 133;BA.debugLine="End Sub"; +return ""; +} +public String _listview1_itemclick(int _position,Object _value) throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _i = 0; + //BA.debugLineNum = 151;BA.debugLine="Sub ListView1_ItemClick (Position As Int, Value As"; + //BA.debugLineNum = 152;BA.debugLine="ListView2.Visible = True"; +_listview2.setVisible(__c.True); + //BA.debugLineNum = 153;BA.debugLine="ListView1.Visible = False"; +_listview1.setVisible(__c.False); + //BA.debugLineNum = 154;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 155;BA.debugLine="For i=0 To 20"; +{ +final int step4 = 1; +final int limit4 = (int) (20); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 156;BA.debugLine="label1 = ListView2.SingleLineLayout.Label"; +_label1 = _listview2.getSingleLineLayout().Label; + //BA.debugLineNum = 157;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 158;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 159;BA.debugLine="ListView2.AddSingleLine(i)"; +_listview2.AddSingleLine(BA.ObjectToCharSequence(_i)); + } +}; + //BA.debugLineNum = 161;BA.debugLine="End Sub"; +return ""; +} +public String _listview2_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 146;BA.debugLine="Sub ListView2_ItemClick (Position As Int, Value As"; + //BA.debugLineNum = 147;BA.debugLine="ListView2.Visible = False"; +_listview2.setVisible(__c.False); + //BA.debugLineNum = 148;BA.debugLine="ListView1.Visible = True"; +_listview1.setVisible(__c.True); + //BA.debugLineNum = 149;BA.debugLine="End Sub"; +return ""; +} +public String _regresar_click() throws Exception{ + //BA.debugLineNum = 135;BA.debugLine="Sub Regresar_Click"; + //BA.debugLineNum = 136;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 137;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/gunav2/keymon/com/mx/c_historicobat.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_historicobat.java new file mode 100644 index 0000000..4086294 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_historicobat.java @@ -0,0 +1,372 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class c_historicobat 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, "gunav2.keymon.com.mx.c_historicobat"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_historicobat.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 String _ruta = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _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 _borra = null; +public String _existe = ""; +public String _result = ""; +public anywheresoftware.b4a.objects.LabelWrapper _titulo = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_desc = null; +public anywheresoftware.b4a.objects.ListViewWrapper _listview2 = null; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_nota = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_productohist = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s3 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_s4 = null; +public b4a.example3.customlistview _customlistview1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_promediohist = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b4xpage_appear() throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _prohit = null; +int _sfdf = 0; +String _nombreproducto = ""; +String _cant_sem4 = ""; +String _cant_sem3 = ""; +String _cant_sem2 = ""; +String _cant_sem1 = ""; +String _sql = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _prohit2 = null; +double _promx = 0; +int _c1 = 0; +int _c2 = 0; +int _c3 = 0; +int _c4 = 0; + //BA.debugLineNum = 54;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 57;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 58;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 59;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 60;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 62;BA.debugLine="L_CANT.Text =\"\""; +_l_cant.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 63;BA.debugLine="L_TOTAL.Text=\"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 64;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 65;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 66;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 67;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 68;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HVD_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_FECHA asc"))); + //BA.debugLineNum = 69;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 70;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 71;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 = 72;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 73;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 74;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 75;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 76;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 77;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 78;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 79;BA.debugLine="label2.TextSize = 15"; +_label2.setTextSize((float) (15)); + //BA.debugLineNum = 80;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 81;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"HVD_PRONOMBR"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("HVD_PRONOMBRE")),BA.ObjectToCharSequence("Cantidad #"+_c.GetString("HVD_CANT")+" SubTotal $"+_c.GetString("HVD_COSTO_TOT")+" Fecha: "+_c.GetString("HVD_FECHA"))); + } +}; + }; + //BA.debugLineNum = 84;BA.debugLine="If Existe <> 0 Then"; +if ((_existe).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 85;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(H"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)"))); + //BA.debugLineNum = 86;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 87;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 88;BA.debugLine="L_TOTAL.Text = c.GetString(\"PC_MONTO\")"; +_l_total.setText(BA.ObjectToCharSequence(_c.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 90;BA.debugLine="ListView1.Visible = False"; +_listview1.setVisible(__c.False); + //BA.debugLineNum = 92;BA.debugLine="CustomListView1.AsView.Height = Root.Height * 0.4"; +_customlistview1._asview().setHeight((int) (_root.getHeight()*0.45)); + //BA.debugLineNum = 93;BA.debugLine="CustomListView1.Clear"; +_customlistview1._clear(); + //BA.debugLineNum = 94;BA.debugLine="Dim prohit As Cursor = B4XPages.MainPage.skmt.Exe"; +_prohit = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_prohit = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct HVD_PRONOMBRE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 96;BA.debugLine="If prohit.RowCount > 0 Then"; +if (_prohit.getRowCount()>0) { + //BA.debugLineNum = 99;BA.debugLine="For sfdf = 0 To prohit.RowCount - 1"; +{ +final int step39 = 1; +final int limit39 = (int) (_prohit.getRowCount()-1); +_sfdf = (int) (0) ; +for (;_sfdf <= limit39 ;_sfdf = _sfdf + step39 ) { + //BA.debugLineNum = 100;BA.debugLine="prohit.Position = sfdf"; +_prohit.setPosition(_sfdf); + //BA.debugLineNum = 101;BA.debugLine="Dim nombreProducto As String = prohit.GetString"; +_nombreproducto = _prohit.GetString("HVD_PRONOMBRE"); + //BA.debugLineNum = 105;BA.debugLine="Dim cant_sem4 As String = \"0\""; +_cant_sem4 = "0"; + //BA.debugLineNum = 106;BA.debugLine="Dim cant_sem3 As String = \"0\""; +_cant_sem3 = "0"; + //BA.debugLineNum = 107;BA.debugLine="Dim cant_sem2 As String = \"0\""; +_cant_sem2 = "0"; + //BA.debugLineNum = 108;BA.debugLine="Dim cant_sem1 As String = \"0\""; +_cant_sem1 = "0"; + //BA.debugLineNum = 141;BA.debugLine="Dim sql As String = $\" WITH FechasObjetivo"; +_sql = ("\n"+" WITH FechasObjetivo (Fecha) AS (\n"+" SELECT strftime('%d/%m/%Y', date('now', 'localtime', '-28 days'))\n"+" UNION ALL\n"+" SELECT strftime('%d/%m/%Y', date('now', 'localtime', '-21 days'))\n"+" UNION ALL\n"+" SELECT strftime('%d/%m/%Y', date('now', 'localtime', '-14 days'))\n"+" UNION ALL\n"+" SELECT strftime('%d/%m/%Y', date('now', 'localtime', '-7 days'))\n"+" )\n"+" SELECT \n"+" COALESCE(SUM(H.HVD_CANT), 0) AS HVD_CANT_TOTAL,\n"+" -- Si el mes de la fecha es igual al mes actual, devuelve 1, si no 0\n"+" CASE WHEN SUBSTR(F.Fecha, 4, 2) = strftime('%m', 'now', 'localtime') THEN 1 ELSE 0 END AS EsMesActual\n"+" FROM \n"+" FechasObjetivo AS F\n"+" LEFT JOIN \n"+" HIST_VENTAS AS H \n"+" ON F.Fecha = H.HVD_FECHA\n"+" AND H.HVD_CLIENTE IN (SELECT CUENTA FROM cuentaa)\n"+" AND H.HVD_PRONOMBRE = '"+__c.SmartStringFormatter("",(Object)(_nombreproducto))+"'\n"+" GROUP BY F.Fecha\n"+" ORDER BY SUBSTR(F.Fecha, 7, 4), SUBSTR(F.Fecha, 4, 2), SUBSTR(F.Fecha, 1, 2)\n"+""); + //BA.debugLineNum = 169;BA.debugLine="Dim prohit2 As Cursor = B4XPages.MainPage.skmt."; +_prohit2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_prohit2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(_sql))); + //BA.debugLineNum = 193;BA.debugLine="Dim promx As Double = (cant_sem4 + cant_sem3 +"; +_promx = ((double)(Double.parseDouble(_cant_sem4))+(double)(Double.parseDouble(_cant_sem3))+(double)(Double.parseDouble(_cant_sem2))+(double)(Double.parseDouble(_cant_sem1)))/(double)4; + //BA.debugLineNum = 200;BA.debugLine="Dim c1, c2, c3, c4 As Int"; +_c1 = 0; +_c2 = 0; +_c3 = 0; +_c4 = 0; + //BA.debugLineNum = 202;BA.debugLine="If prohit2.RowCount = 4 Then"; +if (_prohit2.getRowCount()==4) { + //BA.debugLineNum = 203;BA.debugLine="prohit2.Position = 0"; +_prohit2.setPosition((int) (0)); + //BA.debugLineNum = 204;BA.debugLine="cant_sem4 = prohit2.GetString(\"HVD_CANT_TOTAL\""; +_cant_sem4 = _prohit2.GetString("HVD_CANT_TOTAL"); + //BA.debugLineNum = 205;BA.debugLine="c1 = prohit2.GetInt(\"EsMesActual\")"; +_c1 = _prohit2.GetInt("EsMesActual"); + //BA.debugLineNum = 207;BA.debugLine="prohit2.Position = 1"; +_prohit2.setPosition((int) (1)); + //BA.debugLineNum = 208;BA.debugLine="cant_sem3 = prohit2.GetString(\"HVD_CANT_TOTAL\""; +_cant_sem3 = _prohit2.GetString("HVD_CANT_TOTAL"); + //BA.debugLineNum = 209;BA.debugLine="c2 = prohit2.GetInt(\"EsMesActual\")"; +_c2 = _prohit2.GetInt("EsMesActual"); + //BA.debugLineNum = 211;BA.debugLine="prohit2.Position = 2"; +_prohit2.setPosition((int) (2)); + //BA.debugLineNum = 212;BA.debugLine="cant_sem2 = prohit2.GetString(\"HVD_CANT_TOTAL\""; +_cant_sem2 = _prohit2.GetString("HVD_CANT_TOTAL"); + //BA.debugLineNum = 213;BA.debugLine="c3 = prohit2.GetInt(\"EsMesActual\")"; +_c3 = _prohit2.GetInt("EsMesActual"); + //BA.debugLineNum = 215;BA.debugLine="prohit2.Position = 3"; +_prohit2.setPosition((int) (3)); + //BA.debugLineNum = 216;BA.debugLine="cant_sem1 = prohit2.GetString(\"HVD_CANT_TOTAL\""; +_cant_sem1 = _prohit2.GetString("HVD_CANT_TOTAL"); + //BA.debugLineNum = 217;BA.debugLine="c4 = prohit2.GetInt(\"EsMesActual\")"; +_c4 = _prohit2.GetInt("EsMesActual"); + }else { + //BA.debugLineNum = 219;BA.debugLine="Log(\"Error en filas\")"; +__c.LogImpl("374121381","Error en filas",0); + }; + //BA.debugLineNum = 221;BA.debugLine="prohit2.Close"; +_prohit2.Close(); + //BA.debugLineNum = 224;BA.debugLine="CustomListView1.Add(CreateListItem(nombreProduc"; +_customlistview1._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_nombreproducto,(int)(Double.parseDouble(_cant_sem4)),(int)(Double.parseDouble(_cant_sem3)),(int)(Double.parseDouble(_cant_sem2)),(int)(Double.parseDouble(_cant_sem1)),_promx,_c1,_c2,_c3,_c4).getObject())),(Object)(1)); + } +}; + //BA.debugLineNum = 228;BA.debugLine="prohit.Close ' Cerramos el cursor externo"; +_prohit.Close(); + }; + //BA.debugLineNum = 235;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 44;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 45;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 47;BA.debugLine="Root.LoadLayout(\"nota2\")"; +_root.LoadLayout("nota2",ba); + //BA.debugLineNum = 48;BA.debugLine="borra.Visible = False"; +_borra.setVisible(__c.False); + //BA.debugLineNum = 49;BA.debugLine="Titulo.Text = \"Acumulado\""; +_titulo.setText(BA.ObjectToCharSequence("Acumulado")); + //BA.debugLineNum = 50;BA.debugLine="b_desc.Visible = False"; +_b_desc.setVisible(__c.False); + //BA.debugLineNum = 51;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 = 5;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 6;BA.debugLine="Dim clie_id As String"; +_clie_id = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 8;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 10;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 12;BA.debugLine="Dim Regresar As Button"; +_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim L_CANT As Label"; +_l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim L_TOTAL As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Dim borra As Button"; +_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim Existe As String"; +_existe = ""; + //BA.debugLineNum = 20;BA.debugLine="Dim result As String"; +_result = ""; + //BA.debugLineNum = 23;BA.debugLine="Private Titulo As Label"; +_titulo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private b_desc As Button"; +_b_desc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Private ListView2 As ListView"; +_listview2 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 27;BA.debugLine="Private p_nota As Panel"; +_p_nota = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Private l_productohist As Label"; +_l_productohist = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 30;BA.debugLine="Private l_s1 As Label"; +_l_s1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Private l_s2 As Label"; +_l_s2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 32;BA.debugLine="Private l_s3 As Label"; +_l_s3 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Private l_s4 As Label"; +_l_s4 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Private CustomListView1 As CustomListView"; +_customlistview1 = new b4a.example3.customlistview(); + //BA.debugLineNum = 35;BA.debugLine="Private L_PROMEDIOHIST As Label"; +_l_promediohist = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _prodhis,int _s1,int _s2,int _s3,int _s4,double _prom,int _m1,int _m2,int _m3,int _m4) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 253;BA.debugLine="Sub CreateListItem(prodhis As String, s1 As Int, s"; + //BA.debugLineNum = 254;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 256;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 288dip, 170dip)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (288)),__c.DipToCurrent((int) (170))); + //BA.debugLineNum = 257;BA.debugLine="p.LoadLayout(\"historicobat\")"; +_p.LoadLayout("historicobat",ba); + //BA.debugLineNum = 259;BA.debugLine="l_productohist.Text = prodhis"; +_l_productohist.setText(BA.ObjectToCharSequence(_prodhis)); + //BA.debugLineNum = 260;BA.debugLine="l_s1.Text = s1"; +_l_s1.setText(BA.ObjectToCharSequence(_s1)); + //BA.debugLineNum = 261;BA.debugLine="l_s2.Text = s2"; +_l_s2.setText(BA.ObjectToCharSequence(_s2)); + //BA.debugLineNum = 262;BA.debugLine="l_s3.Text = s3"; +_l_s3.setText(BA.ObjectToCharSequence(_s3)); + //BA.debugLineNum = 263;BA.debugLine="l_s4.Text = s4"; +_l_s4.setText(BA.ObjectToCharSequence(_s4)); + //BA.debugLineNum = 267;BA.debugLine="l_s1.Color = IIf(m1 = 1, xui.Color_Blue, xui.Colo"; +_l_s1.setColor((int)(BA.ObjectToNumber(((_m1==1) ? ((Object)(_xui.Color_Blue)) : ((Object)(_xui.Color_Yellow)))))); + //BA.debugLineNum = 268;BA.debugLine="l_s2.Color = IIf(m2 = 1, xui.Color_Blue, xui.Colo"; +_l_s2.setColor((int)(BA.ObjectToNumber(((_m2==1) ? ((Object)(_xui.Color_Blue)) : ((Object)(_xui.Color_Yellow)))))); + //BA.debugLineNum = 269;BA.debugLine="l_s3.Color = IIf(m3 = 1, xui.Color_Blue, xui.Colo"; +_l_s3.setColor((int)(BA.ObjectToNumber(((_m3==1) ? ((Object)(_xui.Color_Blue)) : ((Object)(_xui.Color_Yellow)))))); + //BA.debugLineNum = 270;BA.debugLine="l_s4.Color = IIf(m4 = 1, xui.Color_Blue, xui.Colo"; +_l_s4.setColor((int)(BA.ObjectToNumber(((_m4==1) ? ((Object)(_xui.Color_Blue)) : ((Object)(_xui.Color_Yellow)))))); + //BA.debugLineNum = 273;BA.debugLine="l_s1.TextColor = IIf(m1 = 1, xui.Color_White, xui"; +_l_s1.setTextColor((int)(BA.ObjectToNumber(((_m1==1) ? ((Object)(_xui.Color_White)) : ((Object)(_xui.Color_Black)))))); + //BA.debugLineNum = 274;BA.debugLine="l_s2.TextColor = IIf(m2 = 1, xui.Color_White, xui"; +_l_s2.setTextColor((int)(BA.ObjectToNumber(((_m2==1) ? ((Object)(_xui.Color_White)) : ((Object)(_xui.Color_Black)))))); + //BA.debugLineNum = 275;BA.debugLine="l_s3.TextColor = IIf(m3 = 1, xui.Color_White, xui"; +_l_s3.setTextColor((int)(BA.ObjectToNumber(((_m3==1) ? ((Object)(_xui.Color_White)) : ((Object)(_xui.Color_Black)))))); + //BA.debugLineNum = 276;BA.debugLine="l_s4.TextColor = IIf(m4 = 1, xui.Color_White, xui"; +_l_s4.setTextColor((int)(BA.ObjectToNumber(((_m4==1) ? ((Object)(_xui.Color_White)) : ((Object)(_xui.Color_Black)))))); + //BA.debugLineNum = 278;BA.debugLine="L_PROMEDIOHIST.Text = \"Promedio \" & NumberFormat("; +_l_promediohist.setText(BA.ObjectToCharSequence("Promedio "+__c.NumberFormat(_prom,(int) (1),(int) (2)))); + //BA.debugLineNum = 280;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 = 281;BA.debugLine="End Sub"; +return null; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 39;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 40;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 41;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/gunav2/keymon/com/mx/c_mapas.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_mapas.java new file mode 100644 index 0000000..8244edb --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_mapas.java @@ -0,0 +1,72 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_mapas"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/c_nota.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_nota.java new file mode 100644 index 0000000..5aa2ac3 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_nota.java @@ -0,0 +1,1523 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class c_nota 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, "gunav2.keymon.com.mx.c_nota"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_nota.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 _skmt = 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 String _ruta = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _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 _borra = null; +public String _existe = ""; +public String _result = ""; +public String _desc = ""; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _j3 = null; +public anywheresoftware.b4a.objects.LabelWrapper _titulo = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_desc = null; +public String _descuento = ""; +public String _folio = ""; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public String _almacen = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_nota = null; +public String _tipo_venta = ""; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel3 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_futuro = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_preventa = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_descacor = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_descpre = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ocul = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_desct = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _activity_pause(boolean _userclosed) throws Exception{ + //BA.debugLineNum = 393;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 395;BA.debugLine="End Sub"; +return ""; +} +public String _b_desc_click() throws Exception{ + //BA.debugLineNum = 1060;BA.debugLine="Sub b_desc_Click"; + //BA.debugLineNum = 1061;BA.debugLine="If DESCUENTO = \"MENOS\" Then"; +if ((_descuento).equals("MENOS")) { + //BA.debugLineNum = 1062;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1063;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1064;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1065;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 1066;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1067;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 1068;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1069;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 1070;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1071;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1072;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1073;BA.debugLine="result = Msgbox2(\"Seguro que desa dar descuento"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa dar descuento del 5%?"),BA.ObjectToCharSequence("Dar descuento"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 1074;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 1075;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE ped"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE pedido SET PE_COSTO_TOT = PE_COSTO_TOT * .95, PE_DESC = 5 WHERE PE_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1076;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1077;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1078;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1079;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 1080;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1081;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else if((_descuento).equals("MAS")) { + //BA.debugLineNum = 1084;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1085;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1086;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1087;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 1088;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1089;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 1090;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1091;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 1092;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1093;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1094;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1095;BA.debugLine="result = Msgbox2(\"Seguro que desa CANCELAR el d"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa CANCELAR el descuento?"),BA.ObjectToCharSequence("Cancelar descuento"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 1096;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 1097;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE ped"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE pedido SET PE_COSTO_TOT = PE_COSTO_TOT / .95, PE_DESC = 0 WHERE PE_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1098;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1099;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1100;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1101;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 1102;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1103;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }; + //BA.debugLineNum = 1106;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ +anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null; +int _i = 0; +String _nombre = ""; +String _cantidad = ""; +String _folioitem = ""; +String _cedis = ""; +double _precio = 0; +int _colortitulo = 0; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _future = null; + //BA.debugLineNum = 250;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 253;BA.debugLine="b_desc.Visible = False"; +_b_desc.setVisible(__c.False); + //BA.debugLineNum = 255;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 256;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 257;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 260;BA.debugLine="p_nota.Height = Root.Height * 0.9"; +_p_nota.setHeight((int) (_root.getHeight()*0.9)); + //BA.debugLineNum = 261;BA.debugLine="p_nota.Width = Root.Width * 0.9"; +_p_nota.setWidth((int) (_root.getWidth()*0.9)); + //BA.debugLineNum = 262;BA.debugLine="Panel1.Visible = True"; +_panel1.setVisible(__c.True); + //BA.debugLineNum = 266;BA.debugLine="ListView1.Color = Colors.White"; +_listview1.setColor(__c.Colors.White); + //BA.debugLineNum = 269;BA.debugLine="Dim cd As ColorDrawable"; +_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); + //BA.debugLineNum = 270;BA.debugLine="cd.Initialize(Colors.White, 0)"; +_cd.Initialize(__c.Colors.White,(int) (0)); + //BA.debugLineNum = 271;BA.debugLine="ListView1.SingleLineLayout.Background = cd"; +_listview1.getSingleLineLayout().Background = (android.graphics.drawable.Drawable)(_cd.getObject()); + //BA.debugLineNum = 274;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 275;BA.debugLine="ListView1.Height = Root.Height * 0.55"; +_listview1.setHeight((int) (_root.getHeight()*0.55)); + //BA.debugLineNum = 276;BA.debugLine="ListView1.SingleLineLayout.ItemHeight = 110dip"; +_listview1.getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (110))); + //BA.debugLineNum = 277;BA.debugLine="ListView1.SingleLineLayout.Label.Left = 15dip"; +_listview1.getSingleLineLayout().Label.setLeft(__c.DipToCurrent((int) (15))); + //BA.debugLineNum = 278;BA.debugLine="ListView1.SingleLineLayout.Label.Width = ListView"; +_listview1.getSingleLineLayout().Label.setWidth((int) (_listview1.getWidth()-__c.DipToCurrent((int) (30)))); + //BA.debugLineNum = 282;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_PRONOMBRE, PE_COSTO_TOT, PE_CANT, PE_FOLIO, PE_CEDIS, IFNULL(PE_RECALCULOTOT,0) AS PE_RECALCULOTOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS desc"))); + //BA.debugLineNum = 284;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 285;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 = 286;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 288;BA.debugLine="Dim Nombre As String = c.GetString(\"PE_PRONOMBR"; +_nombre = _c.GetString("PE_PRONOMBRE"); + //BA.debugLineNum = 289;BA.debugLine="Dim Cantidad As String = c.GetString(\"PE_CANT\")"; +_cantidad = _c.GetString("PE_CANT"); + //BA.debugLineNum = 290;BA.debugLine="Dim FolioItem As String = c.GetString(\"PE_FOLIO"; +_folioitem = _c.GetString("PE_FOLIO"); + //BA.debugLineNum = 291;BA.debugLine="Dim Cedis As String = c.GetString(\"PE_CEDIS\")"; +_cedis = _c.GetString("PE_CEDIS"); + //BA.debugLineNum = 293;BA.debugLine="Dim Precio As Double = IIf(c.GetDouble(\"PE_RECA"; +_precio = (double)(BA.ObjectToNumber(((_c.GetDouble("PE_RECALCULOTOT")==0) ? ((Object)(_c.GetDouble("PE_COSTO_TOT"))) : ((Object)(_c.GetDouble("PE_RECALCULOTOT")))))); + //BA.debugLineNum = 296;BA.debugLine="If c.GetString(\"PE_FOLIO\") = \"PREVENTA_FUTURA\""; +if ((_c.GetString("PE_FOLIO")).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 297;BA.debugLine="Dim ColorTitulo As Int = Colors.Red"; +_colortitulo = __c.Colors.Red; + }else { + //BA.debugLineNum = 299;BA.debugLine="Dim ColorTitulo As Int = Colors.Black"; +_colortitulo = __c.Colors.Black; + }; + //BA.debugLineNum = 301;BA.debugLine="If Cedis.Contains(\"PRO\") Or Not(IsNumber(Cedis)"; +if (_cedis.contains("PRO") || __c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 303;BA.debugLine="If c.GetString(\"PE_FOLIO\") = \"PREVENTA_FUTURA\""; +if ((_c.GetString("PE_FOLIO")).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 305;BA.debugLine="ColorTitulo = Colors.RGB(166, 0, 0) ' Azul Fu"; +_colortitulo = __c.Colors.RGB((int) (166),(int) (0),(int) (0)); + }else { + //BA.debugLineNum = 307;BA.debugLine="ColorTitulo = Colors.RGB(0, 70, 180) ' Azul F"; +_colortitulo = __c.Colors.RGB((int) (0),(int) (70),(int) (180)); + }; + }; + //BA.debugLineNum = 311;BA.debugLine="Dim cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 312;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 314;BA.debugLine="cs.Size(19).Typeface(Typeface.DEFAULT_BOLD).Col"; +_cs.Size((int) (19)).Typeface(__c.Typeface.DEFAULT_BOLD).Color(_colortitulo).Append(BA.ObjectToCharSequence(_nombre)).Pop().Pop(); + //BA.debugLineNum = 315;BA.debugLine="cs.Append(CRLF)"; +_cs.Append(BA.ObjectToCharSequence(__c.CRLF)); + //BA.debugLineNum = 318;BA.debugLine="cs.Size(15).Color(Colors.RGB(50, 50, 50)).Appen"; +_cs.Size((int) (15)).Color(__c.Colors.RGB((int) (50),(int) (50),(int) (50))).Append(BA.ObjectToCharSequence(" Cant: ")).Color(__c.Colors.Black).Append(BA.ObjectToCharSequence(_cantidad)).Append(BA.ObjectToCharSequence(" ")); + //BA.debugLineNum = 319;BA.debugLine="cs.Color(Colors.RGB(50, 50, 50)).Append(\"Total:"; +_cs.Color(__c.Colors.RGB((int) (50),(int) (50),(int) (50))).Append(BA.ObjectToCharSequence("Total: ")).Color(__c.Colors.RGB((int) (0),(int) (120),(int) (0))).Typeface(__c.Typeface.DEFAULT_BOLD).Append(BA.ObjectToCharSequence("$"+__c.NumberFormat2(_precio,(int) (1),(int) (2),(int) (2),__c.True))).Pop().Pop().Pop(); + //BA.debugLineNum = 320;BA.debugLine="cs.Append(CRLF)"; +_cs.Append(BA.ObjectToCharSequence(__c.CRLF)); + //BA.debugLineNum = 323;BA.debugLine="cs.Size(13).Color(Colors.RGB(100, 100, 100)).Ap"; +_cs.Size((int) (13)).Color(__c.Colors.RGB((int) (100),(int) (100),(int) (100))).Append(BA.ObjectToCharSequence(" Folio: "+_folioitem+" | "+_cedis)).PopAll(); + //BA.debugLineNum = 325;BA.debugLine="ListView1.AddSingleLine(cs)"; +_listview1.AddSingleLine(BA.ObjectToCharSequence(_cs.getObject())); + } +}; + }; + //BA.debugLineNum = 328;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 330;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from pedido_cliente WHERE pc_cliente IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 331;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 332;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 333;BA.debugLine="L_CANT.Text = 0"; +_l_cant.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 334;BA.debugLine="If Existe <> 0 Then"; +if ((_existe).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 335;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_CANT) AS PE_CANT from pedido where pe_cliente in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))); + //BA.debugLineNum = 336;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 337;BA.debugLine="L_CANT.Text = c.GetString(\"PE_CANT\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PE_CANT"))); + //BA.debugLineNum = 339;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 340;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(I"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(IFNULL(PE_DESC,0)) AS DESCUENTO FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 341;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 342;BA.debugLine="DESC = c.GetString(\"DESCUENTO\")"; +_desc = _c.GetString("DESCUENTO"); + //BA.debugLineNum = 343;BA.debugLine="b_desc.Visible = False"; +_b_desc.setVisible(__c.False); + //BA.debugLineNum = 346;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Exec"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{"","null"}))); + //BA.debugLineNum = 347;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)"; +__c.LogImpl("374645601",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow); + //BA.debugLineNum = 348;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 349;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 350;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 351;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.E"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 352;BA.debugLine="s5.Position = 0"; +_s5.setPosition((int) (0)); + //BA.debugLineNum = 353;BA.debugLine="L_TOTAL.Text =NumberFormat2(s.GetString(\"TOTAL_"; +_l_total.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s.GetString("TOTAL_CLIE")))+(double)(Double.parseDouble(_s5.GetString("TOTAL_CLIE"))),(int) (0),(int) (2),(int) (2),__c.True))); + //BA.debugLineNum = 354;BA.debugLine="s.Close"; +_s.Close(); + }else if(_s3.getRowCount()==0) { + //BA.debugLineNum = 356;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 357;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 358;BA.debugLine="L_TOTAL.Text =NumberFormat2(s.GetString(\"TOTAL_"; +_l_total.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_s.GetString("TOTAL_CLIE"))),(int) (0),(int) (2),(int) (2),__c.True))); + //BA.debugLineNum = 359;BA.debugLine="s.Close"; +_s.Close(); + }; + //BA.debugLineNum = 362;BA.debugLine="L_TOTAL.text = Subs.calculaTotalConPromoXRango(S"; +_l_total.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + }; + //BA.debugLineNum = 368;BA.debugLine="L_TOTAL.Text = Subs.calculaTotalConPromoXRango(Su"; +_l_total.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 370;BA.debugLine="Dim future As Cursor = B4XPages.MainPage.skmt.Exe"; +_future = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_future = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"VENTAFUTURA"}))); + //BA.debugLineNum = 371;BA.debugLine="If future.RowCount > 0 Then"; +if (_future.getRowCount()>0) { + //BA.debugLineNum = 372;BA.debugLine="future.Position = 0"; +_future.setPosition((int) (0)); + //BA.debugLineNum = 373;BA.debugLine="If future.GetInt(\"CAT_VA_VALOR\") = 1 Then"; +if (_future.GetInt("CAT_VA_VALOR")==1) { + //BA.debugLineNum = 374;BA.debugLine="Panel3.Visible = True"; +_panel3.setVisible(__c.True); + //BA.debugLineNum = 375;BA.debugLine="l_ocul.Visible = False"; +_l_ocul.setVisible(__c.False); + //BA.debugLineNum = 376;BA.debugLine="l_desct.Visible = False"; +_l_desct.setVisible(__c.False); + //BA.debugLineNum = 377;BA.debugLine="l_descacor.Text = NumberFormat2( (Subs.calculaT"; +_l_descacor.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_subs._calculatotalconpromoxrango4 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 378;BA.debugLine="l_descpre.Text = NumberFormat2( (Subs.calculaTo"; +_l_descpre.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_subs._calculatotalconpromoxrango3 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 379;BA.debugLine="L_PREVENTA.Text = Subs.calculaTotalConPromoXRan"; +_l_preventa.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 380;BA.debugLine="L_FUTURO.Text = Subs.calculaTotalConPromoXRango"; +_l_futuro.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + }else if(_future.GetInt("CAT_VA_VALOR")==0) { + //BA.debugLineNum = 382;BA.debugLine="Panel3.Visible = False"; +_panel3.setVisible(__c.False); + //BA.debugLineNum = 383;BA.debugLine="l_ocul.Visible = True"; +_l_ocul.setVisible(__c.True); + //BA.debugLineNum = 384;BA.debugLine="l_desct.Visible = True"; +_l_desct.setVisible(__c.True); + //BA.debugLineNum = 385;BA.debugLine="l_desct.Text = NumberFormat2( (Subs.calculaTota"; +_l_desct.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_subs._calculatotalconpromoxrango3 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))-(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba))))),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 386;BA.debugLine="L_PREVENTA.Text = Subs.calculaTotalConPromoXRan"; +_l_preventa.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 387;BA.debugLine="L_FUTURO.Text = Subs.calculaTotalConPromoXRango"; +_l_futuro.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + }; + }; + //BA.debugLineNum = 391;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(gunav2.keymon.com.mx.c_nota parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_nota 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 = 409;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 410;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 411;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 = 50;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 51;BA.debugLine="Root.LoadLayout(\"nota\")"; +_root.LoadLayout("nota",ba); + //BA.debugLineNum = 52;BA.debugLine="borra.Visible = True"; +_borra.setVisible(__c.True); + //BA.debugLineNum = 53;BA.debugLine="Titulo.Text = \"Pedido Actual\""; +_titulo.setText(BA.ObjectToCharSequence("Pedido Actual")); + //BA.debugLineNum = 60;BA.debugLine="End Sub"; +return ""; +} +public String _borra_click() throws Exception{ +int _i = 0; + //BA.debugLineNum = 413;BA.debugLine="Sub borra_Click"; + //BA.debugLineNum = 418;BA.debugLine="If Not(Subs.revisaImpreso) Then"; +if (__c.Not(_subs._revisaimpreso /*boolean*/ (ba))) { + //BA.debugLineNum = 420;BA.debugLine="result = Msgbox2(\"Seguro que desa borrar el pe"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa borrar el pedido?"),BA.ObjectToCharSequence("Cancelar pedido"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 421;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 422;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PE_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'"))); + //BA.debugLineNum = 423;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 424;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 = 425;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 426;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"updat"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?"),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PROID"))})); + //BA.debugLineNum = 427;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + } +}; + }; + //BA.debugLineNum = 430;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 431;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 432;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE km"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 433;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 439;BA.debugLine="Log(\"Aqui\")"; +__c.LogImpl("374973210","Aqui",0); + //BA.debugLineNum = 440;BA.debugLine="Log(Subs.traeAlmacen)"; +__c.LogImpl("374973211",_subs._traealmacen /*String*/ (ba),0); + //BA.debugLineNum = 441;BA.debugLine="If Subs.traeAlmacen = 94 Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) { + //BA.debugLineNum = 442;BA.debugLine="Log(\"Aqui\")"; +__c.LogImpl("374973213","Aqui",0); + //BA.debugLineNum = 444;BA.debugLine="result = Msgbox2(\"Seguro que desa borrar el p"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa borrar el pedido?"),BA.ObjectToCharSequence("Cancelar pedido"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 445;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 446;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'"))); + //BA.debugLineNum = 447;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 448;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step26 = 1; +final int limit26 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit26 ;_i = _i + step26 ) { + //BA.debugLineNum = 449;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 450;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"upda"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?"),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PROID"))})); + //BA.debugLineNum = 451;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSER"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + } +}; + }; + //BA.debugLineNum = 454;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 455;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 456;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE k"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 457;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 se"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 458;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CRED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 459;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 465;BA.debugLine="Log(\"aqui\")"; +__c.LogImpl("374973236","aqui",0); + //BA.debugLineNum = 466;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, no"; +__c.ToastMessageShow(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!"),__c.True); + //BA.debugLineNum = 467;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicketI"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 468;BA.debugLine="B4XPages.ShowPage(\"cliente\")"; +_b4xpages._showpage /*String*/ (ba,"cliente"); + }; + }; + //BA.debugLineNum = 513;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 = 5;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 6;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 7;BA.debugLine="Dim clie_id As String"; +_clie_id = ""; + //BA.debugLineNum = 8;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 9;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 11;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 13;BA.debugLine="Dim Regresar As Button"; +_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim L_CANT As Label"; +_l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim L_TOTAL As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Dim borra As Button"; +_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim Existe As String"; +_existe = ""; + //BA.debugLineNum = 20;BA.debugLine="Dim result As String"; +_result = ""; + //BA.debugLineNum = 22;BA.debugLine="Dim DESC As String"; +_desc = ""; + //BA.debugLineNum = 23;BA.debugLine="Dim c2, j3 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_j3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private Titulo As Label"; +_titulo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Private b_desc As Button"; +_b_desc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim DESCUENTO As String"; +_descuento = ""; + //BA.debugLineNum = 27;BA.debugLine="Dim folio As String"; +_folio = ""; + //BA.debugLineNum = 28;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 29;BA.debugLine="Private almacen As String"; +_almacen = ""; + //BA.debugLineNum = 30;BA.debugLine="Private p_nota As Panel"; +_p_nota = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD"; +_tipo_venta = _subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 32;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Private Panel3 As Panel"; +_panel3 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Private L_FUTURO As Label"; +_l_futuro = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Private L_PREVENTA As Label"; +_l_preventa = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 36;BA.debugLine="Private l_descacor As Label"; +_l_descacor = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 37;BA.debugLine="Private l_descpre As Label"; +_l_descpre = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Private l_ocul As Label"; +_l_ocul = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Private l_desct As Label"; +_l_desct = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 40;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 397;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 400;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 _listview1_itemlongclick(int _position,Object _value) throws Exception{ +String[] _x = null; +String _nom = ""; +int _i = 0; +String _palabrafinal = ""; +String _cedis = ""; +String _foliu = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _j = 0; + //BA.debugLineNum = 515;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 516;BA.debugLine="Log(Subs.traeTablaProds(tipo_venta))"; +__c.LogImpl("375038721",_subs._traetablaprods /*String*/ (ba,_tipo_venta),0); + //BA.debugLineNum = 517;BA.debugLine="Log(Value)"; +__c.LogImpl("375038722",BA.ObjectToString(_value),0); + //BA.debugLineNum = 518;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)"; +_x = __c.Regex.Split(" ",BA.ObjectToString(_value)); + //BA.debugLineNum = 519;BA.debugLine="Private nom As String = \"\""; +_nom = ""; + //BA.debugLineNum = 521;BA.debugLine="For i = 0 To X.Length - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_x.length-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 522;BA.debugLine="If Not(X(i).Contains(CRLF)) Then"; +if (__c.Not(_x[_i].contains(__c.CRLF))) { + //BA.debugLineNum = 524;BA.debugLine="nom = nom & \" \" & X(i)"; +_nom = _nom+" "+_x[_i]; + }else { + //BA.debugLineNum = 528;BA.debugLine="Dim palabraFinal As String = X(i).Replace(CRLF,"; +_palabrafinal = _x[_i].replace(__c.CRLF,""); + //BA.debugLineNum = 531;BA.debugLine="nom = nom & \" \" & palabraFinal"; +_nom = _nom+" "+_palabrafinal; + //BA.debugLineNum = 533;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 536;BA.debugLine="nom = nom.Trim"; +_nom = _nom.trim(); + //BA.debugLineNum = 537;BA.debugLine="Private cedis As String = X(X.Length-1)"; +_cedis = _x[(int) (_x.length-1)]; + //BA.debugLineNum = 538;BA.debugLine="Private foliu As String = X(X.Length-3)"; +_foliu = _x[(int) (_x.length-3)]; + //BA.debugLineNum = 539;BA.debugLine="Log(nom)"; +__c.LogImpl("375038744",_nom,0); + //BA.debugLineNum = 540;BA.debugLine="Log(cedis)"; +__c.LogImpl("375038745",_cedis,0); + //BA.debugLineNum = 541;BA.debugLine="Log(foliu)"; +__c.LogImpl("375038746",_foliu,0); + //BA.debugLineNum = 542;BA.debugLine="Dim cx As Cursor = B4XPages.MainPage.skmt.ExecQue"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE, PE_CEDIS/1 AS is_numeric FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and is_numeric > 0 and pe_cliente in (Select CUENTA from cuentaa) and PE_RECALCULO > 0")))); + //BA.debugLineNum = 543;BA.debugLine="Log(\"Recalculados: \" & cx.RowCount)"; +__c.LogImpl("375038748","Recalculados: "+BA.NumberToString(_cx.getRowCount()),0); + //BA.debugLineNum = 544;BA.debugLine="If cx.RowCount > 0 Then ' Si hay recalculo (produ"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 545;BA.debugLine="result = Msgbox2(\"Si se borra este producto, se"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se borra este producto, se va a borrar el pedido COMPLETO, ¿desea continuar?"),BA.ObjectToCharSequence("Borrar pedido completo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 546;BA.debugLine="If result = DialogResponse.NEGATIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.NEGATIVE))) { + //BA.debugLineNum = 547;BA.debugLine="Return"; +if (true) return ""; + }else { + //BA.debugLineNum = 549;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido w"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 550;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 551;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 552;BA.debugLine="Return"; +if (true) return ""; + }; + }; + //BA.debugLineNum = 555;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT HABI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HABILITADA FROM IMPRESORA"))); + //BA.debugLineNum = 556;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 557;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 558;BA.debugLine="If c.GetString(\"HABILITADA\") = 1 Then"; +if ((_c.GetString("HABILITADA")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 559;BA.debugLine="If Not(Subs.revisaImpreso) Then"; +if (__c.Not(_subs._revisaimpreso /*boolean*/ (ba))) { + //BA.debugLineNum = 560;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar est"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 561;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 562;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 563;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C"; +__c.LogImpl("375038768",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 564;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("375038769",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 565;BA.debugLine="Log(\"AQUI ESTOY\")"; +__c.LogImpl("375038770","AQUI ESTOY",0); + //BA.debugLineNum = 566;BA.debugLine="Log(cedis)"; +__c.LogImpl("375038771",_cedis,0); + //BA.debugLineNum = 567;BA.debugLine="Log(foliu)"; +__c.LogImpl("375038772",_foliu,0); + //BA.debugLineNum = 568;BA.debugLine="Log(nom)"; +__c.LogImpl("375038773",_nom,0); + //BA.debugLineNum = 570;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 573;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + //BA.debugLineNum = 580;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 581;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 582;BA.debugLine="Log(j3.RowCount)"; +__c.LogImpl("375038787",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 583;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 584;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("375038789","Soy promo",0); + //BA.debugLineNum = 585;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step54 = 1; +final int limit54 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit54 ;_j = _j + step54 ) { + //BA.debugLineNum = 586;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("375038791","aqui tronare?",0); + //BA.debugLineNum = 587;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 589;BA.debugLine="Log(nom)"; +__c.LogImpl("375038794",_nom,0); + //BA.debugLineNum = 590;BA.debugLine="If cedis <> \"DUR\" Then"; +if ((_cedis).equals("DUR") == false) { + //BA.debugLineNum = 592;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 593;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"del"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 594;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }else { + //BA.debugLineNum = 596;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }; + } +}; + }; + //BA.debugLineNum = 600;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 602;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 603;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_foliu)})); + }; + //BA.debugLineNum = 605;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 607;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 608;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 609;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 610;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 611;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 612;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 613;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 614;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 615;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 616;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select su"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 617;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 618;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 619;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 620;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 621;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 623;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 624;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 626;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 630;BA.debugLine="If Subs.traeAlmacen = 94 Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) { + //BA.debugLineNum = 631;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar es"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 632;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 633;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 634;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_"; +__c.LogImpl("375038839",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 635;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("375038840",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 636;BA.debugLine="Log(\"AQUI ESTOY\")"; +__c.LogImpl("375038841","AQUI ESTOY",0); + //BA.debugLineNum = 637;BA.debugLine="Log(cedis)"; +__c.LogImpl("375038842",_cedis,0); + //BA.debugLineNum = 638;BA.debugLine="Log(foliu)"; +__c.LogImpl("375038843",_foliu,0); + //BA.debugLineNum = 639;BA.debugLine="Log(nom)"; +__c.LogImpl("375038844",_nom,0); + //BA.debugLineNum = 641;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 644;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + //BA.debugLineNum = 651;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 652;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SEL"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 653;BA.debugLine="Log(j3.RowCount)"; +__c.LogImpl("375038858",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 654;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 655;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("375038860","Soy promo",0); + //BA.debugLineNum = 656;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step112 = 1; +final int limit112 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit112 ;_j = _j + step112 ) { + //BA.debugLineNum = 657;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("375038862","aqui tronare?",0); + //BA.debugLineNum = 658;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 660;BA.debugLine="Log(nom)"; +__c.LogImpl("375038865",_nom,0); + //BA.debugLineNum = 661;BA.debugLine="If cedis <> \"DUR\" Then"; +if ((_cedis).equals("DUR") == false) { + //BA.debugLineNum = 663;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"up"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 664;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"de"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 665;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }else { + //BA.debugLineNum = 667;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }; + } +}; + }; + //BA.debugLineNum = 671;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 673;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 674;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delet"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_foliu)})); + }; + //BA.debugLineNum = 676;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 678;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 679;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 680;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 681;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 682;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 683;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 684;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select U"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 685;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 686;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 687;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select s"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 688;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 689;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 690;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 691;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"inser"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 692;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 694;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 695;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 697;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 698;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 699;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 702;BA.debugLine="Log(\"aqui\")"; +__c.LogImpl("375038907","aqui",0); + //BA.debugLineNum = 703;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicke"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 704;BA.debugLine="B4XPages.ShowPage(\"cliente\")"; +_b4xpages._showpage /*String*/ (ba,"cliente"); + //BA.debugLineNum = 705;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, n"; +__c.ToastMessageShow(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!"),__c.True); + }; + }; + }else if((_c.GetString("HABILITADA")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 709;BA.debugLine="If Not(Subs.revisaImpreso) Then"; +if (__c.Not(_subs._revisaimpreso /*boolean*/ (ba))) { + //BA.debugLineNum = 710;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar est"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 711;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 712;BA.debugLine="Private X() As String = Regex.Split(\" \", Valu"; +_x = __c.Regex.Split(" ",BA.ObjectToString(_value)); + //BA.debugLineNum = 713;BA.debugLine="Log(X)"; +__c.LogImpl("375038918",BA.ObjectToString(_x),0); + //BA.debugLineNum = 714;BA.debugLine="Log(X.Length)"; +__c.LogImpl("375038919",BA.NumberToString(_x.length),0); + //BA.debugLineNum = 715;BA.debugLine="Private nom As String = \"\""; +_nom = ""; + //BA.debugLineNum = 716;BA.debugLine="For i = 0 To X.Length -1"; +{ +final int step169 = 1; +final int limit169 = (int) (_x.length-1); +_i = (int) (0) ; +for (;_i <= limit169 ;_i = _i + step169 ) { + //BA.debugLineNum = 718;BA.debugLine="If X(i).Contains(CRLF) Then"; +if (_x[_i].contains(__c.CRLF)) { + }; + //BA.debugLineNum = 721;BA.debugLine="If Not(X(i).Contains(CRLF)) Then"; +if (__c.Not(_x[_i].contains(__c.CRLF))) { + //BA.debugLineNum = 722;BA.debugLine="nom = nom & \" \" & X(i)"; +_nom = _nom+" "+_x[_i]; + }else { + //BA.debugLineNum = 724;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 729;BA.debugLine="nom = nom.Trim"; +_nom = _nom.trim(); + //BA.debugLineNum = 730;BA.debugLine="If X(X.Length-1) <> \".01\" Then"; +if ((_x[(int) (_x.length-1)]).equals(".01") == false) { + //BA.debugLineNum = 731;BA.debugLine="Private cedis As String = X(X.Length-1)"; +_cedis = _x[(int) (_x.length-1)]; + }else { + //BA.debugLineNum = 733;BA.debugLine="Private cedis As String = (X(X.Length-2) &\""; +_cedis = (_x[(int) (_x.length-2)]+" "+_x[(int) (_x.length-1)]); + }; + //BA.debugLineNum = 735;BA.debugLine="Log(nom)"; +__c.LogImpl("375038940",_nom,0); + //BA.debugLineNum = 736;BA.debugLine="Log(cedis)"; +__c.LogImpl("375038941",_cedis,0); + //BA.debugLineNum = 737;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 738;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C"; +__c.LogImpl("375038943",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 739;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("375038944",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 740;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 750;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 751;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 752;BA.debugLine="Log(j3.RowCount)"; +__c.LogImpl("375038957",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 753;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 754;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("375038959","Soy promo",0); + //BA.debugLineNum = 755;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step195 = 1; +final int limit195 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit195 ;_j = _j + step195 ) { + //BA.debugLineNum = 756;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("375038961","aqui tronare?",0); + //BA.debugLineNum = 757;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 759;BA.debugLine="If cedis <> \"DUR\" Then"; +if ((_cedis).equals("DUR") == false) { + //BA.debugLineNum = 760;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 761;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"del"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 762;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }else { + //BA.debugLineNum = 764;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"del"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }; + } +}; + }; + //BA.debugLineNum = 768;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 770;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 771;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_foliu)})); + }; + //BA.debugLineNum = 773;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 775;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 776;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 777;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 778;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 779;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 780;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 781;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 782;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 783;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 784;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select su"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 785;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 786;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 787;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 788;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 789;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 791;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 792;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 794;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 797;BA.debugLine="If Subs.traeAlmacen = 94 Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) { + //BA.debugLineNum = 798;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar es"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 799;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 800;BA.debugLine="Private X() As String = Regex.Split(\" \", Val"; +_x = __c.Regex.Split(" ",BA.ObjectToString(_value)); + //BA.debugLineNum = 801;BA.debugLine="Log(X)"; +__c.LogImpl("375039006",BA.ObjectToString(_x),0); + //BA.debugLineNum = 802;BA.debugLine="Log(X.Length)"; +__c.LogImpl("375039007",BA.NumberToString(_x.length),0); + //BA.debugLineNum = 803;BA.debugLine="Private nom As String = \"\""; +_nom = ""; + //BA.debugLineNum = 804;BA.debugLine="For i = 0 To X.Length -1"; +{ +final int step242 = 1; +final int limit242 = (int) (_x.length-1); +_i = (int) (0) ; +for (;_i <= limit242 ;_i = _i + step242 ) { + //BA.debugLineNum = 806;BA.debugLine="If X(i).Contains(CRLF) Then"; +if (_x[_i].contains(__c.CRLF)) { + }; + //BA.debugLineNum = 809;BA.debugLine="If Not(X(i).Contains(CRLF)) Then"; +if (__c.Not(_x[_i].contains(__c.CRLF))) { + //BA.debugLineNum = 810;BA.debugLine="nom = nom & \" \" & X(i)"; +_nom = _nom+" "+_x[_i]; + }else { + //BA.debugLineNum = 812;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 817;BA.debugLine="nom = nom.Trim"; +_nom = _nom.trim(); + //BA.debugLineNum = 818;BA.debugLine="If X(X.Length-1) <> \".01\" Then"; +if ((_x[(int) (_x.length-1)]).equals(".01") == false) { + //BA.debugLineNum = 819;BA.debugLine="Private cedis As String = X(X.Length-1)"; +_cedis = _x[(int) (_x.length-1)]; + }else { + //BA.debugLineNum = 821;BA.debugLine="Private cedis As String = (X(X.Length-2) &\""; +_cedis = (_x[(int) (_x.length-2)]+" "+_x[(int) (_x.length-1)]); + }; + //BA.debugLineNum = 823;BA.debugLine="Log(nom)"; +__c.LogImpl("375039028",_nom,0); + //BA.debugLineNum = 824;BA.debugLine="Log(cedis)"; +__c.LogImpl("375039029",_cedis,0); + //BA.debugLineNum = 825;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 826;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_"; +__c.LogImpl("375039031",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 827;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("375039032",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 828;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 838;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 839;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SEL"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 840;BA.debugLine="Log(j3.RowCount)"; +__c.LogImpl("375039045",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 841;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 842;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("375039047","Soy promo",0); + //BA.debugLineNum = 843;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step268 = 1; +final int limit268 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit268 ;_j = _j + step268 ) { + //BA.debugLineNum = 844;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("375039049","aqui tronare?",0); + //BA.debugLineNum = 845;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 847;BA.debugLine="If cedis <> \"DUR\" Then"; +if ((_cedis).equals("DUR") == false) { + //BA.debugLineNum = 848;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"up"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 849;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"de"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 850;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }else { + //BA.debugLineNum = 852;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"de"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_cedis= ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(_foliu)})); + }; + } +}; + }; + //BA.debugLineNum = 856;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 858;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 859;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delet"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_foliu)})); + }; + //BA.debugLineNum = 861;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 863;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 864;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 865;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 866;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 867;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 868;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 869;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select U"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 870;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 871;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 872;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select s"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 873;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 874;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 875;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 876;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"inser"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 877;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 879;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 880;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 882;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 883;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 884;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 887;BA.debugLine="Log(\"aqui\")"; +__c.LogImpl("375039092","aqui",0); + //BA.debugLineNum = 888;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicke"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 889;BA.debugLine="B4XPages.ShowPage(\"cliente\")"; +_b4xpages._showpage /*String*/ (ba,"cliente"); + //BA.debugLineNum = 890;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, n"; +__c.ToastMessageShow(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!"),__c.True); + }; + }; + }; + }else if(_c.getRowCount()==0) { + //BA.debugLineNum = 895;BA.debugLine="If Not(Subs.revisaImpreso) Then"; +if (__c.Not(_subs._revisaimpreso /*boolean*/ (ba))) { + //BA.debugLineNum = 896;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar este"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 897;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 898;BA.debugLine="Private X() As String = Regex.Split(\" \", Value"; +_x = __c.Regex.Split(" ",BA.ObjectToString(_value)); + //BA.debugLineNum = 899;BA.debugLine="Log(X)"; +__c.LogImpl("375039104",BA.ObjectToString(_x),0); + //BA.debugLineNum = 900;BA.debugLine="Log(X.Length)"; +__c.LogImpl("375039105",BA.NumberToString(_x.length),0); + //BA.debugLineNum = 901;BA.debugLine="Private nom As String = \"\""; +_nom = ""; + //BA.debugLineNum = 902;BA.debugLine="For i = 0 To X.Length -1"; +{ +final int step325 = 1; +final int limit325 = (int) (_x.length-1); +_i = (int) (0) ; +for (;_i <= limit325 ;_i = _i + step325 ) { + //BA.debugLineNum = 904;BA.debugLine="If X(i).Contains(CRLF) Then"; +if (_x[_i].contains(__c.CRLF)) { + }; + //BA.debugLineNum = 907;BA.debugLine="If Not(X(i).Contains(CRLF)) Then"; +if (__c.Not(_x[_i].contains(__c.CRLF))) { + //BA.debugLineNum = 908;BA.debugLine="nom = nom & \" \" & X(i)"; +_nom = _nom+" "+_x[_i]; + }else { + //BA.debugLineNum = 910;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 915;BA.debugLine="nom = nom.Trim"; +_nom = _nom.trim(); + //BA.debugLineNum = 916;BA.debugLine="Private cedis As String = X(X.Length-1)"; +_cedis = _x[(int) (_x.length-1)]; + //BA.debugLineNum = 917;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 918;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CE"; +__c.LogImpl("375039123",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 919;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("375039124",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 920;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 923;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + //BA.debugLineNum = 930;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 931;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELEC"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 932;BA.debugLine="Log(j3.RowCount)"; +__c.LogImpl("375039137",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 933;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 934;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("375039139","Soy promo",0); + //BA.debugLineNum = 935;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step346 = 1; +final int limit346 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit346 ;_j = _j + step346 ) { + //BA.debugLineNum = 936;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("375039141","aqui tronare?",0); + //BA.debugLineNum = 937;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 938;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"updat"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 939;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delet"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + } +}; + }; + //BA.debugLineNum = 943;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 945;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 946;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_foliu)})); + }; + //BA.debugLineNum = 948;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 950;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 951;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 952;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 953;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 954;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 955;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 956;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 957;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 958;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 959;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 960;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 961;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 962;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 963;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 964;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE k"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 966;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 967;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE k"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 969;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 972;BA.debugLine="If Subs.traeAlmacen = 94 Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(94))) { + //BA.debugLineNum = 973;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar est"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 974;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 975;BA.debugLine="Private X() As String = Regex.Split(\" \", Valu"; +_x = __c.Regex.Split(" ",BA.ObjectToString(_value)); + //BA.debugLineNum = 976;BA.debugLine="Log(X)"; +__c.LogImpl("375039181",BA.ObjectToString(_x),0); + //BA.debugLineNum = 977;BA.debugLine="Log(X.Length)"; +__c.LogImpl("375039182",BA.NumberToString(_x.length),0); + //BA.debugLineNum = 978;BA.debugLine="Private nom As String = \"\""; +_nom = ""; + //BA.debugLineNum = 979;BA.debugLine="For i = 0 To X.Length -1"; +{ +final int step388 = 1; +final int limit388 = (int) (_x.length-1); +_i = (int) (0) ; +for (;_i <= limit388 ;_i = _i + step388 ) { + //BA.debugLineNum = 981;BA.debugLine="If X(i).Contains(CRLF) Then"; +if (_x[_i].contains(__c.CRLF)) { + }; + //BA.debugLineNum = 984;BA.debugLine="If Not(X(i).Contains(CRLF)) Then"; +if (__c.Not(_x[_i].contains(__c.CRLF))) { + //BA.debugLineNum = 985;BA.debugLine="nom = nom & \" \" & X(i)"; +_nom = _nom+" "+_x[_i]; + }else { + //BA.debugLineNum = 987;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 992;BA.debugLine="nom = nom.Trim"; +_nom = _nom.trim(); + //BA.debugLineNum = 993;BA.debugLine="Private cedis As String = X(X.Length-1)"; +_cedis = _x[(int) (_x.length-1)]; + //BA.debugLineNum = 994;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 995;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_C"; +__c.LogImpl("375039200",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 996;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("375039201",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 997;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1000;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + //BA.debugLineNum = 1007;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 1008;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELE"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 1009;BA.debugLine="Log(j3.RowCount)"; +__c.LogImpl("375039214",BA.NumberToString(_j3.getRowCount()),0); + //BA.debugLineNum = 1010;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 1011;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("375039216","Soy promo",0); + //BA.debugLineNum = 1012;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step409 = 1; +final int limit409 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit409 ;_j = _j + step409 ) { + //BA.debugLineNum = 1013;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("375039218","aqui tronare?",0); + //BA.debugLineNum = 1014;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 1015;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"upda"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 1016;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"dele"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_foliu))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + } +}; + }; + //BA.debugLineNum = 1020;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 1022;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 1023;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_foliu)})); + }; + //BA.debugLineNum = 1025;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1027;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1028;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1029;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1030;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 1031;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1032;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 1033;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 1034;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1035;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1036;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select su"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1037;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1038;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 1039;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1040;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 1041;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 1043;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1044;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 1046;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set CONFIRMADO = 0 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 1047;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update CODIGOS_CRE"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update CODIGOS_CREDITO set BANDERA = 0 WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 1048;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 1051;BA.debugLine="Log(\"aqui\")"; +__c.LogImpl("375039256","aqui",0); + //BA.debugLineNum = 1052;BA.debugLine="B4XPages.MainPage.cliente.p_transparenteTicket"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._p_transparenteticketimpreso /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 1053;BA.debugLine="B4XPages.ShowPage(\"cliente\")"; +_b4xpages._showpage /*String*/ (ba,"cliente"); + //BA.debugLineNum = 1054;BA.debugLine="ToastMessageShow(\"La venta ya esta impresa, no"; +__c.ToastMessageShow(BA.ObjectToCharSequence("La venta ya esta impresa, no se puede modificar!!"),__c.True); + }; + }; + }; + //BA.debugLineNum = 1058;BA.debugLine="End Sub"; +return ""; +} +public String _p_nota_click() throws Exception{ + //BA.debugLineNum = 1108;BA.debugLine="Private Sub p_nota_Click"; + //BA.debugLineNum = 1110;BA.debugLine="End Sub"; +return ""; +} +public String _regresar_click() throws Exception{ + //BA.debugLineNum = 402;BA.debugLine="Sub Regresar_Click"; + //BA.debugLineNum = 403;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 404;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/gunav2/keymon/com/mx/c_noventa.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_noventa.java new file mode 100644 index 0000000..28369e8 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_noventa.java @@ -0,0 +1,296 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_noventa"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 String _ruta = ""; +public anywheresoftware.b4a.sql.SQL _skmt = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +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 com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_4 = null; +public String _stay_hh = ""; +public String _stay_mi = ""; +public String _stay_ss = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_noventa = null; +public String _tipo_venta = ""; +public gunav2.keymon.com.mx.c_bitacora _bitacora = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b4xpage_appear() throws Exception{ + //BA.debugLineNum = 55;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 56;BA.debugLine="Panel1.Height = Root.Height"; +_panel1.setHeight(_root.getHeight()); + //BA.debugLineNum = 57;BA.debugLine="Panel1.Width = Root.Width"; +_panel1.setWidth(_root.getWidth()); + //BA.debugLineNum = 58;BA.debugLine="Subs.centraPanel(Panel1, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_panel1,_root.getWidth()); + //BA.debugLineNum = 59;BA.debugLine="Subs.centraPanelV(Panel1, Root.Height)"; +_subs._centrapanelv /*String*/ (ba,_panel1,_root.getHeight()); + //BA.debugLineNum = 60;BA.debugLine="e_comm.Text=\"\""; +_e_comm.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 61;BA.debugLine="tgl.Initialize"; +_tgl.Initialize(ba); + //BA.debugLineNum = 62;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 63;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 64;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 66;BA.debugLine="r_1.Checked = False"; +_r_1.setChecked(__c.False); + //BA.debugLineNum = 67;BA.debugLine="r_2.Checked = False"; +_r_2.setChecked(__c.False); + //BA.debugLineNum = 68;BA.debugLine="r_3.Checked = False"; +_r_3.setChecked(__c.False); + //BA.debugLineNum = 69;BA.debugLine="r_4.Checked = False"; +_r_4.setChecked(__c.False); + //BA.debugLineNum = 70;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 39;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 40;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 42;BA.debugLine="Root.LoadLayout(\"noventa\")"; +_root.LoadLayout("noventa",ba); + //BA.debugLineNum = 44;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 46;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 47;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 50;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,"; +_bitacora._initialize /*Object*/ (ba,(Object)("bitacora"),"bitacora",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ); + //BA.debugLineNum = 51;BA.debugLine="End Sub"; +return ""; +} +public String _cancela_click() throws Exception{ + //BA.debugLineNum = 77;BA.debugLine="Sub CANCELA_Click"; + //BA.debugLineNum = 78;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 79;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 = 5;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 6;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Dim CANCELA As Button"; +_cancela = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim GUARDA As Button"; +_guarda = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim r_1 As RadioButton"; +_r_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim r_2 As RadioButton"; +_r_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Dim r_3 As RadioButton"; +_r_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim e_comm As EditText"; +_e_comm = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim motivo As String"; +_motivo = ""; + //BA.debugLineNum = 17;BA.debugLine="Dim cuenta As String"; +_cuenta = ""; + //BA.debugLineNum = 18;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 19;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 21;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 22;BA.debugLine="Dim r_4 As RadioButton"; +_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private stay_hh As String"; +_stay_hh = ""; + //BA.debugLineNum = 25;BA.debugLine="Private stay_mi As String"; +_stay_mi = ""; + //BA.debugLineNum = 26;BA.debugLine="Private stay_ss As String"; +_stay_ss = ""; + //BA.debugLineNum = 27;BA.debugLine="Private p_NoVenta As Panel"; +_p_noventa = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Dim tipo_venta = Subs.traeTipoVentaDeBD"; +_tipo_venta = _subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 29;BA.debugLine="Dim bitacora As C_Bitacora"; +_bitacora = new gunav2.keymon.com.mx.c_bitacora(); + //BA.debugLineNum = 30;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 31;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 72;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 75;BA.debugLine="End Sub"; +return ""; +} +public String _guarda_click() throws Exception{ +int _i = 0; + //BA.debugLineNum = 81;BA.debugLine="Sub GUARDA_Click"; + //BA.debugLineNum = 82;BA.debugLine="If r_1.Checked Then"; +if (_r_1.getChecked()) { + //BA.debugLineNum = 83;BA.debugLine="motivo = \"CERRADO\""; +_motivo = "CERRADO"; + }else if(_r_2.getChecked()) { + //BA.debugLineNum = 85;BA.debugLine="motivo = \"NO COMPRA\""; +_motivo = "NO COMPRA"; + }else if(_r_3.getChecked()) { + //BA.debugLineNum = 87;BA.debugLine="motivo = \"CON PRODUCTO\""; +_motivo = "CON PRODUCTO"; + }else { + //BA.debugLineNum = 89;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\""; +_motivo = "NO ESTA EL ENCARGADO"; + }; + //BA.debugLineNum = 91;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 92;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 93;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 94;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CUENTA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); + //BA.debugLineNum = 95;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 96;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 97;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 98;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 99;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 100;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PE_PRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PE_PROID,PE_CANT FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) "))); + //BA.debugLineNum = 101;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 102;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step21 = 1; +final int limit21 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit21 ;_i = _i + step21 ) { + //BA.debugLineNum = 103;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 104;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update $"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_id = ?"),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PROID"))})); + } +}; + }; + //BA.debugLineNum = 108;BA.debugLine="If B4XPages.MainPage.cliente.IsInitialized Then"; +if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ .IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 109;BA.debugLine="B4XPages.MainPage.cliente.motivoNoVenta = motivo"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._motivonoventa /*String*/ = _motivo; + //BA.debugLineNum = 111;BA.debugLine="Starter.enVenta = False"; +_starter._enventa /*boolean*/ = __c.False; + }; + //BA.debugLineNum = 114;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 115;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 117;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)(_motivo),(Object)(_e_comm.getText()),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 118;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_i"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 3 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 119;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 120;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 121;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIST"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_OUT = ? where HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + //BA.debugLineNum = 124;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\" Select (subs"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(" Select (substr(HSS_OUT,1,2) - substr(HSS_IN,1,2)) - Case when (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then 1 Else 0 end HORAS_TOTALES, "+"Case when (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) < 0 Then (substr(HSS_OUT,3,2) + 60 - substr(HSS_IN,3,2)) "+" Else (substr(HSS_OUT,3,2) - substr(HSS_IN,3,2)) End - Case when (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then 1 Else 0 end MINUTOS_TOTALES, "+"Case when (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) < 0 Then (substr(HSS_OUT,5,2) + 60 - substr(HSS_IN,5,2)) "+" Else (substr(HSS_OUT,5,2) - substr(HSS_IN,5,2)) end SEGUNDOS_TOTALES "+" from HIST_STAY_STORE where HSS_CODIGO In (Select cuenta from cuentaa) "))); + //BA.debugLineNum = 130;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 131;BA.debugLine="stay_hh = c.GetString(\"HORAS_TOTALES\") * 60 * 60"; +_stay_hh = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HORAS_TOTALES")))*60*60); + //BA.debugLineNum = 132;BA.debugLine="stay_mi = c.GetString(\"MINUTOS_TOTALES\") * 60"; +_stay_mi = BA.NumberToString((double)(Double.parseDouble(_c.GetString("MINUTOS_TOTALES")))*60); + //BA.debugLineNum = 133;BA.debugLine="stay_ss = c.GetString(\"SEGUNDOS_TOTALES\")"; +_stay_ss = _c.GetString("SEGUNDOS_TOTALES"); + //BA.debugLineNum = 134;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIST"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_TOT = ? where HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)((double)(Double.parseDouble(_stay_hh))+(double)(Double.parseDouble(_stay_mi))+(double)(Double.parseDouble(_stay_ss)))})); + //BA.debugLineNum = 135;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIST"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_OUT set HSO_FIN = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + //BA.debugLineNum = 136;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 137;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTime."; +_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_subs._traealmacen /*String*/ (ba),_subs._traerutabitacora /*String*/ (ba),"NO VENTA",_subs._traecliente /*String*/ (ba),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,BA.NumberToString(2),_motivo,BA.ObjectToString(_r_1.getChecked()),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._bitacora /*gunav2.keymon.com.mx.c_bitacora*/ ._banderageocerca /*String*/ ); + //BA.debugLineNum = 138;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + //BA.debugLineNum = 139;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 34;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 35;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 36;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]); +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/gunav2/keymon/com/mx/c_nuevocliente.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_nuevocliente.java new file mode 100644 index 0000000..0e0ff5b --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_nuevocliente.java @@ -0,0 +1,739 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_nuevocliente"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 anywheresoftware.b4a.gps.GPS _g = null; +public String _ruta = ""; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public anywheresoftware.b4a.objects.ButtonWrapper _cancela = null; +public anywheresoftware.b4a.objects.ButtonWrapper _guarda = null; +public String _cuenta = ""; +public String _usuario = ""; +public String _sdate = ""; +public String _stime = ""; +public String _sdate2 = ""; +public String _stime2 = ""; +public String _no_cliente = ""; +public String _no_ruta = ""; +public anywheresoftware.b4a.objects.collections.List _lista_punta = null; +public anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper _r_4 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _e_nombre = null; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_sinubicacion = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_nuevocliente = null; +public anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_botones = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_cam = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_camara = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_foto_inci = null; +public boolean _frontcamera = false; +public String _fototomada = ""; +public String _almacen = ""; +public anywheresoftware.b4a.objects.EditTextWrapper _et_direccion = null; +public anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +public double _lat = 0; +public double _lon = 0; +public anywheresoftware.b4a.objects.LabelWrapper _b_ubicacion = null; +public anywheresoftware.b4a.objects.LabelWrapper _label3 = null; +public gunav2.keymon.com.mx.b4xcombobox _cb_giro = null; +public String _giros = ""; +public anywheresoftware.b4a.objects.LabelWrapper _l_atiende = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_atiende = null; +public anywheresoftware.b4a.objects.LabelWrapper _label5 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_colonia = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_telefono = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_cp = null; +public anywheresoftware.b4a.objects.LabelWrapper _label6 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel1 = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b4xpage_appear() throws Exception{ +anywheresoftware.b4a.objects.collections.List _items = null; +int _i = 0; + //BA.debugLineNum = 235;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 236;BA.debugLine="et_direccion.Text = \"\""; +_et_direccion.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 237;BA.debugLine="E_NOMBRE.Text = \"\""; +_e_nombre.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 238;BA.debugLine="ET_Atiende.Text = \"\""; +_et_atiende.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 239;BA.debugLine="et_colonia.Text = \"\""; +_et_colonia.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 240;BA.debugLine="et_telefono.Text = \"\""; +_et_telefono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 241;BA.debugLine="et_cp.Text = \"\""; +_et_cp.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 242;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 243;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 244;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 246;BA.debugLine="GUARDA.Visible = False"; +_guarda.setVisible(__c.False); + //BA.debugLineNum = 247;BA.debugLine="Subs.panelVisible(p_nuevoCliente, 0, 0)"; +_subs._panelvisible /*String*/ (ba,_p_nuevocliente,(int) (0),(int) (0)); + //BA.debugLineNum = 248;BA.debugLine="Subs.panelVisible(Panel1, 0, 0)"; +_subs._panelvisible /*String*/ (ba,_panel1,(int) (0),(int) (0)); + //BA.debugLineNum = 249;BA.debugLine="p_nuevoCliente.Height = Root.Height"; +_p_nuevocliente.setHeight(_root.getHeight()); + //BA.debugLineNum = 250;BA.debugLine="p_nuevoCliente.Width = Root.Width"; +_p_nuevocliente.setWidth(_root.getWidth()); + //BA.debugLineNum = 251;BA.debugLine="Panel1.Width = Root.Width"; +_panel1.setWidth(_root.getWidth()); + //BA.debugLineNum = 252;BA.debugLine="Panel1.Height = Root.Height"; +_panel1.setHeight(_root.getHeight()); + //BA.debugLineNum = 253;BA.debugLine="Subs.centraEtiqueta(Label1, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_label1,_root.getWidth()); + //BA.debugLineNum = 254;BA.debugLine="Subs.centraEtiqueta(Label5, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_label5,_root.getWidth()); + //BA.debugLineNum = 255;BA.debugLine="Subs.centraEtiqueta(Label6, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_label6,_root.getWidth()); + //BA.debugLineNum = 256;BA.debugLine="Subs.centraEtiqueta(Label2, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_label2,_root.getWidth()); + //BA.debugLineNum = 257;BA.debugLine="Subs.centraEtiqueta(Label3, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_label3,_root.getWidth()); + //BA.debugLineNum = 258;BA.debugLine="Subs.centraEtiqueta(l_sinUbicacion, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_l_sinubicacion,_root.getWidth()); + //BA.debugLineNum = 259;BA.debugLine="Subs.centraEtiqueta(b_ubicacion, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_b_ubicacion,_root.getWidth()); + //BA.debugLineNum = 260;BA.debugLine="Subs.centraPanel(p_botones, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_botones,_root.getWidth()); + //BA.debugLineNum = 261;BA.debugLine="E_NOMBRE.Left = Round(Root.Width/2)-(E_NOMBRE.Wid"; +_e_nombre.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_e_nombre.getWidth()/(double)2))); + //BA.debugLineNum = 262;BA.debugLine="et_cp.Left = Round(Root.Width/2)-(E_NOMBRE.Width/"; +_et_cp.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_e_nombre.getWidth()/(double)2))); + //BA.debugLineNum = 263;BA.debugLine="et_colonia.Left = Round(Root.Width/2)-(et_colonia"; +_et_colonia.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_et_colonia.getWidth()/(double)2))); + //BA.debugLineNum = 264;BA.debugLine="et_direccion.Left = Round(Root.Width/2)-(et_direc"; +_et_direccion.setLeft((int) (__c.Round(_root.getWidth()/(double)2)-(_et_direccion.getWidth()/(double)2))); + //BA.debugLineNum = 265;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) { + //BA.debugLineNum = 266;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostra"; +_guarda.setVisible(__c.True); + //BA.debugLineNum = 267;BA.debugLine="l_sinUbicacion.Visible = True"; +_l_sinubicacion.setVisible(__c.True); + }; + //BA.debugLineNum = 270;BA.debugLine="CallSubDelayed(Tracker, \"Track\")"; +__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"Track"); + //BA.debugLineNum = 271;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")"; +__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall"); + //BA.debugLineNum = 272;BA.debugLine="If Tracker.FLP.IsInitialized And Tracker.FLP.GetL"; +if (_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized() && _tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { + //BA.debugLineNum = 273;BA.debugLine="B4XPages.MainPage.lat_gps = Tracker.FLP.GetLastK"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()); + //BA.debugLineNum = 274;BA.debugLine="B4XPages.MainPage.lon_gps = Tracker.FLP.GetLastK"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ = BA.NumberToString(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()); + //BA.debugLineNum = 276;BA.debugLine="GPS_LocationChanged(Tracker.FLP.GetLastKnownLoca"; +_gps_locationchanged(_tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation()); + }; + //BA.debugLineNum = 291;BA.debugLine="If Not(Starter.GPS.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 292;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo."),__c.True); + //BA.debugLineNum = 293;BA.debugLine="StartActivity(Starter.GPS.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }else { + //BA.debugLineNum = 295;BA.debugLine="Starter.GPS.Start(0, 0)"; +_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .Start(ba,(long) (0),(float) (0)); + }; + //BA.debugLineNum = 298;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")"; +__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLPSmall"); + //BA.debugLineNum = 300;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT GIRO FROM CAT_"; +_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 GIRO FROM CAT_GIRO order by 1"))); + //BA.debugLineNum = 301;BA.debugLine="Dim Items As List"; +_items = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 302;BA.debugLine="Items.Initialize"; +_items.Initialize(); + //BA.debugLineNum = 303;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCIÓN\")"; +_items.Add((Object)("SELECCIONA UNA OPCIÓN")); + //BA.debugLineNum = 304;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 305;BA.debugLine="For i = 0 To c.RowCount-1"; +{ +final int step53 = 1; +final int limit53 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit53 ;_i = _i + step53 ) { + //BA.debugLineNum = 306;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 307;BA.debugLine="Items.Add(c.GetString(\"GIRO\"))"; +_items.Add((Object)(_c.GetString("GIRO"))); + } +}; + //BA.debugLineNum = 309;BA.debugLine="cb_giro.SetItems(Items)"; +_cb_giro._setitems /*String*/ (_items); + }; + //BA.debugLineNum = 311;BA.debugLine="giros = \"SELECCIONA UNA OPCIÓN\""; +_giros = "SELECCIONA UNA OPCIÓN"; + //BA.debugLineNum = 312;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 313;BA.debugLine="End Sub"; +return ""; +} +public void _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ +ResumableSub_B4XPage_Created rsub = new ResumableSub_B4XPage_Created(this,_root1); +rsub.resume(ba, null); +} +public static class ResumableSub_B4XPage_Created extends BA.ResumableSub { +public ResumableSub_B4XPage_Created(gunav2.keymon.com.mx.c_nuevocliente parent,anywheresoftware.b4a.objects.B4XViewWrapper _root1) { +this.parent = parent; +this._root1 = _root1; +} +gunav2.keymon.com.mx.c_nuevocliente parent; +anywheresoftware.b4a.objects.B4XViewWrapper _root1; +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 = 197;BA.debugLine="Root = Root1"; +parent._root = _root1; + //BA.debugLineNum = 199;BA.debugLine="Root.LoadLayout(\"nuevocliente\")"; +parent._root.LoadLayout("nuevocliente",ba); + //BA.debugLineNum = 200;BA.debugLine="ruta = File.DirInternal"; +parent._ruta = parent.__c.File.getDirInternal(); + //BA.debugLineNum = 201;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (true) break; + +case 1: +//if +this.state = 4; +if (parent.__c.File.Exists(parent._ruta,"kmt.db")==parent.__c.False) { +this.state = 3; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 202;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +parent.__c.File.Copy(parent.__c.File.getDirAssets(),"kmt.db",parent._ruta,"kmt.db"); + if (true) break; + +case 4: +//C +this.state = 5; +; + //BA.debugLineNum = 216;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_WRITE_EXTERNAL_STORAGE); + //BA.debugLineNum = 217;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 = 5; +_permission = (String) result[0]; +_result = (Boolean) result[1]; +; + //BA.debugLineNum = 218;BA.debugLine="If Result Then"; +if (true) break; + +case 5: +//if +this.state = 10; +if (_result) { +this.state = 7; +}else { +this.state = 9; +}if (true) break; + +case 7: +//C +this.state = 10; + //BA.debugLineNum = 219;BA.debugLine="Log(\"Con permisos para escritura\")"; +parent.__c.LogImpl("375366424","Con permisos para escritura",0); + if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 221;BA.debugLine="ToastMessageShow(\"Sin permisos de escritura!!!\","; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de escritura!!!"),parent.__c.True); + if (true) break; + +case 10: +//C +this.state = 11; +; + //BA.debugLineNum = 224;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_READ_EXTERNAL_STORAGE); + //BA.debugLineNum = 225;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); +this.state = 18; +return; +case 18: +//C +this.state = 11; +_permission = (String) result[0]; +_result = (Boolean) result[1]; +; + //BA.debugLineNum = 226;BA.debugLine="If Result Then"; +if (true) break; + +case 11: +//if +this.state = 16; +if (_result) { +this.state = 13; +}else { +this.state = 15; +}if (true) break; + +case 13: +//C +this.state = 16; + //BA.debugLineNum = 227;BA.debugLine="Log(\"Con permisos para escritura\")"; +parent.__c.LogImpl("375366432","Con permisos para escritura",0); + if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 229;BA.debugLine="ToastMessageShow(\"Sin permisos de lectura!!!\", T"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos de lectura!!!"),parent.__c.True); + if (true) break; + +case 16: +//C +this.state = -1; +; + //BA.debugLineNum = 231;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{ +} +public String _cancela_click() throws Exception{ + //BA.debugLineNum = 339;BA.debugLine="Sub CANCELA_Click"; + //BA.debugLineNum = 340;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + //BA.debugLineNum = 341;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")"; +__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP"); + //BA.debugLineNum = 342;BA.debugLine="End Sub"; +return ""; +} +public String _cb_giro_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 574;BA.debugLine="Private Sub cb_giro_SelectedIndexChanged (Index As"; + //BA.debugLineNum = 575;BA.debugLine="giros = cb_giro.SelectedItem"; +_giros = _cb_giro._getselecteditem /*String*/ (); + //BA.debugLineNum = 576;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 140;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 141;BA.debugLine="Private Root As B4XView 'ignore"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 142;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 144;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 145;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 146;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 148;BA.debugLine="Dim CANCELA As Button"; +_cancela = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 149;BA.debugLine="Dim GUARDA As Button"; +_guarda = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 150;BA.debugLine="Dim cuenta As String"; +_cuenta = ""; + //BA.debugLineNum = 151;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 152;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 153;BA.debugLine="Dim sDate2,sTime2 As String"; +_sdate2 = ""; +_stime2 = ""; + //BA.debugLineNum = 154;BA.debugLine="Dim no_cliente As String"; +_no_cliente = ""; + //BA.debugLineNum = 155;BA.debugLine="Dim no_ruta As String"; +_no_ruta = ""; + //BA.debugLineNum = 156;BA.debugLine="Dim lista_punta As List"; +_lista_punta = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 157;BA.debugLine="Dim r_4 As RadioButton"; +_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 158;BA.debugLine="Dim E_NOMBRE As EditText"; +_e_nombre = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 159;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 160;BA.debugLine="Private l_sinUbicacion As Label"; +_l_sinubicacion = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 161;BA.debugLine="Private p_nuevoCliente As Panel"; +_p_nuevocliente = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 162;BA.debugLine="Private Label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 163;BA.debugLine="Private p_botones As Panel"; +_p_botones = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 164;BA.debugLine="Private p_cam As Panel"; +_p_cam = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 165;BA.debugLine="Private p_camara As Panel"; +_p_camara = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 166;BA.debugLine="Private b_foto_inci As Button"; +_b_foto_inci = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 168;BA.debugLine="Dim frontCamera As Boolean = False"; +_frontcamera = __c.False; + //BA.debugLineNum = 169;BA.debugLine="Dim fototomada As String = \"0\""; +_fototomada = "0"; + //BA.debugLineNum = 170;BA.debugLine="Dim ALMACEN As String"; +_almacen = ""; + //BA.debugLineNum = 171;BA.debugLine="Private et_direccion As EditText"; +_et_direccion = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 172;BA.debugLine="Private Label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 173;BA.debugLine="Dim lat As Double = 0"; +_lat = 0; + //BA.debugLineNum = 174;BA.debugLine="Dim lon As Double = 0"; +_lon = 0; + //BA.debugLineNum = 175;BA.debugLine="Private b_ubicacion As Label"; +_b_ubicacion = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 176;BA.debugLine="Private Label3 As Label"; +_label3 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 177;BA.debugLine="Private cb_giro As B4XComboBox"; +_cb_giro = new gunav2.keymon.com.mx.b4xcombobox(); + //BA.debugLineNum = 178;BA.debugLine="Dim giros As String"; +_giros = ""; + //BA.debugLineNum = 179;BA.debugLine="Private L_Atiende As Label"; +_l_atiende = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 180;BA.debugLine="Private ET_Atiende As EditText"; +_et_atiende = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 181;BA.debugLine="Private Label5 As Label"; +_label5 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 182;BA.debugLine="Private et_colonia As EditText"; +_et_colonia = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 183;BA.debugLine="Private et_telefono As EditText"; +_et_telefono = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 184;BA.debugLine="Private et_cp As EditText"; +_et_cp = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 185;BA.debugLine="Private Label6 As Label"; +_label6 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 186;BA.debugLine="Private Panel1 As Panel"; +_panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 187;BA.debugLine="End Sub"; +return ""; +} +public String _et_cp_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 578;BA.debugLine="Private Sub et_cp_TextChanged (Old As String, New"; + //BA.debugLineNum = 579;BA.debugLine="If New.Length > 5 Then"; +if (_new.length()>5) { + //BA.debugLineNum = 580;BA.debugLine="et_cp.Text = Old"; +_et_cp.setText(BA.ObjectToCharSequence(_old)); + }else if(_new.length()>1 && _new.length()<=5) { + //BA.debugLineNum = 582;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)"; +if (_new.contains(BA.ObjectToString(__c.Chr((int) (10)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (13)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (34))))) { + //BA.debugLineNum = 583;BA.debugLine="et_cp.Text = Old"; +_et_cp.setText(BA.ObjectToCharSequence(_old)); + }; + }; + //BA.debugLineNum = 587;BA.debugLine="End Sub"; +return ""; +} +public String _et_telefono_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 589;BA.debugLine="Private Sub et_telefono_TextChanged (Old As String"; + //BA.debugLineNum = 590;BA.debugLine="If New.Length > 10 Then"; +if (_new.length()>10) { + //BA.debugLineNum = 591;BA.debugLine="et_telefono.Text = Old"; +_et_telefono.setText(BA.ObjectToCharSequence(_old)); + }else if(_new.length()>1 && _new.length()<=10) { + //BA.debugLineNum = 593;BA.debugLine="If New.Contains(Chr(10)) Or New.Contains(Chr(13)"; +if (_new.contains(BA.ObjectToString(__c.Chr((int) (10)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (13)))) || _new.contains(BA.ObjectToString(__c.Chr((int) (34))))) { + //BA.debugLineNum = 594;BA.debugLine="et_telefono.Text = Old"; +_et_telefono.setText(BA.ObjectToCharSequence(_old)); + }; + }; + //BA.debugLineNum = 598;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 315;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 316;BA.debugLine="If B4XPages.MainPage.lat_gps <> \"0.0\" Then"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ).equals("0.0") == false) { + //BA.debugLineNum = 317;BA.debugLine="If GUARDA.IsInitialized Then"; +if (_guarda.IsInitialized()) { + //BA.debugLineNum = 318;BA.debugLine="GUARDA.Visible = True 'Si hay ubicaccion, mostr"; +_guarda.setVisible(__c.True); + //BA.debugLineNum = 319;BA.debugLine="l_sinUbicacion.Visible = True"; +_l_sinubicacion.setVisible(__c.True); + //BA.debugLineNum = 321;BA.debugLine="lat = Location1.Latitude"; +_lat = _location1.getLatitude(); + //BA.debugLineNum = 322;BA.debugLine="lon = Location1.Longitude"; +_lon = _location1.getLongitude(); + //BA.debugLineNum = 323;BA.debugLine="l_sinUbicacion.Text = (\"Latitud: \" & lat & \", L"; +_l_sinubicacion.setText(BA.ObjectToCharSequence(("Latitud: "+BA.NumberToString(_lat)+", Longotud: "+BA.NumberToString(_lon)))); + }; + }; + //BA.debugLineNum = 327;BA.debugLine="If b_ubicacion.IsInitialized Then"; +if (_b_ubicacion.IsInitialized()) { + //BA.debugLineNum = 328;BA.debugLine="b_ubicacion.TextSize = 13"; +_b_ubicacion.setTextSize((float) (13)); + //BA.debugLineNum = 329;BA.debugLine="b_ubicacion.Text = $\"Precisión GPS $1.0{Location"; +_b_ubicacion.setText(BA.ObjectToCharSequence(("Precisión GPS "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m"))); + //BA.debugLineNum = 330;BA.debugLine="If Location1.Accuracy > 200 Then"; +if (_location1.getAccuracy()>200) { + //BA.debugLineNum = 331;BA.debugLine="b_ubicacion.TextColor = Colors.Red"; +_b_ubicacion.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 332;BA.debugLine="b_ubicacion.TextSize = 16"; +_b_ubicacion.setTextSize((float) (16)); + //BA.debugLineNum = 333;BA.debugLine="b_ubicacion.Text = $\"Mala señal $1.0{Location1."; +_b_ubicacion.setText(BA.ObjectToCharSequence(("Mala señal "+__c.SmartStringFormatter("1.0",(Object)(_location1.getAccuracy()))+" m"))); + }; + }; + //BA.debugLineNum = 337;BA.debugLine="End Sub"; +return ""; +} +public String _guarda_click() throws Exception{ +String _hora = ""; +String _mins = ""; +String _segs = ""; +String[] _fechacliente = null; + //BA.debugLineNum = 370;BA.debugLine="Sub GUARDA_Click"; + //BA.debugLineNum = 380;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")"; +_b4xpages._showpage /*String*/ (ba,"NuevoCliente"); + //BA.debugLineNum = 384;BA.debugLine="If E_NOMBRE.Text = \"\" Then"; +if ((_e_nombre.getText()).equals("")) { + //BA.debugLineNum = 385;BA.debugLine="MsgboxAsync(\"Por favor captura el nombre de la T"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el nombre de la Tienda"),BA.ObjectToCharSequence("Atención"),ba); + }else if(_et_direccion.getText().length()>3) { + //BA.debugLineNum = 389;BA.debugLine="If lat <> 0 Then"; +if (_lat!=0) { + //BA.debugLineNum = 391;BA.debugLine="If giros <> \"SELECCIONA UNA OPCIÓN\" Or cb_giro."; +if ((_giros).equals("SELECCIONA UNA OPCIÓN") == false || (_cb_giro._getselecteditem /*String*/ ()).equals("SELECCIONA UNA OPCIÓN") == false) { + //BA.debugLineNum = 393;BA.debugLine="If ET_Atiende.Text <> \"\" Then"; +if ((_et_atiende.getText()).equals("") == false) { + //BA.debugLineNum = 394;BA.debugLine="If et_telefono.Text <> \"\" Then"; +if ((_et_telefono.getText()).equals("") == false) { + //BA.debugLineNum = 395;BA.debugLine="If et_colonia.Text <> \"\" Then"; +if ((_et_colonia.getText()).equals("") == false) { + //BA.debugLineNum = 396;BA.debugLine="If et_cp.Text <> \"\" Then"; +if ((_et_cp.getText()).equals("") == false) { + //BA.debugLineNum = 398;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 399;BA.debugLine="DateTime.Timeformat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 400;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 401;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 402;BA.debugLine="Log($\" //////////// Date: ${sDate} - Tim"; +__c.LogImpl("375694112",(" //////////// Date: "+__c.SmartStringFormatter("",(Object)(_sdate))+" - Time: "+__c.SmartStringFormatter("",(Object)(_stime))+" ////////////////"),0); + //BA.debugLineNum = 404;BA.debugLine="Private hora As String = sTime.SubString2("; +_hora = _stime.substring((int) (0),(int) (2)); + //BA.debugLineNum = 405;BA.debugLine="Private mins As String = sTime.SubString2("; +_mins = _stime.substring((int) (2),(int) (4)); + //BA.debugLineNum = 406;BA.debugLine="Private segs As String = sTime.SubString(4"; +_segs = _stime.substring((int) (4)); + //BA.debugLineNum = 407;BA.debugLine="sTime = hora & \":\" & mins & \":\" & segs"; +_stime = _hora+":"+_mins+":"+_segs; + //BA.debugLineNum = 408;BA.debugLine="Dim Fechacliente() As String = Regex.Split"; +_fechacliente = __c.Regex.Split("/",_sdate); + //BA.debugLineNum = 409;BA.debugLine="Log(\"////////////// sTime: \"&sTime&\" /////"; +__c.LogImpl("375694119","////////////// sTime: "+_stime+" ////////////////",0); + //BA.debugLineNum = 410;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_"; +_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_info3"))); + //BA.debugLineNum = 411;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 412;BA.debugLine="no_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_no_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 413;BA.debugLine="no_cliente = \"N\" & sTime & no_ruta"; +_no_cliente = "N"+_stime+_no_ruta; + //BA.debugLineNum = 414;BA.debugLine="Log(\"++ ++ no_cliente = \"&no_cliente)"; +__c.LogImpl("375694124","++ ++ no_cliente = "+_no_cliente,0); + //BA.debugLineNum = 415;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 417;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente)})); + //BA.debugLineNum = 418;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUE"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); + //BA.debugLineNum = 419;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CU"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente)})); + //BA.debugLineNum = 420;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_ALMA"; +_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 = 421;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 422;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 423;BA.debugLine="ALMACEN = c.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + }; + //BA.debugLineNum = 425;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 426;BA.debugLine="c = Starter.skmt.ExecQuery(\"select usuario"; +_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 = 427;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 428;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 429;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 433;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 434;BA.debugLine="DateTime.Timeformat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 435;BA.debugLine="sDate2 = DateTime.Date(DateTime.Now)"; +_sdate2 = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 436;BA.debugLine="sTime2 = DateTime.Time(DateTime.Now)"; +_stime2 = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 438;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO km"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO,CAT_CL_CP) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_no_cliente),(Object)(_no_ruta),(Object)(_e_nombre.getText()),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_cb_giro._getselecteditem /*String*/ ()),(Object)(_et_cp.getText())})); + //BA.debugLineNum = 439;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CL"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CLIENTES_NUEVOS(CN_ID, CN_FECHA, CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA,CN_COLONIA, CN_TELEFONO,CN_CP) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_no_cliente,_sdate2+" "+_stime2,_usuario,BA.NumberToString(_lat),BA.NumberToString(_lon),_e_nombre.getText(),_et_direccion.getText(),_almacen,_no_ruta,_cb_giro._getselecteditem /*String*/ (),_et_atiende.getText(),_et_colonia.getText(),_et_telefono.getText(),_et_cp.getText()})); + //BA.debugLineNum = 441;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 442;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")"; +__c.CallSubDelayed(ba,(Object)(_tracker.getObject()),"StartFLP"); + }else { + //BA.debugLineNum = 444;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el C"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el C.P. el negocio."),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 447;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar la co"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar la colonia el negocio."),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 450;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar el tel"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar el telefono."),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 454;BA.debugLine="MsgboxAsync(\"Por favor, debe capturar al enca"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor, debe capturar al encargado que atiende el negocio."),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 457;BA.debugLine="MsgboxAsync(\"Por favor captura el giro del cli"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura el giro del cliente"),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 460;BA.debugLine="MsgboxAsync(\"Por favor revisa que tengas señal"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor revisa que tengas señal GPS"),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 463;BA.debugLine="MsgboxAsync(\"Por favor captura la dirección del"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor captura la dirección del cliente"),BA.ObjectToCharSequence("Atención"),ba); + }; + //BA.debugLineNum = 470;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 190;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 191;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 192;BA.debugLine="End Sub"; +return null; +} +public String _p_nuevocliente_click() throws Exception{ + //BA.debugLineNum = 475;BA.debugLine="Private Sub p_nuevoCliente_Click"; + //BA.debugLineNum = 477;BA.debugLine="End Sub"; +return ""; +} +public boolean _pointinpolygon(anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _point,anywheresoftware.b4a.objects.collections.List _polygon) throws Exception{ +double _x = 0; +double _y = 0; +boolean _inside = false; +int _i = 0; +int _j = 0; +anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _p1_1 = null; +anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper _p2_1 = null; +double _xi = 0; +double _yi = 0; +double _xj = 0; +double _yj = 0; +boolean _intersect = false; + //BA.debugLineNum = 344;BA.debugLine="Sub PointInPolygon(point As LatLng, polygon As Lis"; + //BA.debugLineNum = 345;BA.debugLine="Dim x As Double = point.Longitude"; +_x = _point.getLongitude(); + //BA.debugLineNum = 346;BA.debugLine="Dim y As Double = point.Latitude"; +_y = _point.getLatitude(); + //BA.debugLineNum = 348;BA.debugLine="Dim inside As Boolean = False"; +_inside = __c.False; + //BA.debugLineNum = 349;BA.debugLine="For i = 0 To polygon.Size - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_polygon.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 350;BA.debugLine="Dim j As Int = (i + 1) Mod polygon.Size"; +_j = (int) ((_i+1)%_polygon.getSize()); + //BA.debugLineNum = 351;BA.debugLine="Dim p1_1 As LatLng = polygon.Get(i)"; +_p1_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(); +_p1_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_i))); + //BA.debugLineNum = 352;BA.debugLine="Dim p2_1 As LatLng = polygon.Get(j)"; +_p2_1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(); +_p2_1 = (anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.MapFragmentWrapper.LatLngWrapper(), (com.google.android.gms.maps.model.LatLng)(_polygon.Get(_j))); + //BA.debugLineNum = 354;BA.debugLine="Dim xi As Double = p1_1.Longitude"; +_xi = _p1_1.getLongitude(); + //BA.debugLineNum = 355;BA.debugLine="Dim yi As Double = p1_1.Latitude"; +_yi = _p1_1.getLatitude(); + //BA.debugLineNum = 356;BA.debugLine="Dim xj As Double = p2_1.Longitude"; +_xj = _p2_1.getLongitude(); + //BA.debugLineNum = 357;BA.debugLine="Dim yj As Double = p2_1.Latitude"; +_yj = _p2_1.getLatitude(); + //BA.debugLineNum = 359;BA.debugLine="Dim intersect As Boolean = ((yi > y) <> (yj > y)"; +_intersect = ((_yi>_y)!=(_yj>_y)) && (_x<(_xj-_xi)*(_y-_yi)/(double)(_yj-_yi)+_xi); + //BA.debugLineNum = 360;BA.debugLine="If intersect Then"; +if (_intersect) { + //BA.debugLineNum = 361;BA.debugLine="inside = Not(inside)"; +_inside = __c.Not(_inside); + }; + } +}; + //BA.debugLineNum = 365;BA.debugLine="Return inside"; +if (true) return _inside; + //BA.debugLineNum = 368;BA.debugLine="End Sub"; +return false; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +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/gunav2/keymon/com/mx/c_pedidos.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_pedidos.java new file mode 100644 index 0000000..a054b5a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_pedidos.java @@ -0,0 +1,1191 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_pedidos"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 anywheresoftware.b4a.gps.GPS _g = null; +public String _ruta = ""; +public anywheresoftware.b4a.sql.SQL _skmt = null; +public anywheresoftware.b4a.objects.Timer _t3 = null; +public anywheresoftware.b4a.phone.Phone _p = null; +public anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _e = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _f = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _h = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _cc = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _dd = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_tipo = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_sub = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_marca = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_desc = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_precio = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_bodega = null; +public anywheresoftware.b4a.objects.EditTextWrapper _cantidad = null; +public anywheresoftware.b4a.objects.ButtonWrapper _guardar = null; +public anywheresoftware.b4a.objects.ButtonWrapper _terminar = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _img_prod = null; +public byte[] _img_paso = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_proid = null; +public String _clie_id = ""; +public String _sdate = ""; +public String _stime = ""; +public String _usuario = ""; +public anywheresoftware.b4a.objects.LabelWrapper _t_venta = null; +public String _promo_c = ""; +public anywheresoftware.b4a.objects.ImageViewWrapper _i_fotol = null; +public anywheresoftware.b4a.objects.ButtonWrapper _desc_promo = null; +public anywheresoftware.b4a.objects.ButtonWrapper _nopromo = null; +public String _tot_art_promo = ""; +public String _cambio = ""; +public String _costo_tot = ""; +public String _almacen = ""; +public String _preciosin = ""; +public String _cl_ruta = ""; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _d = null; +public String _tot_art_promor = ""; +public String _promo_cr = ""; +public String _total_promo = ""; +public String _hccp_cant = ""; +public com.rootsoft.togglelibrary.ToggleLibrary _tgl = null; +public String _precio_cero = ""; +public String _bonsabor = ""; +public String _bonsabor2 = ""; +public gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_pedido = null; +public String _tipo_venta = ""; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b4xpage_appear() throws Exception{ +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; + //BA.debugLineNum = 80;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 81;BA.debugLine="tgl.Initialize"; +_tgl.Initialize(ba); + //BA.debugLineNum = 82;BA.debugLine="BONSABOR = 0"; +_bonsabor = BA.NumberToString(0); + //BA.debugLineNum = 83;BA.debugLine="BONSABOR2 = 0"; +_bonsabor2 = BA.NumberToString(0); + //BA.debugLineNum = 84;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 85;BA.debugLine="ToastMessageShow(\"Es necesario tener el GPS ence"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True); + //BA.debugLineNum = 86;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 88;BA.debugLine="cantidad.Text = \"\""; +_cantidad.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 89;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_AL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 90;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 91;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + //BA.debugLineNum = 92;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 93;BA.debugLine="i_fotol.Visible = False"; +_i_fotol.setVisible(__c.False); + //BA.debugLineNum = 94;BA.debugLine="sb.Initialize"; +_sb.Initialize(); + //BA.debugLineNum = 95;BA.debugLine="p.Shell(\"ping -c1 -W1 177.244.63.54\",Null, sb,Nul"; +_p.Shell("ping -c1 -W1 177.244.63.54",(String[])(__c.Null),(java.lang.StringBuilder)(_sb.getObject()),(java.lang.StringBuilder)(__c.Null)); + //BA.debugLineNum = 96;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +_skmt.Initialize(_ruta,"kmt.db",__c.True); + //BA.debugLineNum = 97;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select CAT_G"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select 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 from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_NOMBRE In (Select PDESC from PROID)")))); + //BA.debugLineNum = 98;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 99;BA.debugLine="L_PROID.Text = c.GetString(\"CAT_GP_ID\")"; +_l_proid.setText(BA.ObjectToCharSequence(_c.GetString("CAT_GP_ID"))); + //BA.debugLineNum = 100;BA.debugLine="l_tipo.Text = c.GetString(\"CAT_GP_TIPO\")"; +_l_tipo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_GP_TIPO"))); + //BA.debugLineNum = 101;BA.debugLine="l_sub.Text = c.GetString(\"CAT_GP_SUBTIPO\")"; +_l_sub.setText(BA.ObjectToCharSequence(_c.GetString("CAT_GP_SUBTIPO"))); + //BA.debugLineNum = 102;BA.debugLine="l_marca.Text = c.GetString(\"CAT_GP_CLASIF\")"; +_l_marca.setText(BA.ObjectToCharSequence(_c.GetString("CAT_GP_CLASIF"))); + //BA.debugLineNum = 103;BA.debugLine="l_desc.Text = c.GetString(\"CAT_GP_NOMBRE\")"; +_l_desc.setText(BA.ObjectToCharSequence(_c.GetString("CAT_GP_NOMBRE"))); + //BA.debugLineNum = 104;BA.debugLine="l_precio.Text = c.GetDouble(\"CAT_GP_PRECIO\")"; +_l_precio.setText(BA.ObjectToCharSequence(_c.GetDouble("CAT_GP_PRECIO"))); + //BA.debugLineNum = 105;BA.debugLine="l_bodega.Text = c.GetString(\"CAT_GP_ALMACEN\")"; +_l_bodega.setText(BA.ObjectToCharSequence(_c.GetString("CAT_GP_ALMACEN"))); + //BA.debugLineNum = 106;BA.debugLine="IMG_PASO = c.GetBlob(\"CAT_GP_IMG\")"; +_img_paso = _c.GetBlob("CAT_GP_IMG"); + //BA.debugLineNum = 107;BA.debugLine="PROMO_C = c.GetString(\"CAT_GP_STS\")"; +_promo_c = _c.GetString("CAT_GP_STS"); + //BA.debugLineNum = 108;BA.debugLine="cambio = c.GetString(\"CAT_GP_DEV\")"; +_cambio = _c.GetString("CAT_GP_DEV"); + //BA.debugLineNum = 109;BA.debugLine="preciosin = c.GetString(\"CAT_GP_IMP2\")"; +_preciosin = _c.GetString("CAT_GP_IMP2"); + //BA.debugLineNum = 110;BA.debugLine="PROMO_CR = c.GetString(\"CAT_GP_IMP1\")"; +_promo_cr = _c.GetString("CAT_GP_IMP1"); + //BA.debugLineNum = 111;BA.debugLine="cambio = \"0\""; +_cambio = "0"; + //BA.debugLineNum = 113;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery2(\"select count"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS FROM pedido WHERE PE_CEDIS = ? AND PE_CLIENTE IN (Select cuenta from cuentaa) ",new String[]{_c.GetString("CAT_GP_ID")}))); + //BA.debugLineNum = 114;BA.debugLine="e.Position =0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 115;BA.debugLine="If e.GetString(\"CUANTOS\") = 0 Then"; +if ((_e.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 116;BA.debugLine="If l_marca.text = \"PROMOS\" And l_tipo.Text =\"PRO"; +if ((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS")) { + //BA.debugLineNum = 117;BA.debugLine="DESC_PROMO.Visible = True"; +_desc_promo.setVisible(__c.True); + //BA.debugLineNum = 118;BA.debugLine="CC=B4XPages.MainPage.skmt.ExecQuery2(\"select co"; +_cc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS FROM PROMOS_COMP WHERE CAT_PA_ID = ?",new String[]{_c.GetString("CAT_GP_ID")}))); + //BA.debugLineNum = 119;BA.debugLine="CC.Position =0"; +_cc.setPosition((int) (0)); + //BA.debugLineNum = 120;BA.debugLine="If CC.GetString(\"CUANTOS\") = 0 Then"; +if ((_cc.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 121;BA.debugLine="l_bodega.Text = \"0\" ' se modifica a cero para"; +_l_bodega.setText(BA.ObjectToCharSequence("0")); + }else { + //BA.debugLineNum = 123;BA.debugLine="CC.Close"; +_cc.Close(); + //BA.debugLineNum = 124;BA.debugLine="CC=B4XPages.MainPage.skmt.ExecQuery2(\"select C"; +_cc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_PA_MAXPROM, CAT_PA_MAXPROMREC, CAT_PA_MAXPROMCLIE FROM PROMOS_COMP WHERE CAT_PA_ID = ?",new String[]{_c.GetString("CAT_GP_ID")}))); + //BA.debugLineNum = 125;BA.debugLine="CC.Position =0"; +_cc.setPosition((int) (0)); + //BA.debugLineNum = 127;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT C"; +_dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_CLIENTE_CANT_PROMOS WHERE HCCP_CLIENTE IN (Select cuenta from cuentaa) AND HCCP_PROMO =?",new String[]{_c.GetString("CAT_GP_ID")}))); + //BA.debugLineNum = 128;BA.debugLine="DD.Position =0"; +_dd.setPosition((int) (0)); + //BA.debugLineNum = 129;BA.debugLine="If DD.GetString(\"CUANTOS\") = 0 Then"; +if ((_dd.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 130;BA.debugLine="HCCP_CANT = 0"; +_hccp_cant = BA.NumberToString(0); + }else { + //BA.debugLineNum = 132;BA.debugLine="DD.Close"; +_dd.Close(); + //BA.debugLineNum = 133;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT"; +_dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT HCCP_CANT FROM HIST_CLIENTE_CANT_PROMOS WHERE HCCP_CLIENTE IN (Select cuenta from cuentaa) AND HCCP_PROMO =?",new String[]{_c.GetString("CAT_GP_ID")}))); + //BA.debugLineNum = 134;BA.debugLine="DD.Position =0"; +_dd.setPosition((int) (0)); + //BA.debugLineNum = 135;BA.debugLine="HCCP_CANT = DD.GetString(\"HCCP_CANT\")"; +_hccp_cant = _dd.GetString("HCCP_CANT"); + //BA.debugLineNum = 136;BA.debugLine="DD.Close"; +_dd.Close(); + }; + //BA.debugLineNum = 138;BA.debugLine="BONSABOR = HCCP_CANT"; +_bonsabor = _hccp_cant; + //BA.debugLineNum = 139;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT C"; +_dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT COUNT(*) AS CUANTOS FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?",new String[]{_c.GetString("CAT_GP_NOMBRE")}))); + //BA.debugLineNum = 140;BA.debugLine="DD.Position =0"; +_dd.setPosition((int) (0)); + //BA.debugLineNum = 141;BA.debugLine="If DD.GetString(\"CUANTOS\") = 0 Then"; +if ((_dd.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 142;BA.debugLine="HCCP_CANT = 0"; +_hccp_cant = BA.NumberToString(0); + }else { + //BA.debugLineNum = 144;BA.debugLine="DD.Close"; +_dd.Close(); + //BA.debugLineNum = 145;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT"; +_dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT SUM(HVD_CANT) AS HCCP_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select cuenta from cuentaa) AND HVD_PRONOMBRE =?",new String[]{_c.GetString("CAT_GP_NOMBRE")}))); + //BA.debugLineNum = 146;BA.debugLine="DD.Position =0"; +_dd.setPosition((int) (0)); + //BA.debugLineNum = 147;BA.debugLine="HCCP_CANT = DD.GetString(\"HCCP_CANT\")"; +_hccp_cant = _dd.GetString("HCCP_CANT"); + //BA.debugLineNum = 148;BA.debugLine="DD.Close"; +_dd.Close(); + }; + //BA.debugLineNum = 150;BA.debugLine="DD=B4XPages.MainPage.skmt.ExecQuery2($\"Select"; +_dd = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_CLASIF = ?) "),new String[]{_c.GetString("CAT_GP_NOMBRE")}))); + //BA.debugLineNum = 151;BA.debugLine="DD.Position =0"; +_dd.setPosition((int) (0)); + //BA.debugLineNum = 152;BA.debugLine="BONSABOR2 = DD.GetString(\"CUANTOS\")"; +_bonsabor2 = _dd.GetString("CUANTOS"); + //BA.debugLineNum = 153;BA.debugLine="DD.Close"; +_dd.Close(); + //BA.debugLineNum = 154;BA.debugLine="TOTAL_PROMO = CC.GetString(\"CAT_PA_MAXPROMCLIE"; +_total_promo = BA.NumberToString((double)(Double.parseDouble(_cc.GetString("CAT_PA_MAXPROMCLIE")))-(double)(Double.parseDouble(_hccp_cant))); + //BA.debugLineNum = 155;BA.debugLine="If HCCP_CANT = 0 Then"; +if ((_hccp_cant).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 156;BA.debugLine="l_bodega.Text = CC.GetString(\"CAT_PA_MAXPROM\""; +_l_bodega.setText(BA.ObjectToCharSequence(_cc.GetString("CAT_PA_MAXPROM"))); + }else if((double)(Double.parseDouble(_total_promo))>(double)(Double.parseDouble(_cc.GetString("CAT_PA_MAXPROMREC")))) { + //BA.debugLineNum = 158;BA.debugLine="l_bodega.Text = CC.GetString(\"CAT_PA_MAXPROM"; +_l_bodega.setText(BA.ObjectToCharSequence(_cc.GetString("CAT_PA_MAXPROMREC"))); + }else { + //BA.debugLineNum = 160;BA.debugLine="l_bodega.Text = TOTAL_PROMO"; +_l_bodega.setText(BA.ObjectToCharSequence(_total_promo)); + }; + }; + }else { + //BA.debugLineNum = 164;BA.debugLine="DESC_PROMO.Visible = False"; +_desc_promo.setVisible(__c.False); + }; + //BA.debugLineNum = 166;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 167;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CASE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CASE WHEN pe_costo_tot is null then 0 else sum( pe_costo_tot ) end as TOTAL_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 168;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 169;BA.debugLine="t_venta.Text = c.GetString(\"TOTAL_CLIE\")"; +_t_venta.setText(BA.ObjectToCharSequence(_c.GetString("TOTAL_CLIE"))); + //BA.debugLineNum = 170;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 171;BA.debugLine="Terminar.Visible = True"; +_terminar.setVisible(__c.True); + //BA.debugLineNum = 172;BA.debugLine="guardar.Visible = True"; +_guardar.setVisible(__c.True); + //BA.debugLineNum = 173;BA.debugLine="cantidad.Visible = True"; +_cantidad.setVisible(__c.True); + //BA.debugLineNum = 174;BA.debugLine="If cambio = \"1\" Then"; +if ((_cambio).equals("1")) { + //BA.debugLineNum = 175;BA.debugLine="nopromo.Visible = True"; +_nopromo.setVisible(__c.True); + }else { + //BA.debugLineNum = 177;BA.debugLine="nopromo.Visible = False"; +_nopromo.setVisible(__c.False); + }; + //BA.debugLineNum = 179;BA.debugLine="Dim out As OutputStream"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 180;BA.debugLine="out = File.OpenOutput(ruta, \"1.jpg\", False)"; +_out = __c.File.OpenOutput(_ruta,"1.jpg",__c.False); + //BA.debugLineNum = 181;BA.debugLine="out.WriteBytes(IMG_PASO, 0, IMG_PASO.Length)"; +_out.WriteBytes(_img_paso,(int) (0),_img_paso.length); + //BA.debugLineNum = 182;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 183;BA.debugLine="img_prod.Bitmap = LoadBitmap(ruta,\"1.jpg\")"; +_img_prod.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(_ruta,"1.jpg").getObject())); + //BA.debugLineNum = 184;BA.debugLine="TOT_ART_PROMO = \"0\""; +_tot_art_promo = "0"; + //BA.debugLineNum = 185;BA.debugLine="TOT_ART_PROMOR = \"0\""; +_tot_art_promor = "0"; + //BA.debugLineNum = 186;BA.debugLine="If l_marca.text = \"PROMOS\" And l_tipo.Text =\"PRO"; +if ((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS") && (_l_bodega.getText()).equals("0")) { + //BA.debugLineNum = 187;BA.debugLine="Msgbox(\"ALERTA\",\"EL CLIENTE NO PUEDE TENER ESTA"; +__c.Msgbox(BA.ObjectToCharSequence("ALERTA"),BA.ObjectToCharSequence("EL CLIENTE NO PUEDE TENER ESTA PROMOCION"),ba); + //BA.debugLineNum = 188;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }else if((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS") && (_l_proid.getText()).equals("PROUNI1") && (_bonsabor).equals("1") == false && (_bonsabor2).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 190;BA.debugLine="Msgbox(\"ALERTA\",\"EL CLIENTE NO PUEDE TENER ESTA"; +__c.Msgbox(BA.ObjectToCharSequence("ALERTA"),BA.ObjectToCharSequence("EL CLIENTE NO PUEDE TENER ESTA PROMOCION"),ba); + //BA.debugLineNum = 191;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }; + }else { + //BA.debugLineNum = 194;BA.debugLine="Msgbox(\"ALERTA\",\"EL CLIENTE YA COMPRO ESTE PRODU"; +__c.Msgbox(BA.ObjectToCharSequence("ALERTA"),BA.ObjectToCharSequence("EL CLIENTE YA COMPRO ESTE PRODUCTO REVISAR NOTA"),ba); + //BA.debugLineNum = 195;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }; + //BA.debugLineNum = 197;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(gunav2.keymon.com.mx.c_pedidos parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_pedidos 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 = 535;BA.debugLine="Msgbox(\"Presione Boton Terminar.\",\"ADVERTENCIA\")"; +parent.__c.Msgbox(BA.ObjectToCharSequence("Presione Boton Terminar."),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + //BA.debugLineNum = 536;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 537;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 65;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 66;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 68;BA.debugLine="Root.LoadLayout(\"pedido\")"; +_root.LoadLayout("pedido",ba); + //BA.debugLineNum = 69;BA.debugLine="i_fotol.Visible = False"; +_i_fotol.setVisible(__c.False); + //BA.debugLineNum = 71;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 72;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 73;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //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="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 = 5;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 6;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 8;BA.debugLine="Private t3 As Timer"; +_t3 = new anywheresoftware.b4a.objects.Timer(); + //BA.debugLineNum = 9;BA.debugLine="Dim p As Phone"; +_p = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 10;BA.debugLine="Dim sb As StringBuilder"; +_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim c As Cursor"; +_c = 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 h As Cursor"; +_h = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim CC As Cursor"; +_cc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim DD As Cursor"; +_dd = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Dim l_tipo As Label"; +_l_tipo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim l_sub As Label"; +_l_sub = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Dim l_marca As Label"; +_l_marca = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 21;BA.debugLine="Dim l_desc As Label"; +_l_desc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 22;BA.debugLine="Dim l_precio As Label"; +_l_precio = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 23;BA.debugLine="Dim l_bodega As Label"; +_l_bodega = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Dim cantidad As EditText"; +_cantidad = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Dim guardar As Button"; +_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim Terminar As Button"; +_terminar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 27;BA.debugLine="Dim img_prod As ImageView"; +_img_prod = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Dim IMG_PASO() As Byte"; +_img_paso = new byte[(int) (0)]; +; + //BA.debugLineNum = 29;BA.debugLine="Dim L_PROID As Label"; +_l_proid = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 30;BA.debugLine="Dim clie_id As String"; +_clie_id = ""; + //BA.debugLineNum = 31;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 32;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 34;BA.debugLine="Dim t_venta As Label"; +_t_venta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Dim PROMO_C As String"; +_promo_c = ""; + //BA.debugLineNum = 36;BA.debugLine="Dim i_fotol As ImageView"; +_i_fotol = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 37;BA.debugLine="Private DESC_PROMO As Button"; +_desc_promo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Private nopromo As Button"; +_nopromo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Dim TOT_ART_PROMO As String"; +_tot_art_promo = ""; + //BA.debugLineNum = 40;BA.debugLine="Dim cambio As String"; +_cambio = ""; + //BA.debugLineNum = 41;BA.debugLine="Dim COSTO_TOT As String"; +_costo_tot = ""; + //BA.debugLineNum = 42;BA.debugLine="Dim ALMACEN As String"; +_almacen = ""; + //BA.debugLineNum = 43;BA.debugLine="Dim preciosin As String"; +_preciosin = ""; + //BA.debugLineNum = 44;BA.debugLine="Dim cl_ruta As String"; +_cl_ruta = ""; + //BA.debugLineNum = 45;BA.debugLine="Dim d As Cursor"; +_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 46;BA.debugLine="Dim TOT_ART_PROMOR As String"; +_tot_art_promor = ""; + //BA.debugLineNum = 47;BA.debugLine="Dim PROMO_CR As String"; +_promo_cr = ""; + //BA.debugLineNum = 48;BA.debugLine="Dim TOTAL_PROMO As String"; +_total_promo = ""; + //BA.debugLineNum = 49;BA.debugLine="Dim HCCP_CANT As String"; +_hccp_cant = ""; + //BA.debugLineNum = 50;BA.debugLine="Dim tgl As Toggle"; +_tgl = new com.rootsoft.togglelibrary.ToggleLibrary(); + //BA.debugLineNum = 51;BA.debugLine="Dim precio_Cero As String"; +_precio_cero = ""; + //BA.debugLineNum = 52;BA.debugLine="Private BONSABOR As String"; +_bonsabor = ""; + //BA.debugLineNum = 53;BA.debugLine="Private BONSABOR2 As String"; +_bonsabor2 = ""; + //BA.debugLineNum = 54;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 55;BA.debugLine="Private p_pedido As Panel"; +_p_pedido = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 56;BA.debugLine="dim tipo_venta as string = Subs.traeTipoVentaDeBD"; +_tipo_venta = _subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 57;BA.debugLine="End Sub"; +return ""; +} +public String _desc_promo_click() throws Exception{ + //BA.debugLineNum = 549;BA.debugLine="Sub DESC_PROMO_Click"; + //BA.debugLineNum = 550;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROIDID"); + //BA.debugLineNum = 551;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROIDID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 552;BA.debugLine="B4XPages.ShowPage(\"detalle_promo\")"; +_b4xpages._showpage /*String*/ (ba,"detalle_promo"); + //BA.debugLineNum = 553;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 360;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 363;BA.debugLine="End Sub"; +return ""; +} +public String _guardar_click() throws Exception{ +int _i = 0; + //BA.debugLineNum = 199;BA.debugLine="Sub guardar_Click"; + //BA.debugLineNum = 200;BA.debugLine="If cantidad.Text = \"\" Then"; +if ((_cantidad.getText()).equals("")) { + //BA.debugLineNum = 201;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }else if((double)(Double.parseDouble(_cantidad.getText()))>(double)(Double.parseDouble(_l_bodega.getText()))) { + //BA.debugLineNum = 203;BA.debugLine="Msgbox(\"Exede la existencia\", \"ADVERTENCIA\") 'ig"; +__c.Msgbox(BA.ObjectToCharSequence("Exede la existencia"),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }else if((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS") && (double)(Double.parseDouble(_promo_c))>0 && (double)(Double.parseDouble(_cantidad.getText()))>0) { + //BA.debugLineNum = 205;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROIDID"); + //BA.debugLineNum = 206;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROIDID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 207;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select count"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOSD from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND CAT_DP_TIPO = 1)"))); + //BA.debugLineNum = 208;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 209;BA.debugLine="If c.GetString(\"CUANTOSD\") = 0 Then"; +if ((_c.GetString("CUANTOSD")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 210;BA.debugLine="Msgbox(\"No tiene venta el cliente para la promo"; +__c.Msgbox(BA.ObjectToCharSequence("No tiene venta el cliente para la promo"),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }else { + //BA.debugLineNum = 212;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select sum("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select sum(pe_cant) As TOT_ART_PROMO, sum(PE_COSTO_TOT) as COSTO_TOT from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND CAT_DP_PRECIO > 1)"))); + //BA.debugLineNum = 213;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 214;BA.debugLine="TOT_ART_PROMO = C.GetString(\"TOT_ART_PROMO\")"; +_tot_art_promo = _c.GetString("TOT_ART_PROMO"); + //BA.debugLineNum = 215;BA.debugLine="COSTO_TOT = C.GetString(\"COSTO_TOT\")"; +_costo_tot = _c.GetString("COSTO_TOT"); + //BA.debugLineNum = 216;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 217;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select coun"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOSD from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND (CAT_DP_PRECIO = 0.01 or CAT_DP_PRECIO = 1 OR CAT_DP_PRECIO = 0) AND CAT_DP_TIPO = 1)"))); + //BA.debugLineNum = 218;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 219;BA.debugLine="If c.GetString(\"CUANTOSD\") = 0 Then"; +if ((_c.GetString("CUANTOSD")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 220;BA.debugLine="TOT_ART_PROMOR = \"0\" 'Msgbox(\"No tiene venta e"; +_tot_art_promor = "0"; + }else { + //BA.debugLineNum = 222;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select sum"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select sum(pe_cant) As TOT_ART_PROMO, sum(PE_COSTO_TOT) as COSTO_TOT from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND (CAT_DP_PRECIO = 0.01 or CAT_DP_PRECIO = 1 OR CAT_DP_PRECIO = 0) AND CAT_DP_TIPO = 1)"))); + //BA.debugLineNum = 223;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 224;BA.debugLine="TOT_ART_PROMOR = C.GetString(\"TOT_ART_PROMO\")"; +_tot_art_promor = _c.GetString("TOT_ART_PROMO"); + }; + //BA.debugLineNum = 226;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 227;BA.debugLine="PROMO_C = PROMO_C * cantidad.Text"; +_promo_c = BA.NumberToString((double)(Double.parseDouble(_promo_c))*(double)(Double.parseDouble(_cantidad.getText()))); + //BA.debugLineNum = 228;BA.debugLine="PROMO_CR = PROMO_CR * cantidad.Text"; +_promo_cr = BA.NumberToString((double)(Double.parseDouble(_promo_cr))*(double)(Double.parseDouble(_cantidad.getText()))); + //BA.debugLineNum = 229;BA.debugLine="If TOT_ART_PROMO = PROMO_C And TOT_ART_PROMOR"; +if ((_tot_art_promo).equals(_promo_c) && (_tot_art_promor).equals(_promo_cr)) { + //BA.debugLineNum = 230;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE P"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO SET PE_CEDIS = (?) WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID))",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 231;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_ID, CAT_DP_PRECIO, CAT_DP_PRECIO_SIMPTOS, CAT_DP_IDPROD FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) AND CAT_DP_PRECIO > 1"))); + //BA.debugLineNum = 232;BA.debugLine="If D.RowCount>0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 233;BA.debugLine="For i=0 To D.RowCount -1"; +{ +final int step34 = 1; +final int limit34 = (int) (_d.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit34 ;_i = _i + step34 ) { + //BA.debugLineNum = 234;BA.debugLine="D.Position=i"; +_d.setPosition(_i); + //BA.debugLineNum = 235;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO SET PE_COSTOU = (?), PE_COSTO_TOT = PE_CANT * (?) , PE_COSTO_SIN = (?) WHERE PE_PROID = (?) And PE_CEDIS In (Select PROIDID from PROIDID) AND PE_CLIENTE IN (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO_SIMPTOS")),(Object)(_d.GetString("CAT_DP_IDPROD"))})); + } +}; + }; + //BA.debugLineNum = 238;BA.debugLine="D.Close"; +_d.Close(); + //BA.debugLineNum = 239;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_ID, CAT_DP_PRECIO, CAT_DP_PRECIO_SIMPTOS, CAT_DP_IDPROD FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) AND (CAT_DP_PRECIO = 0.01 or CAT_DP_PRECIO = 1 OR CAT_DP_PRECIO = 0) AND CAT_DP_TIPO = 1"))); + //BA.debugLineNum = 240;BA.debugLine="If D.RowCount>0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 241;BA.debugLine="For i=0 To D.RowCount -1"; +{ +final int step42 = 1; +final int limit42 = (int) (_d.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit42 ;_i = _i + step42 ) { + //BA.debugLineNum = 242;BA.debugLine="D.Position=i"; +_d.setPosition(_i); + //BA.debugLineNum = 243;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO SET PE_COSTOU = (?), PE_COSTO_TOT = PE_CANT * (?) , PE_COSTO_SIN = (?) WHERE PE_PROID = (?) And PE_CEDIS In (Select PROIDID from PROIDID) AND PE_CLIENTE IN (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO_SIMPTOS")),(Object)(_d.GetString("CAT_DP_IDPROD"))})); + } +}; + }; + //BA.debugLineNum = 246;BA.debugLine="D.Close"; +_d.Close(); + //BA.debugLineNum = 247;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 248;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 249;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 250;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 251;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 252;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 253;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 254;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 255;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 256;BA.debugLine="cl_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_cl_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 257;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 258;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 259;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 260;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 261;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select cou"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) and CAT_DP_TIPO = 0 "))); + //BA.debugLineNum = 263;BA.debugLine="e.Position =0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 264;BA.debugLine="If e.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_e.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 265;BA.debugLine="F=B4XPages.MainPage.skmt.ExecQuery(\"select CA"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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) and CAT_DP_TIPO = 0 "))); + //BA.debugLineNum = 268;BA.debugLine="If f.RowCount>0 Then"; +if (_f.getRowCount()>0) { + //BA.debugLineNum = 269;BA.debugLine="For i=0 To f.RowCount -1"; +{ +final int step67 = 1; +final int limit67 = (int) (_f.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit67 ;_i = _i + step67 ) { + //BA.debugLineNum = 270;BA.debugLine="f.Position=i"; +_f.setPosition(_i); + //BA.debugLineNum = 271;BA.debugLine="precio_Cero = f.GetString(\"CAT_DP_PRECIO\")"; +_precio_cero = _f.GetString("CAT_DP_PRECIO"); + //BA.debugLineNum = 272;BA.debugLine="h=B4XPages.MainPage.skmt.ExecQuery2($\"selec"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_ID = ? "),new String[]{_f.GetString("CAT_DP_IDPROD")}))); + //BA.debugLineNum = 273;BA.debugLine="h.Position=0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 275;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSER"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_precio_cero))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_precio_cero),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta)})); + //BA.debugLineNum = 276;BA.debugLine="h.Close"; +_h.Close(); + } +}; + }; + //BA.debugLineNum = 279;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 281;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 282;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 283;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + }else { + //BA.debugLineNum = 285;BA.debugLine="Msgbox(\"Tiene \" & TOT_ART_PROMO & \" \" & TOT_AR"; +__c.Msgbox(BA.ObjectToCharSequence("Tiene "+_tot_art_promo+" "+_tot_art_promor+" y necesita "+_promo_c+" "+_promo_cr+" Para la Promo. "),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }; + }; + //BA.debugLineNum = 288;BA.debugLine="cantidad.Text = \"\""; +_cantidad.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 289;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }else if((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS") && (_promo_c).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 291;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROIDID"); + //BA.debugLineNum = 292;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROIDID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 293;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 294;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 295;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 296;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 297;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 298;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 299;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 300;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 301;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 302;BA.debugLine="cl_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_cl_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 303;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 304;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 305;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 306;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 309;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) "))); + //BA.debugLineNum = 310;BA.debugLine="e.Position =0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 311;BA.debugLine="If e.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_e.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 312;BA.debugLine="F=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 313;BA.debugLine="For i =0 To f.RowCount -1"; +{ +final int step108 = 1; +final int limit108 = (int) (_f.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit108 ;_i = _i + step108 ) { + //BA.debugLineNum = 314;BA.debugLine="F.Position =i"; +_f.setPosition(_i); + //BA.debugLineNum = 315;BA.debugLine="h=B4XPages.MainPage.skmt.ExecQuery2($\"select C"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_ID = ? "),new String[]{_f.GetString("CAT_DP_IDPROD")}))); + //BA.debugLineNum = 316;BA.debugLine="h.Position=0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 317;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PRECIO")))*(double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))),(Object)(_f.GetString("CAT_DP_PRECIO")),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 318;BA.debugLine="h.Close"; +_h.Close(); + } +}; + //BA.debugLineNum = 320;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 322;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 324;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 325;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + //BA.debugLineNum = 326;BA.debugLine="cantidad.Text = \"\""; +_cantidad.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 327;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 328;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 329;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 330;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_almacen),(Object)(_cl_ruta),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 331;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 332;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }else { + //BA.debugLineNum = 334;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 335;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 336;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 337;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 338;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 339;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 340;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 341;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 342;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 343;BA.debugLine="cl_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_cl_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 344;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 345;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 346;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 347;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 348;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_COSTO_SIN, PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)((double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_l_precio.getText()))),(Object)(_l_precio.getText()),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_preciosin),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 349;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + //BA.debugLineNum = 350;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 351;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 352;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 353;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_almacen),(Object)(_cl_ruta),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 354;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 355;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_l_proid.getText()),(Object)(_cantidad.getText())})); + //BA.debugLineNum = 356;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }; + //BA.debugLineNum = 358;BA.debugLine="End Sub"; +return ""; +} +public String _i_fotol_click() throws Exception{ + //BA.debugLineNum = 544;BA.debugLine="Sub i_fotol_Click"; + //BA.debugLineNum = 545;BA.debugLine="i_fotol.Visible = False"; +_i_fotol.setVisible(__c.False); + //BA.debugLineNum = 547;BA.debugLine="End Sub"; +return ""; +} +public String _img_prod_click() throws Exception{ + //BA.debugLineNum = 539;BA.debugLine="Sub img_prod_Click"; + //BA.debugLineNum = 540;BA.debugLine="i_fotol.Visible = True"; +_i_fotol.setVisible(__c.True); + //BA.debugLineNum = 541;BA.debugLine="i_fotol.Bitmap = LoadBitmap(ruta,\"1.jpg\")"; +_i_fotol.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(_ruta,"1.jpg").getObject())); + //BA.debugLineNum = 543;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 60;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 61;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 62;BA.debugLine="End Sub"; +return null; +} +public String _nopromo_click() throws Exception{ + //BA.debugLineNum = 555;BA.debugLine="Sub nopromo_Click"; + //BA.debugLineNum = 556;BA.debugLine="If cantidad.Text = \"\" Then"; +if ((_cantidad.getText()).equals("")) { + //BA.debugLineNum = 557;BA.debugLine="Msgbox(\"Cantidad no puede ser 0\",\"Cantidad\") 'ig"; +__c.Msgbox(BA.ObjectToCharSequence("Cantidad no puede ser 0"),BA.ObjectToCharSequence("Cantidad"),ba); + }else if((double)(Double.parseDouble(_cantidad.getText()))>(double)(Double.parseDouble(_l_bodega.getText()))) { + //BA.debugLineNum = 559;BA.debugLine="Msgbox(\"Exede la existencia\", \"ADVERTENCIA\") 'ig"; +__c.Msgbox(BA.ObjectToCharSequence("Exede la existencia"),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }else { + //BA.debugLineNum = 561;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 562;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 563;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 564;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 565;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 566;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 567;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 568;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 569;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 570;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COACALCO"),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 571;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + //BA.debugLineNum = 572;BA.debugLine="cantidad.Text = \"\""; +_cantidad.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 573;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + }; + //BA.debugLineNum = 575;BA.debugLine="End Sub"; +return ""; +} +public String _p_pedido_click() throws Exception{ + //BA.debugLineNum = 577;BA.debugLine="Private Sub p_pedido_Click"; + //BA.debugLineNum = 579;BA.debugLine="End Sub"; +return ""; +} +public String _terminar_click() throws Exception{ +int _i = 0; + //BA.debugLineNum = 365;BA.debugLine="Sub Terminar_Click"; + //BA.debugLineNum = 366;BA.debugLine="If cantidad.Text = \"\" Then"; +if ((_cantidad.getText()).equals("")) { + //BA.debugLineNum = 367;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }else if((double)(Double.parseDouble(_cantidad.getText()))>(double)(Double.parseDouble(_l_bodega.getText()))) { + //BA.debugLineNum = 369;BA.debugLine="Msgbox(\"Exede la existencia\", \"ADVERTENCIA\") 'ig"; +__c.Msgbox(BA.ObjectToCharSequence("Exede la existencia"),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }else if((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS") && (double)(Double.parseDouble(_promo_c))>0 && (double)(Double.parseDouble(_cantidad.getText()))>0) { + //BA.debugLineNum = 371;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROIDID"); + //BA.debugLineNum = 372;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROIDID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 373;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select count"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOSD from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND CAT_DP_TIPO = 1)"))); + //BA.debugLineNum = 374;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 375;BA.debugLine="If c.GetString(\"CUANTOSD\") = 0 Then"; +if ((_c.GetString("CUANTOSD")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 376;BA.debugLine="Msgbox(\"No tiene venta el cliente para la promo"; +__c.Msgbox(BA.ObjectToCharSequence("No tiene venta el cliente para la promo"),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }else { + //BA.debugLineNum = 378;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select sum("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select sum(pe_cant) As TOT_ART_PROMO, sum(PE_COSTO_TOT) as COSTO_TOT from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND CAT_DP_PRECIO > 1)"))); + //BA.debugLineNum = 379;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 380;BA.debugLine="TOT_ART_PROMO = C.GetString(\"TOT_ART_PROMO\")"; +_tot_art_promo = _c.GetString("TOT_ART_PROMO"); + //BA.debugLineNum = 381;BA.debugLine="COSTO_TOT = C.GetString(\"COSTO_TOT\")"; +_costo_tot = _c.GetString("COSTO_TOT"); + //BA.debugLineNum = 382;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 383;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select coun"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOSD from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND (CAT_DP_PRECIO = 0.01 or CAT_DP_PRECIO = 1 OR CAT_DP_PRECIO = 0) AND CAT_DP_TIPO = 1)"))); + //BA.debugLineNum = 384;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 385;BA.debugLine="If c.GetString(\"CUANTOSD\") = 0 Then"; +if ((_c.GetString("CUANTOSD")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 386;BA.debugLine="TOT_ART_PROMOR = \"0\" 'Msgbox(\"No tiene venta e"; +_tot_art_promor = "0"; + }else { + //BA.debugLineNum = 388;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select sum"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select sum(pe_cant) As TOT_ART_PROMO, sum(PE_COSTO_TOT) as COSTO_TOT from pedido where PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID) AND (CAT_DP_PRECIO = 0.01 or CAT_DP_PRECIO = 1 OR CAT_DP_PRECIO = 0) AND CAT_DP_TIPO = 1)"))); + //BA.debugLineNum = 389;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 390;BA.debugLine="TOT_ART_PROMOR = C.GetString(\"TOT_ART_PROMO\")"; +_tot_art_promor = _c.GetString("TOT_ART_PROMO"); + }; + //BA.debugLineNum = 392;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 393;BA.debugLine="PROMO_C = PROMO_C * cantidad.Text"; +_promo_c = BA.NumberToString((double)(Double.parseDouble(_promo_c))*(double)(Double.parseDouble(_cantidad.getText()))); + //BA.debugLineNum = 394;BA.debugLine="PROMO_CR = PROMO_CR * cantidad.Text"; +_promo_cr = BA.NumberToString((double)(Double.parseDouble(_promo_cr))*(double)(Double.parseDouble(_cantidad.getText()))); + //BA.debugLineNum = 395;BA.debugLine="If TOT_ART_PROMO = PROMO_C And TOT_ART_PROMOR"; +if ((_tot_art_promo).equals(_promo_c) && (_tot_art_promor).equals(_promo_cr)) { + //BA.debugLineNum = 399;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE P"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO SET PE_CEDIS = (?) WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) and pe_proid In (Select cat_dp_idprod from CAT_DETALLES_PAQ WHERE CAT_DP_ID In (Select PROIDID from PROIDID))",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 400;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_ID, CAT_DP_PRECIO, CAT_DP_PRECIO_SIMPTOS, CAT_DP_IDPROD FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) AND CAT_DP_PRECIO > 1"))); + //BA.debugLineNum = 401;BA.debugLine="If D.RowCount>0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 402;BA.debugLine="For i=0 To D.RowCount -1"; +{ +final int step34 = 1; +final int limit34 = (int) (_d.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit34 ;_i = _i + step34 ) { + //BA.debugLineNum = 403;BA.debugLine="D.Position=i"; +_d.setPosition(_i); + //BA.debugLineNum = 404;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO SET PE_COSTOU = (?), PE_COSTO_TOT = PE_CANT * (?) , PE_COSTO_SIN = (?) WHERE PE_PROID = (?) And PE_CEDIS In (Select PROIDID from PROIDID) AND PE_CLIENTE IN (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO_SIMPTOS")),(Object)(_d.GetString("CAT_DP_IDPROD"))})); + } +}; + }; + //BA.debugLineNum = 407;BA.debugLine="D.Close"; +_d.Close(); + //BA.debugLineNum = 408;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_ID, CAT_DP_PRECIO, CAT_DP_PRECIO_SIMPTOS, CAT_DP_IDPROD FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) AND (CAT_DP_PRECIO = 0.01 or CAT_DP_PRECIO = 1 OR CAT_DP_PRECIO = 0) AND CAT_DP_TIPO = 1"))); + //BA.debugLineNum = 409;BA.debugLine="If D.RowCount>0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 410;BA.debugLine="For i=0 To D.RowCount -1"; +{ +final int step42 = 1; +final int limit42 = (int) (_d.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit42 ;_i = _i + step42 ) { + //BA.debugLineNum = 411;BA.debugLine="D.Position=i"; +_d.setPosition(_i); + //BA.debugLineNum = 412;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO SET PE_COSTOU = (?), PE_COSTO_TOT = PE_CANT * (?) , PE_COSTO_SIN = (?) WHERE PE_PROID = (?) And PE_CEDIS In (Select PROIDID from PROIDID) AND PE_CLIENTE IN (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO")),(Object)(_d.GetString("CAT_DP_PRECIO_SIMPTOS")),(Object)(_d.GetString("CAT_DP_IDPROD"))})); + } +}; + }; + //BA.debugLineNum = 415;BA.debugLine="D.Close"; +_d.Close(); + //BA.debugLineNum = 416;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 417;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 418;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 419;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 420;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 421;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 422;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 423;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 424;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 425;BA.debugLine="cl_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_cl_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 426;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 427;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 428;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 429;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 431;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select cou"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) and CAT_DP_TIPO = 0 "))); + //BA.debugLineNum = 433;BA.debugLine="e.Position =0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 434;BA.debugLine="If e.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_e.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 435;BA.debugLine="F=B4XPages.MainPage.skmt.ExecQuery(\"select CA"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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) and CAT_DP_TIPO = 0 "))); + //BA.debugLineNum = 438;BA.debugLine="If f.RowCount>0 Then"; +if (_f.getRowCount()>0) { + //BA.debugLineNum = 439;BA.debugLine="For i=0 To f.RowCount -1"; +{ +final int step67 = 1; +final int limit67 = (int) (_f.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit67 ;_i = _i + step67 ) { + //BA.debugLineNum = 440;BA.debugLine="f.Position=i"; +_f.setPosition(_i); + //BA.debugLineNum = 441;BA.debugLine="precio_Cero = f.GetString(\"CAT_DP_PRECIO\")"; +_precio_cero = _f.GetString("CAT_DP_PRECIO"); + //BA.debugLineNum = 442;BA.debugLine="h=B4XPages.MainPage.skmt.ExecQuery2($\"selec"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_ID = ? "),new String[]{_f.GetString("CAT_DP_IDPROD")}))); + //BA.debugLineNum = 443;BA.debugLine="h.Position=0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 444;BA.debugLine="Log(111)"; +__c.LogImpl("376415055",BA.NumberToString(111),0); + //BA.debugLineNum = 445;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSER"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_precio_cero))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_precio_cero),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 446;BA.debugLine="h.Close"; +_h.Close(); + } +}; + }; + //BA.debugLineNum = 449;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 451;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 452;BA.debugLine="Log(222)"; +__c.LogImpl("376415063",BA.NumberToString(222),0); + //BA.debugLineNum = 453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 454;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + }else { + //BA.debugLineNum = 456;BA.debugLine="Msgbox(\"Tiene \" & TOT_ART_PROMO & \" \" & TOT_AR"; +__c.Msgbox(BA.ObjectToCharSequence("Tiene "+_tot_art_promo+" "+_tot_art_promor+" y necesita "+_promo_c+" "+_promo_cr+" Para la Promo. "),BA.ObjectToCharSequence("ADVERTENCIA"),ba); + }; + }; + //BA.debugLineNum = 459;BA.debugLine="cantidad.Text = \"\""; +_cantidad.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 460;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }else if((_l_marca.getText()).equals("PROMOS") && (_l_tipo.getText()).equals("PROMOS") && (_promo_c).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 462;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROIDID"); + //BA.debugLineNum = 463;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROIDID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText())})); + //BA.debugLineNum = 464;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 465;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 466;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 467;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 468;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 469;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 470;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 471;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 472;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 473;BA.debugLine="cl_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_cl_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 474;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 475;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 476;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 477;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 479;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CUANTOS FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID) "))); + //BA.debugLineNum = 480;BA.debugLine="e.Position =0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 481;BA.debugLine="If e.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_e.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 482;BA.debugLine="F=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 483;BA.debugLine="For i =0 To f.RowCount -1"; +{ +final int step110 = 1; +final int limit110 = (int) (_f.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit110 ;_i = _i + step110 ) { + //BA.debugLineNum = 484;BA.debugLine="F.Position =i"; +_f.setPosition(_i); + //BA.debugLineNum = 485;BA.debugLine="h=B4XPages.MainPage.skmt.ExecQuery2($\"select C"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_ID = ? "),new String[]{_f.GetString("CAT_DP_IDPROD")}))); + //BA.debugLineNum = 486;BA.debugLine="h.Position=0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 487;BA.debugLine="Log(333)"; +__c.LogImpl("376415098",BA.NumberToString(333),0); + //BA.debugLineNum = 488;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PRECIO")))*(double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))),(Object)(_f.GetString("CAT_DP_PRECIO")),(Object)((double)(Double.parseDouble(_f.GetString("CAT_DP_PZAS")))*(double)(Double.parseDouble(_cantidad.getText()))),(Object)(_h.GetString("CAT_GP_NOMBRE")),(Object)(_f.GetString("CAT_DP_IDPROD")),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 489;BA.debugLine="h.Close"; +_h.Close(); + } +}; + //BA.debugLineNum = 491;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 493;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 494;BA.debugLine="Log(444)"; +__c.LogImpl("376415105",BA.NumberToString(444),0); + //BA.debugLineNum = 495;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_l_proid.getText()),(Object)(0),(Object)(0),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 496;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + //BA.debugLineNum = 497;BA.debugLine="cantidad.Text = \"\""; +_cantidad.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 498;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 499;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 500;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 501;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_almacen),(Object)(_cl_ruta),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 502;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 503;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }else { + //BA.debugLineNum = 505;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 506;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 507;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 508;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 509;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 510;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 511;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 512;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 513;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 514;BA.debugLine="cl_ruta = c.GetString(\"CAT_CL_RUTA\")"; +_cl_ruta = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 515;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 516;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 517;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 518;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 519;BA.debugLine="Log(555)"; +__c.LogImpl("376415130",BA.NumberToString(555),0); + //BA.debugLineNum = 520;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_COSTO_SIN,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)((double)(Double.parseDouble(_cantidad.getText()))*(double)(Double.parseDouble(_l_precio.getText()))),(Object)(_l_precio.getText()),(Object)(_cantidad.getText()),(Object)(_l_desc.getText()),(Object)(_l_proid.getText()),(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_cl_ruta),(Object)(_preciosin),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )})); + //BA.debugLineNum = 521;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cantidad.getText()),(Object)(_l_proid.getText())})); + //BA.debugLineNum = 522;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 523;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 524;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 525;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert int"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_almacen),(Object)(_cl_ruta),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 526;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 527;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD ) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_l_proid.getText()),(Object)(_cantidad.getText())})); + //BA.debugLineNum = 528;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }; + //BA.debugLineNum = 530;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/gunav2/keymon/com/mx/c_principal.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_principal.java new file mode 100644 index 0000000..f775189 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_principal.java @@ -0,0 +1,7179 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_principal"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 String _conectado = ""; +public anywheresoftware.b4a.objects.Timer _t1 = null; +public anywheresoftware.b4a.objects.Timer _t2 = null; +public anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; +public anywheresoftware.b4a.phone.Phone _phone = null; +public anywheresoftware.b4a.gps.GPS _g = 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 _ro = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _d2 = 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 gunav2.keymon.com.mx.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.objects.LabelWrapper _l_montod = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cuantosc = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_drop = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_efectiva = 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 String _rut_rep = ""; +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.PanelWrapper _p1 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _clave = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_pas = null; +public String _paso = ""; +public anywheresoftware.b4a.objects.EditTextWrapper _usuario1 = null; +public double _connecta1 = 0; +public String _armafolio = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _nuevo = null; +public anywheresoftware.b4a.objects.LabelWrapper _s_cc = null; +public anywheresoftware.b4a.objects.LabelWrapper _s_cp = null; +public anywheresoftware.b4a.objects.LabelWrapper _s_ch = null; +public anywheresoftware.b4a.objects.ProgressBarWrapper _pb2 = null; +public anywheresoftware.b4a.objects.ProgressBarWrapper _pb1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_p_1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_p_2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_p_3 = null; +public String _carga = ""; +public String _porcentaje = ""; +public anywheresoftware.b4a.objects.PanelWrapper _p_resumen = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_res = null; +public anywheresoftware.b4a.objects.ButtonWrapper _resumen = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cuantost = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _img3 = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imageview3 = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imageview5 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_tickprom = null; +public anywheresoftware.b4a.objects.ListViewWrapper _l_marcas = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_ruta2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _e_ruta2 = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _resdia = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _hacer_ped = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _nvo_cliente = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _tickets_dia = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_monto_ks = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_monto_kp = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_monto_k = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_monto_c1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_monto_c2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_monto_c3 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_encuesta = null; +public batteryprogressviewwrapper.batteryprogressviewWrapper _bpv1 = null; +public int[] _batterystatus = null; +public gunav2.keymon.com.mx.batteryutilities _bu = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel4 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_nes = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_real = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_alcance = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vplan = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vreal = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_efec_vis = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_visitcc = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_efec_pv = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_efec_pura = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cte_promo = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_reden_promo = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_lin_tick = null; +public anywheresoftware.b4a.objects.ScrollViewWrapper _scroll_resdia = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_acumulado = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_unilever = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_rechazop = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_rechazom = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vta_3mes = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vta_2mes = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vta_1mes = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_mes_py = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_frec_de_creal = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_frec_de_cobj = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cob_visit = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_visit_real = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_visit_plan = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_eco = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cob_ccc = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ctes = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vpo_vta = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vpo_obj = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ds_vta = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ds_obj = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_dra_vta = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_dra_obj = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_alcancem = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_tendencia = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_vta_acum = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_obj_mes = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ds_objd = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ds_vtad = null; +public String _lpt = ""; +public String _steyin = ""; +public String _steyout = ""; +public anywheresoftware.b4a.objects.LabelWrapper _l_prio = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_secund = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_comp = null; +public String _stay_hh = ""; +public String _stay_mi = ""; +public String _stay_ss = ""; +public String _sdate = ""; +public String _stime = ""; +public String _horaingreso = ""; +public anywheresoftware.b4a.objects.LabelWrapper _l_quala = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ferrero = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_sanmarcos = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_campari = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_iberia = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_bepensa = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_scj = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_medj = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_duracell = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_guna = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_kimb = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_tresm = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_redb = null; +public anywheresoftware.b4a.objects.ButtonWrapper _btn_ubicar = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_comm = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_mm = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_vive = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_guna = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_ba = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_comis = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_mm_1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_vive_1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_guna_1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_ba_1 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total_comis_1 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_comiss = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel_c = null; +public int _titleheight = 0; +public int _title2height = 0; +public int _dividerheight = 0; +public b4a.example3.customlistview _clv1 = null; +public anywheresoftware.b4a.objects.B4XViewWrapper _pnltitle = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_marcas = null; +public anywheresoftware.b4a.objects.LabelWrapper _lbltitle = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_ok_panel5 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_principal = null; +public anywheresoftware.b4a.objects.IME _teclado = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel5 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel_5 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_marcasres = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_sombra = null; +public anywheresoftware.b4a.objects.LabelWrapper _label22 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_rutasuplencia = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ru_pri = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_ru_sup = null; +public anywheresoftware.b4a.objects.LabelWrapper _label4 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label25 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_transparenteactualizacion = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_forzaractualizacion = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_forzaractualizacion = null; +public String _tipo_venta = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_abordo = null; +public gunav2.keymon.com.mx.c_bitacora _bitacora = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_version = null; +public int _contadorsubir = 0; +public anywheresoftware.b4a.objects.PanelWrapper _p_somvra_2 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_resdia = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_hacerpedido = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_nuevocliente = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_clientesvisitados = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_futura = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_preventa = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_preacordada = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_prevtotal = null; +public anywheresoftware.b4a.objects.LabelWrapper _label13 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label19 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label21 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label33 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label35 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label43 = null; +public anywheresoftware.b4a.objects.LabelWrapper _label51 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_faltan = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_visitas = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_visitartotal = null; +public anywheresoftware.b4a.objects.LabelWrapper _de = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static class _titledata{ +public boolean IsInitialized; +public String Title; +public void Initialize() { +IsInitialized = true; +Title = ""; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public String _addtitle(String _title) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p_marcas = null; +gunav2.keymon.com.mx.c_principal._titledata _td = null; + //BA.debugLineNum = 3800;BA.debugLine="Sub AddTitle (Title As String)"; + //BA.debugLineNum = 3801;BA.debugLine="Dim p_marcas As B4XView = xui.CreatePanel(\"\")"; +_p_marcas = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p_marcas = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 3802;BA.debugLine="p_marcas.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W"; +_p_marcas.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_clv1._asview().getWidth(),_titleheight); + //BA.debugLineNum = 3803;BA.debugLine="p_marcas.LoadLayout(\"CellTitle\")"; +_p_marcas.LoadLayout("CellTitle",ba); + //BA.debugLineNum = 3804;BA.debugLine="lblTitle.Text = Title"; +_lbltitle.setText(BA.ObjectToCharSequence(_title)); + //BA.debugLineNum = 3805;BA.debugLine="Dim td As TitleData"; +_td = new gunav2.keymon.com.mx.c_principal._titledata(); + //BA.debugLineNum = 3806;BA.debugLine="td.Title = Title"; +_td.Title /*String*/ = _title; + //BA.debugLineNum = 3807;BA.debugLine="CLV1.Add(p_marcas, td)"; +_clv1._add(_p_marcas,(Object)(_td)); + //BA.debugLineNum = 3808;BA.debugLine="End Sub"; +return ""; +} +public String _b_abordo_click() throws Exception{ + //BA.debugLineNum = 3850;BA.debugLine="Private Sub b_abordo_Click"; + //BA.debugLineNum = 3851;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from cuentaa\"$"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from cuentaa")); + //BA.debugLineNum = 3852;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into cuentaa ("; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into cuentaa (cuenta) values ('0')")); + //BA.debugLineNum = 3853;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 3854;BA.debugLine="End Sub"; +return ""; +} +public String _b_clientesvisitados_click() throws Exception{ + //BA.debugLineNum = 3860;BA.debugLine="Private Sub b_clientesvisitados_Click"; + //BA.debugLineNum = 3861;BA.debugLine="tickets_dia_Click"; +_tickets_dia_click(); + //BA.debugLineNum = 3862;BA.debugLine="End Sub"; +return ""; +} +public String _b_comm_click() throws Exception{ + //BA.debugLineNum = 3681;BA.debugLine="Sub B_COMM_Click"; + //BA.debugLineNum = 3682;BA.debugLine="Btn_Ubicar.Visible=False"; +_btn_ubicar.setVisible(__c.False); + //BA.debugLineNum = 3683;BA.debugLine="SCROLL_RESDIA.Visible = True"; +_scroll_resdia.setVisible(__c.True); + //BA.debugLineNum = 3684;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"COMIS\")"; +_scroll_resdia.getPanel().LoadLayout("COMIS",ba); + //BA.debugLineNum = 3685;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel_C.Height"; +_scroll_resdia.getPanel().setHeight(_panel_c.getHeight()); + //BA.debugLineNum = 3686;BA.debugLine="Panel4.Visible = False"; +_panel4.setVisible(__c.False); + //BA.debugLineNum = 3687;BA.debugLine="Panel_C.Visible = True"; +_panel_c.setVisible(__c.True); + //BA.debugLineNum = 3688;BA.debugLine="Panel_C.Width = Root.Width * 0.90"; +_panel_c.setWidth((int) (_root.getWidth()*0.90)); + //BA.debugLineNum = 3692;BA.debugLine="NUEVO.Visible =False"; +_nuevo.setVisible(__c.False); + //BA.debugLineNum = 3693;BA.debugLine="BUSCA.Visible=False"; +_busca.setVisible(__c.False); + //BA.debugLineNum = 3694;BA.debugLine="connecta.Visible=False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 3695;BA.debugLine="Subir.Visible=False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 3696;BA.debugLine="cargar.Visible=False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 3697;BA.debugLine="Resumen.Visible= False"; +_resumen.setVisible(__c.False); + //BA.debugLineNum = 3699;BA.debugLine="If l_ruta.Text <> 0 Then"; +if ((_l_ruta.getText()).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 3700;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HCM_T"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HCM_TOTAL_V, HCM_TOTAL_VIVE, HCM_TOTAL_GUNA, HCM_TOTAL_BEB from HIST_COMISIONES_MOVIL"))); + //BA.debugLineNum = 3701;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 3702;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3703;BA.debugLine="L_TOTAL_BA.Text = c.GetString(\"HCM_TOTAL_BEB\")"; +_l_total_ba.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_BEB"))); + //BA.debugLineNum = 3704;BA.debugLine="L_TOTAL_GUNA.Text = c.GetString(\"HCM_TOTAL_GUNA"; +_l_total_guna.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_GUNA"))); + //BA.debugLineNum = 3705;BA.debugLine="L_TOTAL_MM.Text = c.GetString(\"HCM_TOTAL_V\")"; +_l_total_mm.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_V"))); + //BA.debugLineNum = 3706;BA.debugLine="L_TOTAL_VIVE.Text = c.GetString(\"HCM_TOTAL_VIVE"; +_l_total_vive.setText(BA.ObjectToCharSequence(_c.GetString("HCM_TOTAL_VIVE"))); + //BA.debugLineNum = 3707;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3708;BA.debugLine="L_TOTAL_COMIS.Text = 0"; +_l_total_comis.setText(BA.ObjectToCharSequence(0)); + }; + }else { + //BA.debugLineNum = 3711;BA.debugLine="L_TOTAL_BA.Text = 0"; +_l_total_ba.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3712;BA.debugLine="L_TOTAL_GUNA.Text = 0"; +_l_total_guna.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3713;BA.debugLine="L_TOTAL_MM.Text = 0"; +_l_total_mm.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3714;BA.debugLine="L_TOTAL_VIVE.Text = 0"; +_l_total_vive.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3715;BA.debugLine="L_TOTAL_COMIS.Text = 0"; +_l_total_comis.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3718;BA.debugLine="End Sub"; +return ""; +} +public String _b_hacerpedido_click() throws Exception{ + //BA.debugLineNum = 3872;BA.debugLine="Private Sub b_hacerpedido_Click"; + //BA.debugLineNum = 3873;BA.debugLine="hacer_ped_Click"; +_hacer_ped_click(); + //BA.debugLineNum = 3874;BA.debugLine="End Sub"; +return ""; +} +public String _b_mapa_click() throws Exception{ + //BA.debugLineNum = 2856;BA.debugLine="Sub b_mapa_Click"; + //BA.debugLineNum = 2858;BA.debugLine="B4XPages.GetPage(\"Mapas\")"; +_b4xpages._getpage /*Object*/ (ba,"Mapas"); + //BA.debugLineNum = 2859;BA.debugLine="End Sub"; +return ""; +} +public String _b_marcas_click() throws Exception{ +int _i = 0; + //BA.debugLineNum = 3733;BA.debugLine="Sub B_MARCAS_Click"; + //BA.debugLineNum = 3734;BA.debugLine="SCROLL_RESDIA.Visible = True"; +_scroll_resdia.setVisible(__c.True); + //BA.debugLineNum = 3735;BA.debugLine="p_sombra.Width = Root.Width"; +_p_sombra.setWidth(_root.getWidth()); + //BA.debugLineNum = 3736;BA.debugLine="p_sombra.Height = Root.Height"; +_p_sombra.setHeight(_root.getHeight()); + //BA.debugLineNum = 3737;BA.debugLine="Subs.panelVisible(p_sombra, 0, 0)"; +_subs._panelvisible /*String*/ (ba,_p_sombra,(int) (0),(int) (0)); + //BA.debugLineNum = 3738;BA.debugLine="p_marcasRes.Visible = True"; +_p_marcasres.setVisible(__c.True); + //BA.debugLineNum = 3739;BA.debugLine="p_marcasRes.Height = Root.Height * 0.8"; +_p_marcasres.setHeight((int) (_root.getHeight()*0.8)); + //BA.debugLineNum = 3740;BA.debugLine="p_marcasRes.BringToFront"; +_p_marcasres.BringToFront(); + //BA.debugLineNum = 3742;BA.debugLine="pnlTitle.Visible = False"; +_pnltitle.setVisible(__c.False); + //BA.debugLineNum = 3746;BA.debugLine="B_OK_PANEL5.Top = p_marcasRes.Height - (B_OK_PANE"; +_b_ok_panel5.setTop((int) (_p_marcasres.getHeight()-(_b_ok_panel5.getHeight()+20))); + //BA.debugLineNum = 3747;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_GP"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_GP_CLASIF, SUM(TOTAL) AS TOTAL FROM TOTAL_MARCAS GROUP BY CAT_GP_CLASIF"))); + //BA.debugLineNum = 3748;BA.debugLine="CLV1.Clear"; +_clv1._clear(); + //BA.debugLineNum = 3749;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 3750;BA.debugLine="For i=0 To c.RowCount - 1"; +{ +final int step13 = 1; +final int limit13 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit13 ;_i = _i + step13 ) { + //BA.debugLineNum = 3751;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 3752;BA.debugLine="AddTitle(c.GetString(\"CAT_GP_CLASIF\"))"; +_addtitle(_c.GetString("CAT_GP_CLASIF")); + //BA.debugLineNum = 3753;BA.debugLine="If c.GetString(\"CAT_GP_CLASIF\") = \"PROMOS\" Then"; +if ((_c.GetString("CAT_GP_CLASIF")).equals("PROMOS")) { + //BA.debugLineNum = 3754;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(PE_CANT) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID"))); + //BA.debugLineNum = 3755;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3756;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD DE PROMOS = \" & d.G"; +_clv1._addtextitem((Object)("CANTIDAD DE PROMOS = "+_d.GetString("CUANTOS")),(Object)("1")); + //BA.debugLineNum = 3757;BA.debugLine="d.Close"; +_d.Close(); + }else { + //BA.debugLineNum = 3759;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery2(\"select CO"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS from HIST_MARCAS_CUOTAS where HMC_MARCA = ?",new String[]{_c.GetString("CAT_GP_CLASIF")}))); + //BA.debugLineNum = 3760;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 3761;BA.debugLine="If f.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_f.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 3762;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery2(\"select H"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HMC_MARCA, HMC_TOTAL from HIST_MARCAS_CUOTAS where HMC_MARCA = ?",new String[]{_c.GetString("CAT_GP_CLASIF")}))); + //BA.debugLineNum = 3763;BA.debugLine="e.Position=0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 3764;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"SELECT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("SELECT count(distinct(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" WHERE CAT_GP_CLASIF =?)"),new String[]{_c.GetString("CAT_GP_CLASIF")}))); + //BA.debugLineNum = 3765;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3766;BA.debugLine="CLV1.AddTextItem(\"TOTAL PREVENTA = $\" & c.Ge"; +_clv1._addtextitem((Object)("TOTAL PREVENTA = $"+_c.GetString("TOTAL")),(Object)("1")); + //BA.debugLineNum = 3767;BA.debugLine="CLV1.AddTextItem(\"META MES= $\" & e.GetString("; +_clv1._addtextitem((Object)("META MES= $"+_e.GetString("HMC_TOTAL")),(Object)("1")); + //BA.debugLineNum = 3768;BA.debugLine="CLV1.AddTextItem(\"META DIA= $\" & Round(e.GetS"; +_clv1._addtextitem((Object)("META DIA= $"+BA.NumberToString(__c.Round((double)(Double.parseDouble(_e.GetString("HMC_TOTAL")))/(double)25))),(Object)("1")); + //BA.debugLineNum = 3769;BA.debugLine="CLV1.AddTextItem(\"FALTA DIA= $\" & Round((e.Ge"; +_clv1._addtextitem((Object)("FALTA DIA= $"+BA.NumberToString(__c.Round(((double)(Double.parseDouble(_e.GetString("HMC_TOTAL")))/(double)25)-(double)(Double.parseDouble(_c.GetString("TOTAL")))))),(Object)("1")); + //BA.debugLineNum = 3770;BA.debugLine="CLV1.AddTextItem(\"CLIENTES = \" & d.GetString"; +_clv1._addtextitem((Object)("CLIENTES = "+_d.GetString("CUANTOS")),(Object)("1")); + //BA.debugLineNum = 3771;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3772;BA.debugLine="e.Close"; +_e.Close(); + }else { + //BA.debugLineNum = 3774;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"SELECT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("SELECT count(distinct(pe_cliente)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" WHERE CAT_GP_CLASIF =?)"),new String[]{_c.GetString("CAT_GP_CLASIF")}))); + //BA.debugLineNum = 3775;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3776;BA.debugLine="CLV1.AddTextItem(\"TOTAL PREVENTA = $\" & c.Ge"; +_clv1._addtextitem((Object)("TOTAL PREVENTA = $"+_c.GetString("TOTAL")),(Object)("1")); + //BA.debugLineNum = 3777;BA.debugLine="CLV1.AddTextItem(\"M E T A = $\" & \"1000\",\"1\")"; +_clv1._addtextitem((Object)("M E T A = $"+"1000"),(Object)("1")); + //BA.debugLineNum = 3778;BA.debugLine="CLV1.AddTextItem(\"FALTA = $\" & (1000 - c.Get"; +_clv1._addtextitem((Object)("FALTA = $"+BA.NumberToString((1000-(double)(Double.parseDouble(_c.GetString("TOTAL")))))),(Object)("1")); + //BA.debugLineNum = 3779;BA.debugLine="CLV1.AddTextItem(\"CLIENTES = \" & d.GetString"; +_clv1._addtextitem((Object)("CLIENTES = "+_d.GetString("CUANTOS")),(Object)("1")); + //BA.debugLineNum = 3780;BA.debugLine="d.Close"; +_d.Close(); + }; + //BA.debugLineNum = 3782;BA.debugLine="f.Close"; +_f.Close(); + }; + } +}; + }; + //BA.debugLineNum = 3786;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3798;BA.debugLine="End Sub"; +return ""; +} +public String _b_nuevocliente_click() throws Exception{ + //BA.debugLineNum = 3868;BA.debugLine="Private Sub b_nuevocliente_Click"; + //BA.debugLineNum = 3869;BA.debugLine="nvo_cliente_Click"; +_nvo_cliente_click(); + //BA.debugLineNum = 3870;BA.debugLine="End Sub"; +return ""; +} +public String _b_ok_comiss_click() throws Exception{ + //BA.debugLineNum = 3720;BA.debugLine="Sub B_OK_COMISS_Click"; + //BA.debugLineNum = 3721;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3722;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3723;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3724;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3725;BA.debugLine="P_RESUMEN.Visible=False"; +_p_resumen.setVisible(__c.False); + //BA.debugLineNum = 3726;BA.debugLine="Panel_C.Visible = False"; +_panel_c.setVisible(__c.False); + //BA.debugLineNum = 3727;BA.debugLine="SCROLL_RESDIA.Visible = False"; +_scroll_resdia.setVisible(__c.False); + //BA.debugLineNum = 3728;BA.debugLine="Btn_Ubicar.Visible=True"; +_btn_ubicar.setVisible(__c.True); + //BA.debugLineNum = 3729;BA.debugLine="p_principal.Visible = True"; +_p_principal.setVisible(__c.True); + //BA.debugLineNum = 3730;BA.debugLine="SCROLL_RESDIA.Panel.RemoveAllViews"; +_scroll_resdia.getPanel().RemoveAllViews(); + //BA.debugLineNum = 3731;BA.debugLine="End Sub"; +return ""; +} +public String _b_ok_panel5_click() throws Exception{ + //BA.debugLineNum = 3810;BA.debugLine="Sub B_OK_PANEL5_Click"; + //BA.debugLineNum = 3811;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3812;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3813;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3814;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3815;BA.debugLine="P_RESUMEN.Visible=False"; +_p_resumen.setVisible(__c.False); + //BA.debugLineNum = 3816;BA.debugLine="Panel4.Visible = False"; +_panel4.setVisible(__c.False); + //BA.debugLineNum = 3817;BA.debugLine="SCROLL_RESDIA.Visible = False"; +_scroll_resdia.setVisible(__c.False); + //BA.debugLineNum = 3818;BA.debugLine="p_marcasRes.Visible = False"; +_p_marcasres.setVisible(__c.False); + //BA.debugLineNum = 3819;BA.debugLine="p_sombra.Visible = False"; +_p_sombra.setVisible(__c.False); + //BA.debugLineNum = 3820;BA.debugLine="Btn_Ubicar.Visible=True"; +_btn_ubicar.setVisible(__c.True); + //BA.debugLineNum = 3821;BA.debugLine="p_principal.Visible = True"; +_p_principal.setVisible(__c.True); + //BA.debugLineNum = 3822;BA.debugLine="End Sub"; +return ""; +} +public String _b_ok_pas_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _cn = null; +int _gh = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c11 = null; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c12 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c13 = null; + //BA.debugLineNum = 3019;BA.debugLine="Sub B_OK_PAS_Click"; + //BA.debugLineNum = 3020;BA.debugLine="If CARGA = \"SUBIR\" And S_CP.Text = \"INFO OK\" Then"; +if ((_carga).equals("SUBIR") && (_s_cp.getText()).equals("INFO OK")) { + //BA.debugLineNum = 3021;BA.debugLine="P1.Visible = False"; +_p1.setVisible(__c.False); + //BA.debugLineNum = 3022;BA.debugLine="Btn_Ubicar.Visible=True"; +_btn_ubicar.setVisible(__c.True); + //BA.debugLineNum = 3024;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3025;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3026;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3027;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3028;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 3029;BA.debugLine="CARGA = \"\""; +_carga = ""; + //BA.debugLineNum = 3031;BA.debugLine="E_RUTA2.Text = \"\""; +_e_ruta2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 3032;BA.debugLine="e_ruta.Text = \"\""; +_e_ruta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 3033;BA.debugLine="Label4.Visible = True"; +_label4.setVisible(__c.True); + //BA.debugLineNum = 3034;BA.debugLine="l_ruta.Visible = True"; +_l_ruta.setVisible(__c.True); + //BA.debugLineNum = 3035;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_carga).equals("SUBIR") && (_s_cp.getText()).equals("ERROR")) { + //BA.debugLineNum = 3037;BA.debugLine="Msgbox(\"Tiene que subir de nuevo la información\""; +__c.Msgbox(BA.ObjectToCharSequence("Tiene que subir de nuevo la información"),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 3038;BA.debugLine="P1.Visible = False"; +_p1.setVisible(__c.False); + //BA.debugLineNum = 3040;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3041;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3042;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3043;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3044;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + }else if((_carga).equals("SUBIR") && (_s_cp.getText()).equals("INFO OK") == false) { + //BA.debugLineNum = 3047;BA.debugLine="RES = Msgbox2(\"Seguro que desa abortar el proce"; +_res = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa abortar el proceso"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 3048;BA.debugLine="If RES = DialogResponse.POSITIVE Then"; +if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 3049;BA.debugLine="P1.Visible = False"; +_p1.setVisible(__c.False); + //BA.debugLineNum = 3051;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3052;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3053;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3054;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3055;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 3056;BA.debugLine="l_visitartotal.Visible = True"; +_l_visitartotal.setVisible(__c.True); + //BA.debugLineNum = 3057;BA.debugLine="de.Visible = True"; +_de.setVisible(__c.True); + //BA.debugLineNum = 3058;BA.debugLine="l_faltan.Visible = True"; +_l_faltan.setVisible(__c.True); + //BA.debugLineNum = 3059;BA.debugLine="l_visitas.Visible = True"; +_l_visitas.setVisible(__c.True); + //BA.debugLineNum = 3061;BA.debugLine="ExitApplication"; +__c.ExitApplication(); + }; + }; + //BA.debugLineNum = 3064;BA.debugLine="If CARGA = \"CARGAR\" And S_CP.Text = \"LISTO\" And S"; +if ((_carga).equals("CARGAR") && (_s_cp.getText()).equals("LISTO") && (_s_cc.getText()).equals("LISTO") && (_s_ch.getText()).equals("LISTO")) { + //BA.debugLineNum = 3065;BA.debugLine="P1.Visible = False"; +_p1.setVisible(__c.False); + //BA.debugLineNum = 3066;BA.debugLine="Btn_Ubicar.Visible=True"; +_btn_ubicar.setVisible(__c.True); + //BA.debugLineNum = 3068;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3069;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3070;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3071;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3072;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 3074;BA.debugLine="Label4.Visible = True"; +_label4.setVisible(__c.True); + //BA.debugLineNum = 3075;BA.debugLine="l_ruta.Visible = True"; +_l_ruta.setVisible(__c.True); + //BA.debugLineNum = 3076;BA.debugLine="l_visitartotal.Visible = True"; +_l_visitartotal.setVisible(__c.True); + //BA.debugLineNum = 3077;BA.debugLine="de.Visible = True"; +_de.setVisible(__c.True); + //BA.debugLineNum = 3078;BA.debugLine="l_faltan.Visible = True"; +_l_faltan.setVisible(__c.True); + //BA.debugLineNum = 3079;BA.debugLine="l_visitas.Visible = True"; +_l_visitas.setVisible(__c.True); + //BA.debugLineNum = 3080;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 3082;BA.debugLine="Dim cn As Cursor = Starter.skmt.ExecQuery(\"SELEC"; +_cn = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cn = (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 CLIENTES_NUEVOS"))); + //BA.debugLineNum = 3083;BA.debugLine="If cn.RowCount > 0 Then"; +if (_cn.getRowCount()>0) { + //BA.debugLineNum = 3084;BA.debugLine="For gh = 0 To cn.RowCount -1"; +{ +final int step56 = 1; +final int limit56 = (int) (_cn.getRowCount()-1); +_gh = (int) (0) ; +for (;_gh <= limit56 ;_gh = _gh + step56 ) { + //BA.debugLineNum = 3085;BA.debugLine="cn.Position = gh"; +_cn.setPosition(_gh); + //BA.debugLineNum = 3086;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_GIRO) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,0,0,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cn.GetString("CN_ID")),(Object)(_cn.GetString("CN_RUTA")),(Object)(_cn.GetString("CN_NOMBRE")),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)("null"),(Object)(_cn.GetString("CN_LON")),(Object)(_cn.GetString("CN_LAT")),(Object)(_cn.GetString("CN_GIRO"))})); + } +}; + }; + //BA.debugLineNum = 3090;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"})); + //BA.debugLineNum = 3091;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("CARGA_DIA"),(Object)(1)})); + //BA.debugLineNum = 3092;BA.debugLine="If E_RUTA2.Visible = True Then"; +if (_e_ruta2.getVisible()==__c.True) { + //BA.debugLineNum = 3093;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim"; +_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_subs._traealmacen /*String*/ (ba),_subs._traeruta /*String*/ (ba),"Carga día suplencia","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","",""); + }else { + //BA.debugLineNum = 3095;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim"; +_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_subs._traealmacen /*String*/ (ba),_subs._traeruta /*String*/ (ba),"Carga día","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","",""); + }; + //BA.debugLineNum = 3097;BA.debugLine="Dim c11 As Cursor = Starter.skmt.ExecQuery(\"Sel"; +_c11 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c11 = (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_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'PREVENTA'"))); + //BA.debugLineNum = 3098;BA.debugLine="If c11.RowCount > 0 Then"; +if (_c11.getRowCount()>0) { + //BA.debugLineNum = 3099;BA.debugLine="For i = 0 To c11.RowCount - 1"; +{ +final int step70 = 1; +final int limit70 = (int) (_c11.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit70 ;_i = _i + step70 ) { + //BA.debugLineNum = 3100;BA.debugLine="c11.Position = i"; +_c11.setPosition(_i); + //BA.debugLineNum = 3101;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c11.GetString("PE_CANT")))+" WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c11.GetString("PE_PROID")))+"'")); + } +}; + }; + //BA.debugLineNum = 3104;BA.debugLine="c11.Close"; +_c11.Close(); + //BA.debugLineNum = 3106;BA.debugLine="Dim c12 As Cursor = Starter.skmt.ExecQuery(\"Sel"; +_c12 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c12 = (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_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'ABORDO'"))); + //BA.debugLineNum = 3107;BA.debugLine="If c12.RowCount > 0 Then"; +if (_c12.getRowCount()>0) { + //BA.debugLineNum = 3108;BA.debugLine="For i = 0 To c12.RowCount - 1"; +{ +final int step78 = 1; +final int limit78 = (int) (_c12.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit78 ;_i = _i + step78 ) { + //BA.debugLineNum = 3109;BA.debugLine="c12.Position = i"; +_c12.setPosition(_i); + //BA.debugLineNum = 3110;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c12.GetString("PE_CANT")))+" WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c12.GetString("PE_PROID")))+"'")); + } +}; + }; + //BA.debugLineNum = 3113;BA.debugLine="c12.Close"; +_c12.Close(); + //BA.debugLineNum = 3115;BA.debugLine="Dim c13 As Cursor = Starter.skmt.ExecQuery(\"Sel"; +_c13 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c13 = (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_PRONOMBRE, PE_PROID, PE_CANT FROM PEDIDO WHERE PE_FOLIO = 'VENTA'"))); + //BA.debugLineNum = 3116;BA.debugLine="If c13.RowCount > 0 Then"; +if (_c13.getRowCount()>0) { + //BA.debugLineNum = 3117;BA.debugLine="For i = 0 To c13.RowCount - 1"; +{ +final int step86 = 1; +final int limit86 = (int) (_c13.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit86 ;_i = _i + step86 ) { + //BA.debugLineNum = 3118;BA.debugLine="c13.Position = i"; +_c13.setPosition(_i); + //BA.debugLineNum = 3119;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE CAT_GUNAPRO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE CAT_GUNAPROD2 SET CAT_GP_ALMACEN = CAT_GP_ALMACEN - "+__c.SmartStringFormatter("",(Object)(_c13.GetString("PE_CANT")))+" WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c13.GetString("PE_PROID")))+"'")); + } +}; + }; + //BA.debugLineNum = 3122;BA.debugLine="c13.Close"; +_c13.Close(); + //BA.debugLineNum = 3126;BA.debugLine="checaPedido"; +_checapedido(); + }else if((_carga).equals("CARGAR") && ((_s_cp.getText()).equals("LISTO") == false || (_s_cc.getText()).equals("LISTO") == false || (_s_ch.getText()).equals("LISTO") == false)) { + //BA.debugLineNum = 3128;BA.debugLine="RES = Msgbox2(\"Seguro que desa abortar el proce"; +_res = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desa abortar el proceso"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 3129;BA.debugLine="If RES = DialogResponse.POSITIVE Then"; +if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 3130;BA.debugLine="P1.Visible = False"; +_p1.setVisible(__c.False); + //BA.debugLineNum = 3132;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3133;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3134;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3135;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3136;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 3138;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 3139;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info3"); + //BA.debugLineNum = 3140;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result"); + //BA.debugLineNum = 3141;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest"); + //BA.debugLineNum = 3142;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); + //BA.debugLineNum = 3143;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); + //BA.debugLineNum = 3144;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos"); + //BA.debugLineNum = 3145;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); + //BA.debugLineNum = 3146;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS"); + //BA.debugLineNum = 3147;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS"); + //BA.debugLineNum = 3148;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP"); + //BA.debugLineNum = 3149;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION"); + //BA.debugLineNum = 3150;BA.debugLine="ExitApplication"; +__c.ExitApplication(); + }; + }; + //BA.debugLineNum = 3153;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Or Subs.traeT"; +if ((_subs._traetipoventadebd /*String*/ (ba)).equals("VENTA") || (_subs._traetipoventadebd /*String*/ (ba)).equals("ABORDO")) { + //BA.debugLineNum = 3154;BA.debugLine="If l_ruta.Text <> \"0\" Then"; +if ((_l_ruta.getText()).equals("0") == false) { + //BA.debugLineNum = 3155;BA.debugLine="Log(888 & \"|\" & l_ruta.Text & \"|\")"; +__c.LogImpl("34391048",BA.NumberToString(888)+"|"+_l_ruta.getText()+"|",0); + //BA.debugLineNum = 3156;BA.debugLine="b_abordo.Visible = False"; +_b_abordo.setVisible(__c.False); + }; + }else { + //BA.debugLineNum = 3159;BA.debugLine="b_abordo.Visible = False"; +_b_abordo.setVisible(__c.False); + }; + //BA.debugLineNum = 3161;BA.debugLine="End Sub"; +return ""; +} +public String _b_ok_res_click() throws Exception{ + //BA.debugLineNum = 3167;BA.debugLine="Sub B_OK_RES_Click"; + //BA.debugLineNum = 3169;BA.debugLine="NUEVO.Visible =True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 3170;BA.debugLine="BUSCA.Visible=True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 3171;BA.debugLine="connecta.Visible=True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 3172;BA.debugLine="Resumen.Visible= True"; +_resumen.setVisible(__c.True); + //BA.debugLineNum = 3173;BA.debugLine="P_RESUMEN.Visible=False"; +_p_resumen.setVisible(__c.False); + //BA.debugLineNum = 3174;BA.debugLine="Panel4.Visible = False"; +_panel4.setVisible(__c.False); + //BA.debugLineNum = 3175;BA.debugLine="SCROLL_RESDIA.Visible = False"; +_scroll_resdia.setVisible(__c.False); + //BA.debugLineNum = 3176;BA.debugLine="Btn_Ubicar.Visible=True"; +_btn_ubicar.setVisible(__c.True); + //BA.debugLineNum = 3177;BA.debugLine="p_principal.Visible = True"; +_p_principal.setVisible(__c.True); + //BA.debugLineNum = 3178;BA.debugLine="End Sub"; +return ""; +} +public String _b_resdia_click() throws Exception{ + //BA.debugLineNum = 3876;BA.debugLine="Private Sub b_resdia_Click"; + //BA.debugLineNum = 3877;BA.debugLine="resdia_Click"; +_resdia_click(); + //BA.debugLineNum = 3878;BA.debugLine="End Sub"; +return ""; +} +public String _b_ubicar_click() throws Exception{ + //BA.debugLineNum = 3864;BA.debugLine="Private Sub b_ubicar_Click"; + //BA.debugLineNum = 3865;BA.debugLine="Btn_Ubicar_Click"; +_btn_ubicar_click(); + //BA.debugLineNum = 3866;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _totalcisitas = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _visitasfaltantes = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +String _total7 = ""; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; + //BA.debugLineNum = 381;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 385;BA.debugLine="p_principal.Visible = True"; +_p_principal.setVisible(__c.True); + //BA.debugLineNum = 386;BA.debugLine="E_RUTA2.Text = \"\""; +_e_ruta2.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 387;BA.debugLine="p_ruta2.Visible = False"; +_p_ruta2.setVisible(__c.False); + //BA.debugLineNum = 388;BA.debugLine="E_RUTA2.Visible = False"; +_e_ruta2.setVisible(__c.False); + //BA.debugLineNum = 389;BA.debugLine="p_somvra_2.Visible = False"; +_p_somvra_2.setVisible(__c.False); + //BA.debugLineNum = 390;BA.debugLine="Subs.validaPromoProcterPRO3009"; +_subs._validapromoprocterpro3009 /*String*/ (ba); + //BA.debugLineNum = 391;BA.debugLine="HORAINGRESO =\"000000\""; +_horaingreso = "000000"; + //BA.debugLineNum = 392;BA.debugLine="Btn_Ubicar.Left = (Panel4.Width/2) - (Btn_Ubicar."; +_btn_ubicar.setLeft((int) ((_panel4.getWidth()/(double)2)-(_btn_ubicar.getWidth()/(double)2))); + //BA.debugLineNum = 394;BA.debugLine="PASO = 0"; +_paso = BA.NumberToString(0); + //BA.debugLineNum = 395;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then"; +if (__c.Not(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getGPSEnabled())) { + //BA.debugLineNum = 396;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence("Es necesario tener el GPS encendido"),__c.True);}; + //BA.debugLineNum = 397;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent"; +__c.StartActivity(ba,(Object)(_starter._gps /*anywheresoftware.b4a.gps.GPS*/ .getLocationSettingsIntent())); + }; + //BA.debugLineNum = 399;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select count"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"}))); + //BA.debugLineNum = 400;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 401;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; +if ((_c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 402;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 403;BA.debugLine="cmd.Name = \"select_fecha\""; +_cmd.Name /*String*/ = "select_fecha"; + //BA.debugLineNum = 404;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("fecha")); + //BA.debugLineNum = 405;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore"; +__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR FECHA"),BA.ObjectToCharSequence("AVISO"),ba); + //BA.debugLineNum = 406;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else { + //BA.debugLineNum = 408;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"FECHA"}))); + //BA.debugLineNum = 409;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 410;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 411;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; +__c.DateTime.setDateFormat("yyyyMMdd"); + //BA.debugLineNum = 412;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 413;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then"; +if ((double)(Double.parseDouble(_c.GetString("CAT_VA_VALOR")))>(double)(Double.parseDouble(_sdate))) { + //BA.debugLineNum = 414;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS"; +__c.Msgbox(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA"),BA.ObjectToCharSequence("AVISO"),ba); + //BA.debugLineNum = 415;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 416;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + //BA.debugLineNum = 418;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 420;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 421;BA.debugLine="If EJECUTANDO = 0 Then"; +if ((_ejecutando).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 422;BA.debugLine="Listo1 = 0"; +_listo1 = BA.NumberToString(0); + //BA.debugLineNum = 423;BA.debugLine="Listo2 = 0"; +_listo2 = BA.NumberToString(0); + //BA.debugLineNum = 424;BA.debugLine="Listo3 = 0"; +_listo3 = BA.NumberToString(0); + //BA.debugLineNum = 425;BA.debugLine="Listo4 = 0"; +_listo4 = BA.NumberToString(0); + //BA.debugLineNum = 426;BA.debugLine="Listo5 = 0"; +_listo5 = BA.NumberToString(0); + //BA.debugLineNum = 427;BA.debugLine="inve = 0"; +_inve = BA.NumberToString(0); + //BA.debugLineNum = 428;BA.debugLine="img2.Visible =False"; +_img2.setVisible(__c.False); + }; + //BA.debugLineNum = 430;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 431;BA.debugLine="fecha=DateTime.Date(DateTime.Now)"; +_fecha = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 432;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count("; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente"))); + //BA.debugLineNum = 433;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 434;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")"; +_cuantos = _b.GetString("CUANTOS"); + //BA.debugLineNum = 435;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 436;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageSh"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence(_cuantos),__c.True);}; + //BA.debugLineNum = 437;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info3 where gestion = 0"))); + //BA.debugLineNum = 438;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 439;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info3"))); + //BA.debugLineNum = 440;BA.debugLine="e.Position=0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 441;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info3"))); + //BA.debugLineNum = 442;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 443;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")"; +_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA"))); + //BA.debugLineNum = 444;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 445;BA.debugLine="If l_ruta.Text = 0 Then"; +if ((_l_ruta.getText()).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 446;BA.debugLine="l_ruta.Text =0"; +_l_ruta.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 447;BA.debugLine="l_visitas.Text = 0"; +_l_visitas.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 448;BA.debugLine="l_faltan.Text = 0"; +_l_faltan.setText(BA.ObjectToCharSequence(0)); + }else { + //BA.debugLineNum = 450;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select disti"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))); + //BA.debugLineNum = 451;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 452;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")"; +_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA"))); + //BA.debugLineNum = 453;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 455;BA.debugLine="Dim totalcisitas As Cursor = Starter.skmt.ExecQu"; +_totalcisitas = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_totalcisitas = (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_INFO3 where cat_cl_codigo <> 0"))); + //BA.debugLineNum = 456;BA.debugLine="totalcisitas.Position = 0"; +_totalcisitas.setPosition((int) (0)); + //BA.debugLineNum = 457;BA.debugLine="l_visitas.Text = totalcisitas.GetInt(\"CUENTA\")"; +_l_visitas.setText(BA.ObjectToCharSequence(_totalcisitas.GetInt("CUENTA"))); + //BA.debugLineNum = 458;BA.debugLine="Dim visitasfaltantes As Cursor = Starter.skmt.Ex"; +_visitasfaltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_visitasfaltantes = (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_INFO3 WHERE gestion = 0 and cat_cl_codigo <> 0"))); + //BA.debugLineNum = 459;BA.debugLine="visitasfaltantes.Position = 0"; +_visitasfaltantes.setPosition((int) (0)); + //BA.debugLineNum = 460;BA.debugLine="l_faltan.Text = visitasfaltantes.GetInt(\"CUENTA\""; +_l_faltan.setText(BA.ObjectToCharSequence(_visitasfaltantes.GetInt("CUENTA"))); + }; + //BA.debugLineNum = 462;BA.debugLine="If Cuantos = 0 Then"; +if ((_cuantos).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 463;BA.debugLine="L_MONTOD.Text =0"; +_l_montod.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 464;BA.debugLine="l_cuantosc.Text = 0"; +_l_cuantosc.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 465;BA.debugLine="l_cuantosn.Text = 0"; +_l_cuantosn.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 466;BA.debugLine="L_CUANTOST.Text = 0"; +_l_cuantost.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 467;BA.debugLine="drop = 0"; +_drop = 0; + //BA.debugLineNum = 468;BA.debugLine="l_drop.Text = 0"; +_l_drop.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 469;BA.debugLine="efectiva = 0"; +_efectiva = 0; + //BA.debugLineNum = 470;BA.debugLine="l_efectiva.text =0"; +_l_efectiva.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 471;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")"; +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR"))); + //BA.debugLineNum = 472;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")"; +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR"))); + //BA.debugLineNum = 473;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 474;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 475;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count( distinct NV_CLIENTE) as CUANTOS from noventa"))); + //BA.debugLineNum = 476;BA.debugLine="b.Position=0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 477;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")"; +_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS"))); + //BA.debugLineNum = 478;BA.debugLine="b.close"; +_b.Close(); + }else { + //BA.debugLineNum = 480;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select SUM(P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_COSTO_TOT) as MONTO_DIA, COUNT(DISTINCT(PE_CLIENTE)) AS CLIENTES_DIA from PEDIDO"))); + //BA.debugLineNum = 481;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count( distinct NV_CLIENTE) as CUANTOS from noventa"))); + //BA.debugLineNum = 482;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 483;BA.debugLine="b.Position=0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 484;BA.debugLine="L_MONTOD.Text = NumberFormat2(c.GetDouble(\"MONTO"; +_l_montod.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_c.GetDouble("MONTO_DIA"),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 485;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")"; +_l_cuantosc.setText(BA.ObjectToCharSequence(_c.GetString("CLIENTES_DIA"))); + //BA.debugLineNum = 486;BA.debugLine="D2=B4XPages.MainPage.skmt.ExecQuery(\"select COU"; +_d2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS from PEDIDO "))); + //BA.debugLineNum = 487;BA.debugLine="D2.Position = 0"; +_d2.setPosition((int) (0)); + //BA.debugLineNum = 488;BA.debugLine="LPT = D2.GetString(\"CUANTOS\") / l_cuantosc.Text"; +_lpt = BA.NumberToString((double)(Double.parseDouble(_d2.GetString("CUANTOS")))/(double)(double)(Double.parseDouble(_l_cuantosc.getText()))); + //BA.debugLineNum = 489;BA.debugLine="D2.Close"; +_d2.Close(); + //BA.debugLineNum = 490;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")"; +_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS"))); + //BA.debugLineNum = 491;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt"; +_efectiva = (double)(Double.parseDouble(_c.GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(_e.GetString("POR_VISITAR"))); + //BA.debugLineNum = 492;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)"; +_l_efectiva.setText(BA.ObjectToCharSequence(__c.Round2(_efectiva*100,(int) (2)))); + //BA.debugLineNum = 493;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")"; +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR"))); + //BA.debugLineNum = 494;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 495;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")"; +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR"))); + //BA.debugLineNum = 496;BA.debugLine="L_CUANTOST.Text = l_cuantosc.Text + l_cuantosn.T"; +_l_cuantost.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_l_cuantosc.getText()))+(double)(Double.parseDouble(_l_cuantosn.getText())))); + //BA.debugLineNum = 497;BA.debugLine="drop = L_CUANTOST.Text / l_porvisitar.Text"; +_drop = (double)(Double.parseDouble(_l_cuantost.getText()))/(double)(double)(Double.parseDouble(_l_porvisitar.getText())); + //BA.debugLineNum = 498;BA.debugLine="l_drop.Text = Round(drop * 100)"; +_l_drop.setText(BA.ObjectToCharSequence(__c.Round(_drop*100))); + //BA.debugLineNum = 499;BA.debugLine="If L_CUANTOST.Text < 40 Then"; +if ((double)(Double.parseDouble(_l_cuantost.getText()))<40) { + //BA.debugLineNum = 500;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,"; +_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"tache_rojo.png").getObject())); + }else if((double)(Double.parseDouble(_l_cuantost.getText()))>=40 && (double)(Double.parseDouble(_l_cuantost.getText()))<50) { + //BA.debugLineNum = 502;BA.debugLine="ImageView3.bitmap = LoadBitmap(File.DirAssets,"; +_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alerta_amarilla.png").getObject())); + }else { + //BA.debugLineNum = 504;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,"; +_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"palomita_verde.png").getObject())); + }; + //BA.debugLineNum = 506;BA.debugLine="Log(\"|\" & c.GetString(\"MONTO_DIA\") & \"|\")"; +__c.LogImpl("33473533","|"+_c.GetString("MONTO_DIA")+"|",0); + //BA.debugLineNum = 507;BA.debugLine="Log(\"|\" & c.GetString(\"CLIENTES_DIA\") & \"|\")"; +__c.LogImpl("33473534","|"+_c.GetString("CLIENTES_DIA")+"|",0); + //BA.debugLineNum = 516;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 517;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 519;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 520;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 521;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 522;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_AL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 523;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 524;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + //BA.debugLineNum = 525;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 526;BA.debugLine="bu.Initialize"; +_bu._initialize /*String*/ (ba); + //BA.debugLineNum = 527;BA.debugLine="batterystatus = bu.BatteryInformation"; +_batterystatus = _bu._getbatteryinformation /*int[]*/ (); + //BA.debugLineNum = 528;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 529;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 530;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 531;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 533;BA.debugLine="Private s3 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 535;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 536;BA.debugLine="Private total7 As String = 0"; +_total7 = BA.NumberToString(0); + //BA.debugLineNum = 537;BA.debugLine="For i = 0 To s3.RowCount - 1"; +{ +final int step141 = 1; +final int limit141 = (int) (_s3.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit141 ;_i = _i + step141 ) { + //BA.debugLineNum = 538;BA.debugLine="s3.Position = i"; +_s3.setPosition(_i); + //BA.debugLineNum = 540;BA.debugLine="total7 = total7 + Subs.calculaTotalConPromoXRan"; +_total7 = BA.NumberToString((double)(Double.parseDouble(_total7))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 545;BA.debugLine="B4XPages.MainPage.montoActual = NumberFormat2(to"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ = __c.NumberFormat2((double)(Double.parseDouble(_total7)),(int) (0),(int) (2),(int) (2),__c.False); + }else { + //BA.debugLineNum = 547;BA.debugLine="B4XPages.MainPage.montoActual = 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ = BA.NumberToString(0); + }; + //BA.debugLineNum = 551;BA.debugLine="B4XPages.MainPage.clientestotal = L_CUANTOST.Text"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientestotal /*String*/ = _l_cuantost.getText(); + //BA.debugLineNum = 552;BA.debugLine="B4XPages.MainPage.clientesventa = l_cuantosc.Tex"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientesventa /*String*/ = _l_cuantosc.getText(); + //BA.debugLineNum = 553;BA.debugLine="B4XPages.MainPage.clientesvisitados = l_porvisita"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._clientesvisitados /*String*/ = _l_porvisitar.getText(); + //BA.debugLineNum = 554;BA.debugLine="B4XPages.MainPage.ALMACEN = ALMACEN"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._almacen /*String*/ = _almacen; + //BA.debugLineNum = 555;BA.debugLine="B4XPages.MainPage.rutapreventa = l_ruta.text"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _l_ruta.getText(); + //BA.debugLineNum = 558;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 559;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 560;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 561;BA.debugLine="B4XPages.MainPage.usuario = usuario"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._usuario /*String*/ = _usuario; + //BA.debugLineNum = 562;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 564;BA.debugLine="CallSub(Starter, \"ENVIA_ULTIMA_GPS\")"; +__c.CallSubNew(ba,(Object)(_starter.getObject()),"ENVIA_ULTIMA_GPS"); + //BA.debugLineNum = 568;BA.debugLine="Private s As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(RS_RUTA) as cuenta, RS_RUTA FROM RUTA_SUPLENCIA"))); + //BA.debugLineNum = 569;BA.debugLine="s.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 570;BA.debugLine="If s.GetString(\"cuenta\") = 0 Then"; +if ((_s.GetString("cuenta")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 571;BA.debugLine="Label22.Visible = False"; +_label22.setVisible(__c.False); + //BA.debugLineNum = 572;BA.debugLine="l_rutasuplencia.Visible = False"; +_l_rutasuplencia.setVisible(__c.False); + //BA.debugLineNum = 573;BA.debugLine="l_rutasuplencia.Text = \"\""; +_l_rutasuplencia.setText(BA.ObjectToCharSequence("")); + }else if((double)(Double.parseDouble(_s.GetString("cuenta")))>0) { + //BA.debugLineNum = 575;BA.debugLine="Label22.Visible = True"; +_label22.setVisible(__c.True); + //BA.debugLineNum = 576;BA.debugLine="l_rutasuplencia.Visible = True"; +_l_rutasuplencia.setVisible(__c.True); + //BA.debugLineNum = 577;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")"; +_l_rutasuplencia.setText(BA.ObjectToCharSequence(_s.GetString("RS_RUTA"))); + }; + //BA.debugLineNum = 579;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(gunav2.keymon.com.mx.c_principal parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 2749;BA.debugLine="If SCROLL_RESDIA.Visible Then"; +if (true) break; + +case 1: +//if +this.state = 6; +if (parent._scroll_resdia.getVisible()) { +this.state = 3; +}else { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 6; + //BA.debugLineNum = 2750;BA.debugLine="SCROLL_RESDIA.Visible = False"; +parent._scroll_resdia.setVisible(parent.__c.False); + //BA.debugLineNum = 2751;BA.debugLine="B_OK_RES_Click"; +parent._b_ok_res_click(); + //BA.debugLineNum = 2752;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 = 2754;BA.debugLine="B4XPages.ShowPage(\"login\")"; +parent._b4xpages._showpage /*String*/ (ba,"login"); + if (true) break; + +case 6: +//C +this.state = -1; +; + //BA.debugLineNum = 2756;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 2757;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ +String _ruta = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; + //BA.debugLineNum = 267;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 268;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 269;BA.debugLine="bitacora.Initialize(\"bitacora\", \"bitacora\", Root,"; +_bitacora._initialize /*Object*/ (ba,(Object)("bitacora"),"bitacora",_root,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ ,_starter._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ); + //BA.debugLineNum = 271;BA.debugLine="Root.LoadLayout(\"principal\")"; +_root.LoadLayout("principal",ba); + //BA.debugLineNum = 272;BA.debugLine="SCROLL_RESDIA.Width = Root.Width"; +_scroll_resdia.setWidth(_root.getWidth()); + //BA.debugLineNum = 273;BA.debugLine="SCROLL_RESDIA.Height = Root.Height"; +_scroll_resdia.setHeight(_root.getHeight()); + //BA.debugLineNum = 274;BA.debugLine="B_OK_RES.color = Colors.Red"; +_b_ok_res.setColor(__c.Colors.Red); + //BA.debugLineNum = 275;BA.debugLine="B_OK_RES.TextColor = Colors.White"; +_b_ok_res.setTextColor(__c.Colors.White); + //BA.debugLineNum = 276;BA.debugLine="l_version.Left = Root.Width - l_version.Width"; +_l_version.setLeft((int) (_root.getWidth()-_l_version.getWidth())); + //BA.debugLineNum = 277;BA.debugLine="l_version.Text = Application.VersionName"; +_l_version.setText(BA.ObjectToCharSequence(__c.Application.getVersionName())); + //BA.debugLineNum = 278;BA.debugLine="EJECUTANDO=1"; +_ejecutando = BA.NumberToString(1); + //BA.debugLineNum = 279;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 280;BA.debugLine="img2.Visible =False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 281;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 282;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 283;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 285;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 286;BA.debugLine="fecha=DateTime.Date(DateTime.Now)"; +_fecha = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 287;BA.debugLine="B4XPages.MainPage.skmt.Initialize(ruta,\"kmt.db\","; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_ruta,"kmt.db",__c.True); + //BA.debugLineNum = 288;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count("; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente"))); + //BA.debugLineNum = 289;BA.debugLine="b.Position=0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 290;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")"; +_cuantos = _b.GetString("CUANTOS"); + //BA.debugLineNum = 291;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 292;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info3 where gestion = 0"))); + //BA.debugLineNum = 293;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 294;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info3"))); + //BA.debugLineNum = 295;BA.debugLine="e.Position=0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 296;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count("; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as CAT_CL_RUTA from kmt_info3"))); + //BA.debugLineNum = 297;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 298;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")"; +_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA"))); + //BA.debugLineNum = 299;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 300;BA.debugLine="b_abordo.Left = (Root.Width / 2) - (b_abordo.Widt"; +_b_abordo.setLeft((int) ((_root.getWidth()/(double)2)-(_b_abordo.getWidth()/(double)2))); + //BA.debugLineNum = 301;BA.debugLine="p_principal.Width = Root.Width : p_principal.Heig"; +_p_principal.setWidth(_root.getWidth()); + //BA.debugLineNum = 301;BA.debugLine="p_principal.Width = Root.Width : p_principal.Heig"; +_p_principal.setHeight(_root.getHeight()); + //BA.debugLineNum = 309;BA.debugLine="If l_ruta.Text = 0 Then"; +if ((_l_ruta.getText()).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 310;BA.debugLine="l_ruta.Text = 0"; +_l_ruta.setText(BA.ObjectToCharSequence(0)); + }else if((double)(Double.parseDouble(_l_ruta.getText()))>0) { + //BA.debugLineNum = 312;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select disti"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))); + //BA.debugLineNum = 313;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 314;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")"; +_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA"))); + //BA.debugLineNum = 315;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 318;BA.debugLine="If Subs.traeTipoVentaDeBD = \"VENTA\" Or Subs.traeT"; +if ((_subs._traetipoventadebd /*String*/ (ba)).equals("VENTA") || (_subs._traetipoventadebd /*String*/ (ba)).equals("ABORDO")) { + //BA.debugLineNum = 319;BA.debugLine="If l_ruta.Text <> \"0\" Then"; +if ((_l_ruta.getText()).equals("0") == false) { + //BA.debugLineNum = 320;BA.debugLine="Log(999 & \"|\" & l_ruta.Text & \"|\")"; +__c.LogImpl("33407925",BA.NumberToString(999)+"|"+_l_ruta.getText()+"|",0); + //BA.debugLineNum = 321;BA.debugLine="b_abordo.Visible = False"; +_b_abordo.setVisible(__c.False); + }; + }else { + //BA.debugLineNum = 324;BA.debugLine="b_abordo.Visible = False"; +_b_abordo.setVisible(__c.False); + }; + //BA.debugLineNum = 331;BA.debugLine="If Cuantos = 0 Then"; +if ((_cuantos).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 332;BA.debugLine="L_MONTOD.Text =0"; +_l_montod.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 333;BA.debugLine="l_cuantosc.Text = 0"; +_l_cuantosc.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 334;BA.debugLine="l_cuantosn.Text = 0"; +_l_cuantosn.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 335;BA.debugLine="drop = 0"; +_drop = 0; + //BA.debugLineNum = 336;BA.debugLine="l_drop.Text = 0"; +_l_drop.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 337;BA.debugLine="efectiva = 0"; +_efectiva = 0; + //BA.debugLineNum = 338;BA.debugLine="l_efectiva.text =0"; +_l_efectiva.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 339;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")"; +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR"))); + //BA.debugLineNum = 340;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")"; +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR"))); + }else { + //BA.debugLineNum = 342;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pc_monto) as MONTO_DIA, count(pc_cliente) AS CLIENTES_DIA from pedido_cliente "))); + //BA.debugLineNum = 343;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct NV_CLIENTE) as CUANTOS from noventa"))); + //BA.debugLineNum = 345;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 346;BA.debugLine="b.Position=0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 347;BA.debugLine="L_MONTOD.Text = NumberFormat2(c.GetDouble(\"MONTO"; +_l_montod.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_c.GetDouble("MONTO_DIA"),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 348;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")"; +_l_cuantosc.setText(BA.ObjectToCharSequence(_c.GetString("CLIENTES_DIA"))); + //BA.debugLineNum = 349;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")"; +_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS"))); + //BA.debugLineNum = 350;BA.debugLine="drop = c.GetString(\"MONTO_DIA\") / c.GetString(\"C"; +_drop = (double)(Double.parseDouble(_c.GetString("MONTO_DIA")))/(double)(double)(Double.parseDouble(_c.GetString("CLIENTES_DIA"))); + //BA.debugLineNum = 351;BA.debugLine="l_drop.Text = Round2(drop,2)"; +_l_drop.setText(BA.ObjectToCharSequence(__c.Round2(_drop,(int) (2)))); + //BA.debugLineNum = 352;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt"; +_efectiva = (double)(Double.parseDouble(_c.GetString("CLIENTES_DIA")))/(double)(double)(Double.parseDouble(_e.GetString("POR_VISITAR"))); + //BA.debugLineNum = 353;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)"; +_l_efectiva.setText(BA.ObjectToCharSequence(__c.Round2(_efectiva*100,(int) (2)))); + //BA.debugLineNum = 354;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")"; +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR"))); + //BA.debugLineNum = 355;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")"; +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR"))); + //BA.debugLineNum = 356;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 357;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 359;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 360;BA.debugLine="e.Close"; +_e.Close(); + //BA.debugLineNum = 361;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop"; +__c.CallSubDelayed(ba,(Object)(_firebasemessaging.getObject()),"SubscribeToTopics"); + //BA.debugLineNum = 363;BA.debugLine="Private s As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(RS_RUTA) as cuenta, RS_RUTA FROM RUTA_SUPLENCIA"))); + //BA.debugLineNum = 364;BA.debugLine="s.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 365;BA.debugLine="If s.GetString(\"cuenta\") = 0 Then"; +if ((_s.GetString("cuenta")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 366;BA.debugLine="Label22.Visible = False"; +_label22.setVisible(__c.False); + //BA.debugLineNum = 367;BA.debugLine="l_rutasuplencia.Visible = False"; +_l_rutasuplencia.setVisible(__c.False); + }else if((double)(Double.parseDouble(_s.GetString("cuenta")))>0) { + //BA.debugLineNum = 369;BA.debugLine="Label22.Visible = True"; +_label22.setVisible(__c.True); + //BA.debugLineNum = 370;BA.debugLine="l_rutasuplencia.Visible = True"; +_l_rutasuplencia.setVisible(__c.True); + //BA.debugLineNum = 371;BA.debugLine="l_rutasuplencia.Text = s.GetString(\"RS_RUTA\")"; +_l_rutasuplencia.setText(BA.ObjectToCharSequence(_s.GetString("RS_RUTA"))); + }; + //BA.debugLineNum = 373;BA.debugLine="p_transparenteActualizacion.Width = Root.Width"; +_p_transparenteactualizacion.setWidth(_root.getWidth()); + //BA.debugLineNum = 374;BA.debugLine="p_transparenteActualizacion.Height = Root.Height"; +_p_transparenteactualizacion.setHeight(_root.getHeight()); + //BA.debugLineNum = 375;BA.debugLine="Subs.centraPanel(p_forzarActualizacion, p_transpa"; +_subs._centrapanel /*String*/ (ba,_p_forzaractualizacion,_p_transparenteactualizacion.getWidth()); + //BA.debugLineNum = 377;BA.debugLine="End Sub"; +return ""; +} +public String _btn_ubicar_click() throws Exception{ + //BA.debugLineNum = 3649;BA.debugLine="Sub Btn_Ubicar_Click"; + //BA.debugLineNum = 3650;BA.debugLine="StartActivity(MAPA_RUTAS)"; +__c.StartActivity(ba,(Object)(_mapa_rutas.getObject())); + //BA.debugLineNum = 3651;BA.debugLine="End Sub"; +return ""; +} +public String _busca_click() throws Exception{ + //BA.debugLineNum = 2852;BA.debugLine="Sub BUSCA_Click"; + //BA.debugLineNum = 2853;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")"; +_b4xpages._showpage /*String*/ (ba,"TicketsDia"); + //BA.debugLineNum = 2854;BA.debugLine="End Sub"; +return ""; +} +public String _carga_click() throws Exception{ + //BA.debugLineNum = 3195;BA.debugLine="Sub CARGA_Click"; + //BA.debugLineNum = 3196;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +_b4xpages._showpage /*String*/ (ba,"Productos"); + //BA.debugLineNum = 3197;BA.debugLine="End Sub"; +return ""; +} +public String _cargar_click() throws Exception{ +boolean _pedidodiaanterior = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null; +String[] _fecha2 = null; +String[] _fecha5 = null; +String _dia = ""; +String _mescom = ""; +String _mescom2 = ""; +String _diacom = ""; +String _diacom2 = ""; +String _dia2 = ""; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _sup = null; +int _i2 = 0; + //BA.debugLineNum = 1137;BA.debugLine="Sub cargar_Click"; + //BA.debugLineNum = 1139;BA.debugLine="Dim pedidodiaanterior As Boolean = False"; +_pedidodiaanterior = __c.False; + //BA.debugLineNum = 1140;BA.debugLine="Dim cp As Cursor = B4XPages.MainPage.skmt.ExecQue"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from PEDIDO"))); + //BA.debugLineNum = 1141;BA.debugLine="If cp.RowCount > 0 Then"; +if (_cp.getRowCount()>0) { + //BA.debugLineNum = 1142;BA.debugLine="cp.Position = 0"; +_cp.setPosition((int) (0)); + //BA.debugLineNum = 1143;BA.debugLine="Private fecha As String = cp.GetString(\"PE_FECHA"; +_fecha = _cp.GetString("PE_FECHA"); + //BA.debugLineNum = 1144;BA.debugLine="Dim fecha2() As String = Regex.Split(\"/\",fecha)"; +_fecha2 = __c.Regex.Split("/",_fecha); + //BA.debugLineNum = 1145;BA.debugLine="Dim fecha5() As String = Regex.Split(\"\\:\",fecha2"; +_fecha5 = __c.Regex.Split("\\:",_fecha2[(int) (2)]); + //BA.debugLineNum = 1146;BA.debugLine="Dim dia As String = fecha5(0).SubString2(0,4)&fe"; +_dia = _fecha5[(int) (0)].substring((int) (0),(int) (4))+_fecha2[(int) (0)]+_fecha2[(int) (1)]; + //BA.debugLineNum = 1147;BA.debugLine="Log(fecha5(0))"; +__c.LogImpl("33670026",_fecha5[(int) (0)],0); + //BA.debugLineNum = 1148;BA.debugLine="Log(dia)"; +__c.LogImpl("33670027",_dia,0); + //BA.debugLineNum = 1149;BA.debugLine="Dim mescom As String = DateTime.GetMonth(DateTim"; +_mescom = BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow())); + //BA.debugLineNum = 1150;BA.debugLine="Dim mescom2 As String"; +_mescom2 = ""; + //BA.debugLineNum = 1151;BA.debugLine="If mescom.Length = 1 Then"; +if (_mescom.length()==1) { + //BA.debugLineNum = 1152;BA.debugLine="mescom2 = \"0\"&DateTime.GetMonth(DateTime.Now)"; +_mescom2 = "0"+BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow())); + }else { + //BA.debugLineNum = 1154;BA.debugLine="mescom2 = DateTime.GetMonth(DateTime.Now)"; +_mescom2 = BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow())); + }; + //BA.debugLineNum = 1157;BA.debugLine="Dim diacom As String = DateTime.GetDayOfMonth(Da"; +_diacom = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow())); + //BA.debugLineNum = 1158;BA.debugLine="Log(DateTime.GetMonth(DateTime.Now))"; +__c.LogImpl("33670037",BA.NumberToString(__c.DateTime.GetMonth(__c.DateTime.getNow())),0); + //BA.debugLineNum = 1159;BA.debugLine="Dim diacom2 As String"; +_diacom2 = ""; + //BA.debugLineNum = 1160;BA.debugLine="If diacom.Length = 1 Then"; +if (_diacom.length()==1) { + //BA.debugLineNum = 1161;BA.debugLine="diacom2 = \"0\"&DateTime.GetDayOfMonth(DateTime.N"; +_diacom2 = "0"+BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow())); + }else { + //BA.debugLineNum = 1163;BA.debugLine="diacom2 = DateTime.GetDayOfMonth(DateTime.Now)"; +_diacom2 = BA.NumberToString(__c.DateTime.GetDayOfMonth(__c.DateTime.getNow())); + }; + //BA.debugLineNum = 1167;BA.debugLine="Dim dia2 As String = DateTime.GetYear(DateTime.N"; +_dia2 = BA.NumberToString(__c.DateTime.GetYear(__c.DateTime.getNow()))+_mescom2+_diacom2; + //BA.debugLineNum = 1168;BA.debugLine="Log(dia & \" , \" & dia2)"; +__c.LogImpl("33670047",_dia+" , "+_dia2,0); + //BA.debugLineNum = 1169;BA.debugLine="Log(\"SI PASO\")"; +__c.LogImpl("33670048","SI PASO",0); + //BA.debugLineNum = 1170;BA.debugLine="If dia < dia2 Then"; +if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { + //BA.debugLineNum = 1171;BA.debugLine="pedidodiaanterior = True"; +_pedidodiaanterior = __c.True; + }; + }; + //BA.debugLineNum = 1174;BA.debugLine="If Not (pedidodiaanterior) Then"; +if (__c.Not(_pedidodiaanterior)) { + //BA.debugLineNum = 1177;BA.debugLine="Private i As Int = Regex.Replace(\"[^0-9.]\", e_ru"; +_i = (int)(Double.parseDouble(__c.Regex.Replace("[^0-9.]",_e_ruta.getText(),""))); + //BA.debugLineNum = 1178;BA.debugLine="e_ruta.text = i"; +_e_ruta.setText(BA.ObjectToCharSequence(_i)); + //BA.debugLineNum = 1180;BA.debugLine="Private sup As Cursor = Starter.skmt.ExecQuery(\""; +_sup = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_sup = (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 RS_RUTA FROM RUTA_SUPLENCIA"))); + //BA.debugLineNum = 1181;BA.debugLine="If E_RUTA2.Visible = False And E_RUTA2.text = \"\""; +if (_e_ruta2.getVisible()==__c.False && (_e_ruta2.getText()).equals("") && _sup.getRowCount()>0) { + //BA.debugLineNum = 1182;BA.debugLine="sup.Position = 0"; +_sup.setPosition((int) (0)); + //BA.debugLineNum = 1183;BA.debugLine="E_RUTA2.text = sup.GetString(\"RS_RUTA\")"; +_e_ruta2.setText(BA.ObjectToCharSequence(_sup.GetString("RS_RUTA"))); + //BA.debugLineNum = 1184;BA.debugLine="E_RUTA2.Visible = True"; +_e_ruta2.setVisible(__c.True); + }; + //BA.debugLineNum = 1187;BA.debugLine="If E_RUTA2.Visible = True Then"; +if (_e_ruta2.getVisible()==__c.True) { + //BA.debugLineNum = 1188;BA.debugLine="Private i2 As Int = Regex.Replace(\"[^0-9.]\", E_"; +_i2 = (int)(Double.parseDouble(__c.Regex.Replace("[^0-9.]",_e_ruta2.getText(),""))); + //BA.debugLineNum = 1189;BA.debugLine="E_RUTA2.text = i2"; +_e_ruta2.setText(BA.ObjectToCharSequence(_i2)); + //BA.debugLineNum = 1190;BA.debugLine="Rut_Rep = e_ruta.Text & \" \" & E_RUTA2.Text"; +_rut_rep = _e_ruta.getText()+" "+_e_ruta2.getText(); + }else { + //BA.debugLineNum = 1192;BA.debugLine="Rut_Rep = e_ruta.Text"; +_rut_rep = _e_ruta.getText(); + }; + //BA.debugLineNum = 1194;BA.debugLine="Log(Rut_Rep)"; +__c.LogImpl("33670073",_rut_rep,0); + //BA.debugLineNum = 1195;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE GPS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + //BA.debugLineNum = 1196;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"})); + //BA.debugLineNum = 1197;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"pasword"})); + //BA.debugLineNum = 1198;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"VENTAFUTURA"})); + //BA.debugLineNum = 1199;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LATITUD"})); + //BA.debugLineNum = 1200;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"GEOCERCA"})); + //BA.debugLineNum = 1201;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FRO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LONGITUD"})); + //BA.debugLineNum = 1202;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE GPS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + //BA.debugLineNum = 1203;BA.debugLine="CARGA = \"CARGAR\""; +_carga = "CARGAR"; + //BA.debugLineNum = 1205;BA.debugLine="L_P_1.Visible = True"; +_l_p_1.setVisible(__c.True); + //BA.debugLineNum = 1206;BA.debugLine="S_CC.Visible = True"; +_s_cc.setVisible(__c.True); + //BA.debugLineNum = 1207;BA.debugLine="Btn_Ubicar.Visible=False"; +_btn_ubicar.setVisible(__c.False); + //BA.debugLineNum = 1209;BA.debugLine="p_principal.Visible = False"; +_p_principal.setVisible(__c.False); + //BA.debugLineNum = 1210;BA.debugLine="Subs.panelVisible(P1, 0, 0)"; +_subs._panelvisible /*String*/ (ba,_p1,(int) (0),(int) (0)); + //BA.debugLineNum = 1211;BA.debugLine="Subs.centraPanel(P1, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p1,_root.getWidth()); + //BA.debugLineNum = 1212;BA.debugLine="Subs.centraPanelV(P1, Root.Height)"; +_subs._centrapanelv /*String*/ (ba,_p1,_root.getHeight()); + //BA.debugLineNum = 1213;BA.debugLine="Label4.Visible = False"; +_label4.setVisible(__c.False); + //BA.debugLineNum = 1214;BA.debugLine="l_ruta.Visible = False"; +_l_ruta.setVisible(__c.False); + //BA.debugLineNum = 1215;BA.debugLine="Label22.Visible = False"; +_label22.setVisible(__c.False); + //BA.debugLineNum = 1216;BA.debugLine="l_rutasuplencia.Visible = False"; +_l_rutasuplencia.setVisible(__c.False); + //BA.debugLineNum = 1217;BA.debugLine="l_visitartotal.Visible = False"; +_l_visitartotal.setVisible(__c.False); + //BA.debugLineNum = 1218;BA.debugLine="de.Visible = False"; +_de.setVisible(__c.False); + //BA.debugLineNum = 1219;BA.debugLine="l_faltan.Visible = False"; +_l_faltan.setVisible(__c.False); + //BA.debugLineNum = 1220;BA.debugLine="l_visitas.Visible = False"; +_l_visitas.setVisible(__c.False); + //BA.debugLineNum = 1222;BA.debugLine="NUEVO.Visible =False"; +_nuevo.setVisible(__c.False); + //BA.debugLineNum = 1223;BA.debugLine="BUSCA.Visible=False"; +_busca.setVisible(__c.False); + //BA.debugLineNum = 1224;BA.debugLine="connecta.Visible=False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 1225;BA.debugLine="L_P_3.Visible = True"; +_l_p_3.setVisible(__c.True); + //BA.debugLineNum = 1226;BA.debugLine="S_CH.Visible = True"; +_s_ch.setVisible(__c.True); + //BA.debugLineNum = 1227;BA.debugLine="PB1.Visible = True"; +_pb1.setVisible(__c.True); + //BA.debugLineNum = 1228;BA.debugLine="Resumen.Visible= False"; +_resumen.setVisible(__c.False); + //BA.debugLineNum = 1230;BA.debugLine="L_P_1.Text = \"Catalogo de Clientes\""; +_l_p_1.setText(BA.ObjectToCharSequence("Catalogo de Clientes")); + //BA.debugLineNum = 1231;BA.debugLine="L_P_2.Text = \"Catalogos de Productos\""; +_l_p_2.setText(BA.ObjectToCharSequence("Catalogos de Productos")); + //BA.debugLineNum = 1232;BA.debugLine="L_P_3.Text = \"Catalogos Historicos\""; +_l_p_3.setText(BA.ObjectToCharSequence("Catalogos Historicos")); + //BA.debugLineNum = 1233;BA.debugLine="S_CC.Text = \"EN PROCESO\""; +_s_cc.setText(BA.ObjectToCharSequence("EN PROCESO")); + //BA.debugLineNum = 1234;BA.debugLine="S_CH.Text = \"EN PROCESO\""; +_s_ch.setText(BA.ObjectToCharSequence("EN PROCESO")); + //BA.debugLineNum = 1235;BA.debugLine="S_CP.Text = \"EN PROCESO\""; +_s_cp.setText(BA.ObjectToCharSequence("EN PROCESO")); + //BA.debugLineNum = 1236;BA.debugLine="PB1.Progress = 0"; +_pb1.setProgress((int) (0)); + //BA.debugLineNum = 1237;BA.debugLine="PB2.Progress = 0"; +_pb2.setProgress((int) (0)); + //BA.debugLineNum = 1238;BA.debugLine="EJECUTANDO = 1"; +_ejecutando = BA.NumberToString(1); + //BA.debugLineNum = 1241;BA.debugLine="TOPE = 0"; +_tope = (int) (0); + //BA.debugLineNum = 1244;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info3"); + //BA.debugLineNum = 1245;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMO_ESP"); + //BA.debugLineNum = 1246;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result"); + //BA.debugLineNum = 1247;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ABONOSP"); + //BA.debugLineNum = 1248;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest"); + //BA.debugLineNum = 1249;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); + //BA.debugLineNum = 1250;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2"); + //BA.debugLineNum = 1251;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); + //BA.debugLineNum = 1252;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos"); + //BA.debugLineNum = 1253;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); + //BA.debugLineNum = 1254;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PROMOS"); + //BA.debugLineNum = 1255;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_CLIENTE_CANT_PROMOS"); + //BA.debugLineNum = 1256;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROMOS_COMP"); + //BA.debugLineNum = 1257;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VERIFICACION"); + //BA.debugLineNum = 1258;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_PROMOS_DESCUENTOS"); + //BA.debugLineNum = 1259;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM MARCAS_RUTAS"); + //BA.debugLineNum = 1260;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_STORE"); + //BA.debugLineNum = 1261;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GEOCERCA"); + //BA.debugLineNum = 1262;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_MARCAS_CUOTAS"); + //BA.debugLineNum = 1263;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA_CLIENTE"); + //BA.debugLineNum = 1264;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CAT_ENCUESTA_PREGUNTA"); + //BA.debugLineNum = 1266;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select co"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(CAT_VA_DESCRIPCION) as HoraIngreso from cat_variables where CAT_VA_DESCRIPCION = ? ",new String[]{"HoraIngreso"}))); + //BA.debugLineNum = 1267;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1268;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 1270;BA.debugLine="If c.GetString(\"HoraIngreso\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("HoraIngreso")))>0) { + //BA.debugLineNum = 1271;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update ca"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ? WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.DateTime.Time(__c.DateTime.getNow()),"HoraIngreso"})); + }else { + //BA.debugLineNum = 1273;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_VALOR,CAT_VA_DESCRIPCION) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.DateTime.Time(__c.DateTime.getNow()),"HoraIngreso"})); + }; + //BA.debugLineNum = 1275;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1276;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 1277;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 1278;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1279;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1280;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1282;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 1283;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1284;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1285;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1286;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1287;BA.debugLine="cmd.Name = \"select_planLealtad_GUNA\""; +_cmd.Name /*String*/ = "select_planLealtad_GUNA"; + //BA.debugLineNum = 1288;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1289;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("planLealtad")); + //BA.debugLineNum = 1291;BA.debugLine="Subs.guardaVariable(\"RUTA\", e_ruta.text)"; +_subs._guardavariable /*String*/ (ba,"RUTA",_e_ruta.getText()); + //BA.debugLineNum = 1293;BA.debugLine="Dim P As PhoneId"; +_p = new anywheresoftware.b4a.phone.Phone.PhoneId(); + //BA.debugLineNum = 1294;BA.debugLine="imei = \"\""; +_imei = ""; + //BA.debugLineNum = 1295;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1296;BA.debugLine="cmd.Name =\"insert_drop_GV2_3\""; +_cmd.Name /*String*/ = "insert_drop_GV2_3"; + //BA.debugLineNum = 1297;BA.debugLine="cmd.Parameters = Array As Object(usuario,e_ruta."; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_usuario),(Object)(_e_ruta.getText()),(Object)(_sdate),(Object)(_imei),(Object)(_stime),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("CARGA"),(Object)(_almacen),(Object)(__c.Application.getVersionName())}; + //BA.debugLineNum = 1298;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + //BA.debugLineNum = 1300;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1301;BA.debugLine="cmd.Name = \"select_TipoVenta\""; +_cmd.Name /*String*/ = "select_TipoVenta"; + //BA.debugLineNum = 1302;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1303;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("tipoVenta")); + //BA.debugLineNum = 1305;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1306;BA.debugLine="cmd.Name = \"select_cat_GIRO_GUNA\""; +_cmd.Name /*String*/ = "select_cat_GIRO_GUNA"; + //BA.debugLineNum = 1307;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("giro")); + //BA.debugLineNum = 1309;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1310;BA.debugLine="cmd.Name = \"select_coments_GUNA\""; +_cmd.Name /*String*/ = "select_coments_GUNA"; + //BA.debugLineNum = 1311;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1312;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("coments")); + //BA.debugLineNum = 1319;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1320;BA.debugLine="cmd.Name = \"traeFechaFotosGuna\""; +_cmd.Name /*String*/ = "traeFechaFotosGuna"; + //BA.debugLineNum = 1321;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1322;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("traeFechaFotosGuna")); + //BA.debugLineNum = 1324;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1325;BA.debugLine="cmd.Name = \"traecodigosGUNA\""; +_cmd.Name /*String*/ = "traecodigosGUNA"; + //BA.debugLineNum = 1326;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1327;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("traecodigos")); + //BA.debugLineNum = 1330;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1331;BA.debugLine="cmd.Name = \"select_cat_gunaprod_GV2\""; +_cmd.Name /*String*/ = "select_cat_gunaprod_GV2"; + //BA.debugLineNum = 1332;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1333;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod")); + //BA.debugLineNum = 1335;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1336;BA.debugLine="cmd.Name = \"Select_promo_descuento_guna\""; +_cmd.Name /*String*/ = "Select_promo_descuento_guna"; + //BA.debugLineNum = 1337;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1338;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promodesp")); + //BA.debugLineNum = 1340;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1341;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_GV2\""; +_cmd.Name /*String*/ = "select_cat_gunaprod2_GV2"; + //BA.debugLineNum = 1342;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1343;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod2")); + //BA.debugLineNum = 1345;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1346;BA.debugLine="cmd.Name = \"select_abonosp_GUNA_pre\""; +_cmd.Name /*String*/ = "select_abonosp_GUNA_pre"; + //BA.debugLineNum = 1347;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1348;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("select_abonosp")); + //BA.debugLineNum = 1350;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1351;BA.debugLine="cmd.Name = \"select_HIST_ESPECIAL_GUNA\""; +_cmd.Name /*String*/ = "select_HIST_ESPECIAL_GUNA"; + //BA.debugLineNum = 1353;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("histespecial")); + //BA.debugLineNum = 1360;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1361;BA.debugLine="cmd.Name = \"select_cat_paquetes_GV6\""; +_cmd.Name /*String*/ = "select_cat_paquetes_GV6"; + //BA.debugLineNum = 1362;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1363;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprodp")); + //BA.debugLineNum = 1365;BA.debugLine="If ALMACEN = 32 Then 'Or ALMACEN = 6"; +if ((_almacen).equals(BA.NumberToString(32))) { + //BA.debugLineNum = 1367;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1368;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA\""; +_cmd.Name /*String*/ = "select_cat_promoesp_GUNA"; + //BA.debugLineNum = 1369;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1370;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promoesp")); + }; + //BA.debugLineNum = 1374;BA.debugLine="If ALMACEN = 87 Or ALMACEN = 6 Then"; +if ((_almacen).equals(BA.NumberToString(87)) || (_almacen).equals(BA.NumberToString(6))) { + //BA.debugLineNum = 1376;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1377;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA2\""; +_cmd.Name /*String*/ = "select_cat_promoesp_GUNA2"; + //BA.debugLineNum = 1378;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1379;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promoesp")); + }; + //BA.debugLineNum = 1383;BA.debugLine="If ALMACEN = 88 Or ALMACEN = 6 Then"; +if ((_almacen).equals(BA.NumberToString(88)) || (_almacen).equals(BA.NumberToString(6))) { + //BA.debugLineNum = 1385;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1386;BA.debugLine="cmd.Name = \"select_cat_promoesp_GUNA3\""; +_cmd.Name /*String*/ = "select_cat_promoesp_GUNA3"; + //BA.debugLineNum = 1387;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1388;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("promoesp")); + }; + //BA.debugLineNum = 1392;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1393;BA.debugLine="cmd.Name = \"select_cat_paquetess_GV2\""; +_cmd.Name /*String*/ = "select_cat_paquetess_GV2"; + //BA.debugLineNum = 1394;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1395;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprodp")); + //BA.debugLineNum = 1397;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1398;BA.debugLine="cmd.Name = \"select_cat_detallepa_GV2\""; +_cmd.Name /*String*/ = "select_cat_detallepa_GV2"; + //BA.debugLineNum = 1399;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1400;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("detallepaq")); + //BA.debugLineNum = 1402;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1403;BA.debugLine="cmd.Name = \"select_cat_clientes2_guna_GV2\" '####"; +_cmd.Name /*String*/ = "select_cat_clientes2_guna_GV2"; + //BA.debugLineNum = 1404;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1405;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos")); + //BA.debugLineNum = 1407;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1408;BA.debugLine="cmd.Name = \"select_preventa_futura\""; +_cmd.Name /*String*/ = "select_preventa_futura"; + //BA.debugLineNum = 1409;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1410;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("KMT_VENTAFUTURA")); + //BA.debugLineNum = 1412;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1413;BA.debugLine="cmd.Name = \"select_hist_datos_GV2_3\""; +_cmd.Name /*String*/ = "select_hist_datos_GV2_3"; + //BA.debugLineNum = 1414;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1415;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos")); + //BA.debugLineNum = 1417;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1418;BA.debugLine="cmd.Name = \"select_hist_promos_GV2\""; +_cmd.Name /*String*/ = "select_hist_promos_GV2"; + //BA.debugLineNum = 1419;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1420;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_promos")); + //BA.debugLineNum = 1422;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1423;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_GV2\""; +_cmd.Name /*String*/ = "select_hist_cliente_promos_GV2"; + //BA.debugLineNum = 1424;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1425;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_cliente_promos")); + //BA.debugLineNum = 1427;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1428;BA.debugLine="cmd.Name = \"select_HIST_MARCAS_CUOTAS\""; +_cmd.Name /*String*/ = "select_HIST_MARCAS_CUOTAS"; + //BA.debugLineNum = 1429;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1430;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("HIST_MARCAS_CUOTAS")); + //BA.debugLineNum = 1432;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1433;BA.debugLine="cmd.Name = \"select_cat_encuesta_p_GUNA\""; +_cmd.Name /*String*/ = "select_cat_encuesta_p_GUNA"; + //BA.debugLineNum = 1434;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN,e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1435;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("carga_encuesta")); + //BA.debugLineNum = 1442;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1443;BA.debugLine="cmd.Name = \"SELECT_HIST_PRODPROM_GUNA\""; +_cmd.Name /*String*/ = "SELECT_HIST_PRODPROM_GUNA"; + //BA.debugLineNum = 1444;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1445;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("HIST_PROM")); + //BA.debugLineNum = 1449;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1450;BA.debugLine="cmd.Name = \"selectPromo2265JulAgo_Guna\""; +_cmd.Name /*String*/ = "selectPromo2265JulAgo_Guna"; + //BA.debugLineNum = 1451;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1452;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_pro2265")); + //BA.debugLineNum = 1459;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1460;BA.debugLine="cmd.Name = \"selectPromo3054Jul-Sep_Guna\""; +_cmd.Name /*String*/ = "selectPromo3054Jul-Sep_Guna"; + //BA.debugLineNum = 1461;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1462;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_pro3054")); + //BA.debugLineNum = 1466;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1467;BA.debugLine="cmd.Name = \"selectPromo3055Jul-Sep_Guna\""; +_cmd.Name /*String*/ = "selectPromo3055Jul-Sep_Guna"; + //BA.debugLineNum = 1468;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1469;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_pro3055")); + //BA.debugLineNum = 1472;BA.debugLine="If E_RUTA2.text <> \"\" Then"; +if ((_e_ruta2.getText()).equals("") == false) { + //BA.debugLineNum = 1473;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT IN"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_SUPLENCIA(RS_RUTA) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_e_ruta2.getText()})); + //BA.debugLineNum = 1474;BA.debugLine="E_RUTA2.Visible = False"; +_e_ruta2.setVisible(__c.False); + //BA.debugLineNum = 1475;BA.debugLine="p_ruta2.Visible = False"; +_p_ruta2.setVisible(__c.False); + //BA.debugLineNum = 1476;BA.debugLine="p_somvra_2.Visible = False"; +_p_somvra_2.setVisible(__c.False); + //BA.debugLineNum = 1478;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1479;BA.debugLine="cmd.Name = \"select_cat_clientes2_guna_GV2\" '###"; +_cmd.Name /*String*/ = "select_cat_clientes2_guna_GV2"; + //BA.debugLineNum = 1480;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1481;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos2")); + //BA.debugLineNum = 1483;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1484;BA.debugLine="cmd.Name = \"select_hist_datos_GV2_3\""; +_cmd.Name /*String*/ = "select_hist_datos_GV2_3"; + //BA.debugLineNum = 1485;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen),(Object)(_e_ruta2.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1486;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos")); + //BA.debugLineNum = 1488;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1489;BA.debugLine="cmd.Name = \"select_hist_promos_GV2\""; +_cmd.Name /*String*/ = "select_hist_promos_GV2"; + //BA.debugLineNum = 1490;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1491;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_promos")); + //BA.debugLineNum = 1493;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1494;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_GV2\""; +_cmd.Name /*String*/ = "select_hist_cliente_promos_GV2"; + //BA.debugLineNum = 1495;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text,"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta2.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1496;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_cliente_promos")); + //BA.debugLineNum = 1498;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1499;BA.debugLine="cmd.Name = \"SELECT_HIST_PRODPROM_GUNA\""; +_cmd.Name /*String*/ = "SELECT_HIST_PRODPROM_GUNA"; + //BA.debugLineNum = 1500;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,E_RUTA"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta2.getText())}; + //BA.debugLineNum = 1501;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("HIST_PROM")); + }; + //BA.debugLineNum = 1504;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1505;BA.debugLine="cmd.Name = \"select_promo_comp_GV2\""; +_cmd.Name /*String*/ = "select_promo_comp_GV2"; + //BA.debugLineNum = 1506;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1507;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_comp_promos")); + //BA.debugLineNum = 1509;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1510;BA.debugLine="cmd.Name = \"select_coordenadas_GUNA\""; +_cmd.Name /*String*/ = "select_coordenadas_GUNA"; + //BA.debugLineNum = 1511;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1512;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("coordenadas")); + //BA.debugLineNum = 1514;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1515;BA.debugLine="cmd.Name = \"select_PASS_GUNA\""; +_cmd.Name /*String*/ = "select_PASS_GUNA"; + //BA.debugLineNum = 1516;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1517;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("password")); + //BA.debugLineNum = 1524;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1525;BA.debugLine="cmd.Name = \"select_fecha\""; +_cmd.Name /*String*/ = "select_fecha"; + //BA.debugLineNum = 1526;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1527;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("fecha")); + //BA.debugLineNum = 1534;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1535;BA.debugLine="cmd.Name = \"select_marcas_rutas\""; +_cmd.Name /*String*/ = "select_marcas_rutas"; + //BA.debugLineNum = 1536;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_rut"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1537;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("marcas_rutas")); + //BA.debugLineNum = 1539;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1540;BA.debugLine="cmd.Name = \"select_CUEST2_GV2\""; +_cmd.Name /*String*/ = "select_CUEST2_GV2"; + //BA.debugLineNum = 1541;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1542;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("CUESTIONARIO")); + //BA.debugLineNum = 1555;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1556;BA.debugLine="cmd.Name = \"select_comis_cedex\""; +_cmd.Name /*String*/ = "select_comis_cedex"; + //BA.debugLineNum = 1557;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN,e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1558;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("COMISIONES")); + //BA.debugLineNum = 1560;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 1561;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 1562;BA.debugLine="inv.Visible = False"; +_inv.setVisible(__c.False); + //BA.debugLineNum = 1563;BA.debugLine="E_RUTA2.Visible = False"; +_e_ruta2.setVisible(__c.False); + //BA.debugLineNum = 1564;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias"),__c.True);}; + }else { + //BA.debugLineNum = 1567;BA.debugLine="Log(\"XXXX\")"; +__c.LogImpl("33670446","XXXX",0); + //BA.debugLineNum = 1568;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 = 1570;BA.debugLine="End Sub"; +return ""; +} +public String _checapedido() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _coord = null; +int _cor = 0; + //BA.debugLineNum = 3880;BA.debugLine="Sub checaPedido"; + //BA.debugLineNum = 3881;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 PC_CLIENTE FROM PEDIDO_CLIENTE"))); + //BA.debugLineNum = 3882;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 3883;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set gestion = 2 WHERE CAT_CL_CODIGO IN (SELECT PC_CLIENTE FROM PEDIDO_CLIENTE)"); + }; + //BA.debugLineNum = 3885;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 = 3886;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 3887;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info3 set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info3 set gestion = 3 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA)"); + }; + //BA.debugLineNum = 3890;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_ID IN (SELECT CAT_PD_PRODUCTO FROM CAT_PROMOS_DESCUENTOS) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRIORITARIO")})); + //BA.debugLineNum = 3893;BA.debugLine="Private coord As Cursor = Starter.skmt.ExecQuery("; +_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_coord = (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 ATIENDE"))); + //BA.debugLineNum = 3894;BA.debugLine="If coord.RowCount > 0 Then"; +if (_coord.getRowCount()>0) { + //BA.debugLineNum = 3895;BA.debugLine="For cor = 0 To coord.RowCount -1"; +{ +final int step12 = 1; +final int limit12 = (int) (_coord.getRowCount()-1); +_cor = (int) (0) ; +for (;_cor <= limit12 ;_cor = _cor + step12 ) { + //BA.debugLineNum = 3896;BA.debugLine="coord.Position = cor"; +_coord.setPosition(_cor); + //BA.debugLineNum = 3897;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 set CAT_CL_ATIENDE1 = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("ATIENDE")),(Object)(_coord.GetString("CLIENTE"))})); + } +}; + }; + //BA.debugLineNum = 3901;BA.debugLine="Private coord As Cursor = Starter.skmt.ExecQuery("; +_coord = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_coord = (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 TELEFONO"))); + //BA.debugLineNum = 3902;BA.debugLine="If coord.RowCount > 0 Then"; +if (_coord.getRowCount()>0) { + //BA.debugLineNum = 3903;BA.debugLine="For cor = 0 To coord.RowCount -1"; +{ +final int step19 = 1; +final int limit19 = (int) (_coord.getRowCount()-1); +_cor = (int) (0) ; +for (;_cor <= limit19 ;_cor = _cor + step19 ) { + //BA.debugLineNum = 3904;BA.debugLine="coord.Position = cor"; +_coord.setPosition(_cor); + //BA.debugLineNum = 3905;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE km"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE kmt_info3 set CAT_CL_TELEFONO = ? where CAT_CL_CODIGO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_coord.GetString("TELEFONO")),(Object)(_coord.GetString("CLIENTE"))})); + } +}; + }; + //BA.debugLineNum = 3909;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 conectado As String"; +_conectado = ""; + //BA.debugLineNum = 5;BA.debugLine="Dim t1, t2 As Timer"; +_t1 = new anywheresoftware.b4a.objects.Timer(); +_t2 = new anywheresoftware.b4a.objects.Timer(); + //BA.debugLineNum = 6;BA.debugLine="Dim sb As StringBuilder"; +_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Dim PHONE As Phone"; +_phone = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 8;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 9;BA.debugLine="Dim trabajar As Button"; +_trabajar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim d As Cursor"; +_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim b As Cursor"; +_b = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Dim e As Cursor"; +_e = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim f As Cursor"; +_f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim ro As Cursor"; +_ro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim D2 As Cursor"; +_d2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Dim lv As ListView"; +_lv = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim cargar As Button"; +_cargar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Dim pendiente As Button"; +_pendiente = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 21;BA.debugLine="Dim foto1() As Byte"; +_foto1 = new byte[(int) (0)]; +; + //BA.debugLineNum = 22;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 23;BA.debugLine="Dim connecta As Button"; +_connecta = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Dim conn As String"; +_conn = ""; + //BA.debugLineNum = 25;BA.debugLine="Dim Subir As Button"; +_subir = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 27;BA.debugLine="Dim TOPE As Int"; +_tope = 0; + //BA.debugLineNum = 28;BA.debugLine="Dim COUNT_CLIE As Int"; +_count_clie = 0; + //BA.debugLineNum = 29;BA.debugLine="Dim fecha As String"; +_fecha = ""; + //BA.debugLineNum = 30;BA.debugLine="Dim drop As Double"; +_drop = 0; + //BA.debugLineNum = 31;BA.debugLine="Dim efectiva As Double"; +_efectiva = 0; + //BA.debugLineNum = 33;BA.debugLine="Dim L_MONTOD As Label"; +_l_montod = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Dim l_cuantosc As Label"; +_l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Dim l_drop As Label"; +_l_drop = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 36;BA.debugLine="Dim l_efectiva As Label"; +_l_efectiva = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 37;BA.debugLine="Dim l_ctast As Label"; +_l_ctast = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Dim BUSCA As Button"; +_busca = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Dim Cuantos As String"; +_cuantos = ""; + //BA.debugLineNum = 40;BA.debugLine="Dim l_cuantosn As Label"; +_l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 41;BA.debugLine="Dim e_ruta As EditText"; +_e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 42;BA.debugLine="Dim Rut_Rep As String"; +_rut_rep = ""; + //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 = 65;BA.debugLine="Private inv As Button"; +_inv = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 66;BA.debugLine="Private P1 As Panel"; +_p1 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 67;BA.debugLine="Private CLAVE As EditText"; +_clave = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 68;BA.debugLine="Private B_OK_PAS As Button"; +_b_ok_pas = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 69;BA.debugLine="Dim PASO As String"; +_paso = ""; + //BA.debugLineNum = 70;BA.debugLine="Private USUARIO1 As EditText"; +_usuario1 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 71;BA.debugLine="Dim connecta1 As Double"; +_connecta1 = 0; + //BA.debugLineNum = 72;BA.debugLine="Dim armafolio As String"; +_armafolio = ""; + //BA.debugLineNum = 73;BA.debugLine="Private NUEVO As Button"; +_nuevo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 74;BA.debugLine="Private S_CC As Label"; +_s_cc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 75;BA.debugLine="Private S_CP As Label"; +_s_cp = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 76;BA.debugLine="Private S_CH As Label"; +_s_ch = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 77;BA.debugLine="Private PB2 As ProgressBar"; +_pb2 = new anywheresoftware.b4a.objects.ProgressBarWrapper(); + //BA.debugLineNum = 78;BA.debugLine="Private PB1 As ProgressBar"; +_pb1 = new anywheresoftware.b4a.objects.ProgressBarWrapper(); + //BA.debugLineNum = 79;BA.debugLine="Private L_P_1 As Label"; +_l_p_1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 80;BA.debugLine="Private L_P_2 As Label"; +_l_p_2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 81;BA.debugLine="Private L_P_3 As Label"; +_l_p_3 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 82;BA.debugLine="Private CARGA As String"; +_carga = ""; + //BA.debugLineNum = 83;BA.debugLine="Private PORCENTAJE As String"; +_porcentaje = ""; + //BA.debugLineNum = 84;BA.debugLine="Private P_RESUMEN As Panel"; +_p_resumen = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 85;BA.debugLine="Private B_OK_RES As Button"; +_b_ok_res = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 86;BA.debugLine="Private Resumen As Button"; +_resumen = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 87;BA.debugLine="Private L_CUANTOST As Label"; +_l_cuantost = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 88;BA.debugLine="Private img3 As ImageView"; +_img3 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 90;BA.debugLine="Private ImageView3 As ImageView"; +_imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 91;BA.debugLine="Private ImageView5 As ImageView"; +_imageview5 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 92;BA.debugLine="Private L_TICKPROM As Label"; +_l_tickprom = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 93;BA.debugLine="Private L_MARCAS As ListView"; +_l_marcas = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 94;BA.debugLine="Private p_ruta2 As Panel"; +_p_ruta2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 95;BA.debugLine="Private E_RUTA2 As EditText"; +_e_ruta2 = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 96;BA.debugLine="Private resdia As ImageView"; +_resdia = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 97;BA.debugLine="Private hacer_ped As ImageView"; +_hacer_ped = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 98;BA.debugLine="Private nvo_cliente As ImageView"; +_nvo_cliente = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 99;BA.debugLine="Private tickets_dia As ImageView"; +_tickets_dia = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 101;BA.debugLine="Private l_monto_ks As Label"; +_l_monto_ks = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 102;BA.debugLine="Private l_monto_kp As Label"; +_l_monto_kp = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 103;BA.debugLine="Private l_monto_k As Label"; +_l_monto_k = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 105;BA.debugLine="Private l_monto_c1 As Label"; +_l_monto_c1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 106;BA.debugLine="Private l_monto_c2 As Label"; +_l_monto_c2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 107;BA.debugLine="Private l_monto_c3 As Label"; +_l_monto_c3 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 109;BA.debugLine="Private l_encuesta As Label"; +_l_encuesta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 112;BA.debugLine="Private bpv1 As BatteryProgressView"; +_bpv1 = new batteryprogressviewwrapper.batteryprogressviewWrapper(); + //BA.debugLineNum = 113;BA.debugLine="Dim batterystatus(11) As Int"; +_batterystatus = new int[(int) (11)]; +; + //BA.debugLineNum = 114;BA.debugLine="Private bu As BatteryUtilities"; +_bu = new gunav2.keymon.com.mx.batteryutilities(); + //BA.debugLineNum = 117;BA.debugLine="Private Panel4 As Panel"; +_panel4 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 118;BA.debugLine="Private L_NES As Label"; +_l_nes = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 119;BA.debugLine="Private L_REAL As Label"; +_l_real = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 120;BA.debugLine="Private L_ALCANCE As Label"; +_l_alcance = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 121;BA.debugLine="Private L_VPLAN As Label"; +_l_vplan = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 122;BA.debugLine="Private L_VREAL As Label"; +_l_vreal = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 123;BA.debugLine="Private L_EFEC_VIS As Label"; +_l_efec_vis = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 124;BA.debugLine="Private L_VISITCC As Label"; +_l_visitcc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 125;BA.debugLine="Private L_EFEC_PV As Label"; +_l_efec_pv = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 126;BA.debugLine="Private L_EFEC_PURA As Label"; +_l_efec_pura = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 127;BA.debugLine="Private L_CTE_PROMO As Label"; +_l_cte_promo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 128;BA.debugLine="Private L_REDEN_PROMO As Label"; +_l_reden_promo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 129;BA.debugLine="Private L_LIN_TICK As Label"; +_l_lin_tick = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 130;BA.debugLine="Private SCROLL_RESDIA As ScrollView"; +_scroll_resdia = new anywheresoftware.b4a.objects.ScrollViewWrapper(); + //BA.debugLineNum = 131;BA.debugLine="Private L_ACUMULADO As Label"; +_l_acumulado = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 132;BA.debugLine="Private L_UNILEVER As Label"; +_l_unilever = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 133;BA.debugLine="Private L_RECHAZOP As Label"; +_l_rechazop = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 134;BA.debugLine="Private L_RECHAZOM As Label"; +_l_rechazom = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 135;BA.debugLine="Private L_VTA_3MES As Label"; +_l_vta_3mes = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 136;BA.debugLine="Private L_VTA_2MES As Label"; +_l_vta_2mes = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 137;BA.debugLine="Private L_VTA_1MES As Label"; +_l_vta_1mes = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 138;BA.debugLine="Private L_MES_PY As Label"; +_l_mes_py = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 139;BA.debugLine="Private L_FREC_DE_CREAL As Label"; +_l_frec_de_creal = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 140;BA.debugLine="Private L_FREC_DE_COBJ As Label"; +_l_frec_de_cobj = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 141;BA.debugLine="Private L_COB_VISIT As Label"; +_l_cob_visit = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 142;BA.debugLine="Private L_VISIT_REAL As Label"; +_l_visit_real = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 143;BA.debugLine="Private L_VISIT_PLAN As Label"; +_l_visit_plan = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 144;BA.debugLine="Private L_ECO As Label"; +_l_eco = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 145;BA.debugLine="Private L_COB_CCC As Label"; +_l_cob_ccc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 146;BA.debugLine="Private L_CTES As Label"; +_l_ctes = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 147;BA.debugLine="Private L_VPO_VTA As Label"; +_l_vpo_vta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 148;BA.debugLine="Private L_VPO_OBJ As Label"; +_l_vpo_obj = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 149;BA.debugLine="Private L_DS_VTA As Label"; +_l_ds_vta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 150;BA.debugLine="Private L_DS_OBJ As Label"; +_l_ds_obj = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 151;BA.debugLine="Private L_DRA_VTA As Label"; +_l_dra_vta = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 152;BA.debugLine="Private L_DRA_OBJ As Label"; +_l_dra_obj = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 153;BA.debugLine="Private L_ALCANCEM As Label"; +_l_alcancem = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 154;BA.debugLine="Private L_TENDENCIA As Label"; +_l_tendencia = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 155;BA.debugLine="Private L_VTA_ACUM As Label"; +_l_vta_acum = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 156;BA.debugLine="Private L_OBJ_MES As Label"; +_l_obj_mes = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 157;BA.debugLine="Private L_DS_OBJD As Label"; +_l_ds_objd = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 158;BA.debugLine="Private L_DS_VTAD As Label"; +_l_ds_vtad = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 159;BA.debugLine="Private LPT As String"; +_lpt = ""; + //BA.debugLineNum = 160;BA.debugLine="Private STEYIN As String"; +_steyin = ""; + //BA.debugLineNum = 161;BA.debugLine="Private STEYOUT As String"; +_steyout = ""; + //BA.debugLineNum = 163;BA.debugLine="Private L_PRIO As Label"; +_l_prio = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 164;BA.debugLine="Private L_SECUND As Label"; +_l_secund = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 165;BA.debugLine="Private L_COMP As Label"; +_l_comp = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 168;BA.debugLine="Private stay_hh As String"; +_stay_hh = ""; + //BA.debugLineNum = 169;BA.debugLine="Private stay_mi As String"; +_stay_mi = ""; + //BA.debugLineNum = 170;BA.debugLine="Private stay_ss As String"; +_stay_ss = ""; + //BA.debugLineNum = 172;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 173;BA.debugLine="Dim HORAINGRESO As String"; +_horaingreso = ""; + //BA.debugLineNum = 175;BA.debugLine="Private L_QUALA As Label"; +_l_quala = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 176;BA.debugLine="Private L_FERRERO As Label"; +_l_ferrero = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 177;BA.debugLine="Private L_SANMARCOS As Label"; +_l_sanmarcos = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 178;BA.debugLine="Private L_CAMPARI As Label"; +_l_campari = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 179;BA.debugLine="Private L_IBERIA As Label"; +_l_iberia = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 180;BA.debugLine="Private L_BEPENSA As Label"; +_l_bepensa = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 181;BA.debugLine="Private L_SCJ As Label"; +_l_scj = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 182;BA.debugLine="Private L_MEDJ As Label"; +_l_medj = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 183;BA.debugLine="Private L_DURACELL As Label"; +_l_duracell = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 184;BA.debugLine="Private L_GUNA As Label"; +_l_guna = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 185;BA.debugLine="Private L_KIMB As Label"; +_l_kimb = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 186;BA.debugLine="Private L_TRESM As Label"; +_l_tresm = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 187;BA.debugLine="Private L_REDB As Label"; +_l_redb = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 188;BA.debugLine="Private Btn_Ubicar As Button"; +_btn_ubicar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 189;BA.debugLine="Private B_COMM As Button"; +_b_comm = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 190;BA.debugLine="Private L_TOTAL_MM As Label"; +_l_total_mm = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 191;BA.debugLine="Private L_TOTAL_VIVE As Label"; +_l_total_vive = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 192;BA.debugLine="Private L_TOTAL_GUNA As Label"; +_l_total_guna = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 193;BA.debugLine="Private L_TOTAL_BA As Label"; +_l_total_ba = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 194;BA.debugLine="Private L_TOTAL_COMIS As Label"; +_l_total_comis = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 195;BA.debugLine="Private L_TOTAL_MM_1 As Label"; +_l_total_mm_1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 196;BA.debugLine="Private L_TOTAL_VIVE_1 As Label"; +_l_total_vive_1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 197;BA.debugLine="Private L_TOTAL_GUNA_1 As Label"; +_l_total_guna_1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 198;BA.debugLine="Private L_TOTAL_BA_1 As Label"; +_l_total_ba_1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 199;BA.debugLine="Private L_TOTAL_COMIS_1 As Label"; +_l_total_comis_1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 200;BA.debugLine="Private B_OK_COMISS As Button"; +_b_ok_comiss = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 201;BA.debugLine="Private Panel_C As Panel"; +_panel_c = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 203;BA.debugLine="Private TitleHeight As Int = 50dip"; +_titleheight = __c.DipToCurrent((int) (50)); + //BA.debugLineNum = 204;BA.debugLine="Private Title2Height As Int = 100dip"; +_title2height = __c.DipToCurrent((int) (100)); + //BA.debugLineNum = 206;BA.debugLine="Private DividerHeight As Int = 5dip"; +_dividerheight = __c.DipToCurrent((int) (5)); + //BA.debugLineNum = 207;BA.debugLine="Private CLV1 As CustomListView"; +_clv1 = new b4a.example3.customlistview(); + //BA.debugLineNum = 208;BA.debugLine="Private pnlTitle As B4XView"; +_pnltitle = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 209;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 210;BA.debugLine="Type TitleData (Title As String)"; +; + //BA.debugLineNum = 212;BA.debugLine="Private B_MARCAS As Button"; +_b_marcas = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 213;BA.debugLine="Private lblTitle As Label"; +_lbltitle = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 214;BA.debugLine="Private B_OK_PANEL5 As Button"; +_b_ok_panel5 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 215;BA.debugLine="Private p_principal As Panel"; +_p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 217;BA.debugLine="Private teclado As IME"; +_teclado = new anywheresoftware.b4a.objects.IME(); + //BA.debugLineNum = 218;BA.debugLine="Private panel5 As Panel"; +_panel5 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 219;BA.debugLine="Private panel_5 As Panel"; +_panel_5 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 220;BA.debugLine="Private p_marcasRes As Panel"; +_p_marcasres = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 221;BA.debugLine="Private p_sombra As Panel"; +_p_sombra = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 223;BA.debugLine="Private Label22 As Label"; +_label22 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 224;BA.debugLine="Private l_rutasuplencia As Label"; +_l_rutasuplencia = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 225;BA.debugLine="Dim l_ru_pri As Label"; +_l_ru_pri = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 226;BA.debugLine="Private l_ru_sup As Label"; +_l_ru_sup = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 227;BA.debugLine="Private Label4 As Label"; +_label4 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 228;BA.debugLine="Private Label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 229;BA.debugLine="Private Label25 As Label"; +_label25 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 230;BA.debugLine="Dim p_transparenteActualizacion As Panel"; +_p_transparenteactualizacion = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 231;BA.debugLine="Private p_forzarActualizacion As Panel"; +_p_forzaractualizacion = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 232;BA.debugLine="Dim l_forzarActualizacion As Label"; +_l_forzaractualizacion = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 233;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD"; +_tipo_venta = _subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 234;BA.debugLine="Private b_abordo As Button"; +_b_abordo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 235;BA.debugLine="Dim bitacora As C_Bitacora"; +_bitacora = new gunav2.keymon.com.mx.c_bitacora(); + //BA.debugLineNum = 236;BA.debugLine="Private l_version As Label"; +_l_version = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 237;BA.debugLine="Dim contadorSubir As Int = 0"; +_contadorsubir = (int) (0); + //BA.debugLineNum = 239;BA.debugLine="Private p_somvra_2 As Panel"; +_p_somvra_2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 240;BA.debugLine="Private b_resdia As Button"; +_b_resdia = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 241;BA.debugLine="Private b_hacerpedido As Button"; +_b_hacerpedido = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 242;BA.debugLine="Private b_nuevocliente As Button"; +_b_nuevocliente = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 243;BA.debugLine="Private b_clientesvisitados As Button"; +_b_clientesvisitados = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 244;BA.debugLine="Private l_futura As Label"; +_l_futura = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 245;BA.debugLine="Private l_preventa As Label"; +_l_preventa = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 246;BA.debugLine="Private l_preacordada As Label"; +_l_preacordada = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 247;BA.debugLine="Private l_prevtotal As Label"; +_l_prevtotal = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 248;BA.debugLine="Private Label13 As Label"; +_label13 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 249;BA.debugLine="Private Label19 As Label"; +_label19 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 250;BA.debugLine="Private Label21 As Label"; +_label21 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 251;BA.debugLine="Private Label33 As Label"; +_label33 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 252;BA.debugLine="Private Label35 As Label"; +_label35 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 253;BA.debugLine="Private Label43 As Label"; +_label43 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 254;BA.debugLine="Private Label51 As Label"; +_label51 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 255;BA.debugLine="Private l_faltan As Label"; +_l_faltan = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 256;BA.debugLine="Private l_visitas As Label"; +_l_visitas = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 257;BA.debugLine="Private l_visitartotal As Label"; +_l_visitartotal = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 258;BA.debugLine="Private de As Label"; +_de = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 259;BA.debugLine="End Sub"; +return ""; +} +public void _connecta_click() throws Exception{ +ResumableSub_connecta_Click rsub = new ResumableSub_connecta_Click(this); +rsub.resume(ba, null); +} +public static class ResumableSub_connecta_Click extends BA.ResumableSub { +public ResumableSub_connecta_Click(gunav2.keymon.com.mx.c_principal parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_principal parent; +anywheresoftware.b4a.objects.collections.Map _revisaactualizacion = null; +int _i = 0; +String _usrt = ""; +String _passt = ""; + +@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 = 2760;BA.debugLine="Log(\">>> REVISAMOS ACTUALIZACION\")"; +parent.__c.LogImpl("33932161",">>> REVISAMOS ACTUALIZACION",0); + //BA.debugLineNum = 2761;BA.debugLine="Private revisaActualizacion As Map = Subs.revisaF"; +_revisaactualizacion = new anywheresoftware.b4a.objects.collections.Map(); +_revisaactualizacion = parent._subs._revisaforzaractualizacion /*anywheresoftware.b4a.objects.collections.Map*/ (ba); + //BA.debugLineNum = 2762;BA.debugLine="Log(revisaActualizacion)"; +parent.__c.LogImpl("33932163",BA.ObjectToString(_revisaactualizacion),0); + //BA.debugLineNum = 2763;BA.debugLine="If E_RUTA2.Text = e_ruta.Text And e_ruta.Text <>"; +if (true) break; + +case 1: +//if +this.state = 40; +if ((parent._e_ruta2.getText()).equals(parent._e_ruta.getText()) && (parent._e_ruta.getText()).equals("") == false) { +this.state = 3; +}else { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 40; + //BA.debugLineNum = 2764;BA.debugLine="Msgbox(\"La ruta principal y la de suplencia NO p"; +parent.__c.Msgbox(BA.ObjectToCharSequence("La ruta principal y la de suplencia NO pueden ser la misma."),BA.ObjectToCharSequence("ERROR"),ba); + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 2766;BA.debugLine="If e_ruta.Text = \"KMTS1\" Then"; +if (true) break; + +case 6: +//if +this.state = 39; +if ((parent._e_ruta.getText()).equals("KMTS1")) { +this.state = 8; +}else { +this.state = 10; +}if (true) break; + +case 8: +//C +this.state = 39; + //BA.debugLineNum = 2767;BA.debugLine="cargar.Visible = True"; +parent._cargar.setVisible(parent.__c.True); + //BA.debugLineNum = 2768;BA.debugLine="Subir.Visible = True"; +parent._subir.setVisible(parent.__c.True); + //BA.debugLineNum = 2769;BA.debugLine="e_ruta.Text = \"\""; +parent._e_ruta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2770;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me, Sta"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ ); + if (true) break; + +case 10: +//C +this.state = 11; + //BA.debugLineNum = 2772;BA.debugLine="If revisaActualizacion.Get(\"forzar\") = 1 Then '"; +if (true) break; + +case 11: +//if +this.state = 38; +if ((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(1))) { +this.state = 13; +}else if((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(2))) { +this.state = 15; +}else { +this.state = 17; +}if (true) break; + +case 13: +//C +this.state = 38; + //BA.debugLineNum = 2777;BA.debugLine="l_forzarActualizacion.TextColor = Colors.black"; +parent._l_forzaractualizacion.setTextColor(parent.__c.Colors.Black); + //BA.debugLineNum = 2778;BA.debugLine="l_forzarActualizacion.Text = \"Hay una nueva ac"; +parent._l_forzaractualizacion.setText(BA.ObjectToCharSequence("Hay una nueva actualización para la aplicación, por favor revise que tenga DATOS y espere mientras se descarga.")); + //BA.debugLineNum = 2779;BA.debugLine="p_transparenteActualizacion.Visible = True"; +parent._p_transparenteactualizacion.setVisible(parent.__c.True); + //BA.debugLineNum = 2780;BA.debugLine="p_transparenteActualizacion.BringToFront"; +parent._p_transparenteactualizacion.BringToFront(); + //BA.debugLineNum = 2781;BA.debugLine="Starter.nuevoLink = $\"https://keymon.net/movil"; +parent._starter._nuevolink /*String*/ = ("https://keymon.net/movil/guna/GP_"+parent.__c.SmartStringFormatter("",_revisaactualizacion.Get((Object)("nuevaVersion")))+".apk"); + //BA.debugLineNum = 2782;BA.debugLine="Log(\"Descargar: GP_\" & Starter.newApp.appLink)"; +parent.__c.LogImpl("33932183","Descargar: GP_"+parent._starter._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .appLink /*String*/ ,0); + //BA.debugLineNum = 2783;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")"; +parent.__c.CallSubDelayed(ba,(Object)(parent._appupdater.getObject()),"download_newApk"); + if (true) break; + +case 15: +//C +this.state = 38; + //BA.debugLineNum = 2785;BA.debugLine="l_forzarActualizacion.TextColor = Colors.red"; +parent._l_forzaractualizacion.setTextColor(parent.__c.Colors.Red); + //BA.debugLineNum = 2786;BA.debugLine="l_forzarActualizacion.Text = \"Es necesaria una"; +parent._l_forzaractualizacion.setText(BA.ObjectToCharSequence("Es necesaria una conexión a internet, por favor revise su conexión y vuelva a intentar.")); + //BA.debugLineNum = 2787;BA.debugLine="p_transparenteActualizacion.Visible = True"; +parent._p_transparenteactualizacion.setVisible(parent.__c.True); + //BA.debugLineNum = 2788;BA.debugLine="p_transparenteActualizacion.BringToFront"; +parent._p_transparenteactualizacion.BringToFront(); + //BA.debugLineNum = 2789;BA.debugLine="Sleep(4500)"; +parent.__c.Sleep(ba,this,(int) (4500)); +this.state = 41; +return; +case 41: +//C +this.state = 38; +; + //BA.debugLineNum = 2790;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuario"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa"); + //BA.debugLineNum = 2791;BA.debugLine="p_transparenteActualizacion.Visible = False"; +parent._p_transparenteactualizacion.setVisible(parent.__c.False); + //BA.debugLineNum = 2792;BA.debugLine="B4XPages.ShowPage(\"Login\")"; +parent._b4xpages._showpage /*String*/ (ba,"Login"); + if (true) break; + +case 17: +//C +this.state = 18; + //BA.debugLineNum = 2794;BA.debugLine="Try"; +if (true) break; + +case 18: +//try +this.state = 37; +this.catchState = 36; +this.state = 20; +if (true) break; + +case 20: +//C +this.state = 21; +this.catchState = 36; + //BA.debugLineNum = 2795;BA.debugLine="Private i As Int = Regex.Replace(\"[^0-9.]\", e"; +_i = (int)(Double.parseDouble(parent.__c.Regex.Replace("[^0-9.]",parent._e_ruta.getText(),""))); + //BA.debugLineNum = 2796;BA.debugLine="Log($\"|${i}|\"$)"; +parent.__c.LogImpl("33932197",("|"+parent.__c.SmartStringFormatter("",(Object)(_i))+"|"),0); + //BA.debugLineNum = 2797;BA.debugLine="e_ruta.text = i"; +parent._e_ruta.setText(BA.ObjectToCharSequence(_i)); + //BA.debugLineNum = 2798;BA.debugLine="p_transparenteActualizacion.Visible = False"; +parent._p_transparenteactualizacion.setVisible(parent.__c.False); + //BA.debugLineNum = 2799;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me, S"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ ); + //BA.debugLineNum = 2800;BA.debugLine="teclado.HideKeyboard"; +parent._teclado.HideKeyboard(ba); + //BA.debugLineNum = 2801;BA.debugLine="connecta1 = connecta1 + 1"; +parent._connecta1 = parent._connecta1+1; + //BA.debugLineNum = 2803;BA.debugLine="conn = \"1\""; +parent._conn = "1"; + //BA.debugLineNum = 2804;BA.debugLine="Dim cmd As DBCommand"; +parent._cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 2805;BA.debugLine="cmd.Initialize"; +parent._cmd.Initialize(); + //BA.debugLineNum = 2806;BA.debugLine="cmd.Name = \"select_version_GV2\""; +parent._cmd.Name /*String*/ = "select_version_GV2"; + //BA.debugLineNum = 2807;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (parent._cmd,(int) (0),(Object)("version")); + //BA.debugLineNum = 2809;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select US"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO, PASS from usuarioa"))); + //BA.debugLineNum = 2810;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 2811;BA.debugLine="If c.RowCount > 0 And c.GetString(\"USUARIO\")"; +if (true) break; + +case 21: +//if +this.state = 24; +if (parent._c.getRowCount()>0 && (parent._c.GetString("USUARIO")).equals("KMTS1") == false) { +this.state = 23; +}if (true) break; + +case 23: +//C +this.state = 24; + //BA.debugLineNum = 2812;BA.debugLine="Private usrT As String = c.GetString(\"USUARI"; +_usrt = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 2813;BA.debugLine="Private passT As String = c.GetString(\"PASS\""; +_passt = parent._c.GetString("PASS"); + //BA.debugLineNum = 2814;BA.debugLine="cmd.Initialize"; +parent._cmd.Initialize(); + //BA.debugLineNum = 2815;BA.debugLine="cmd.Name = \"select_usuario_guna_GV2_10\""; +parent._cmd.Name /*String*/ = "select_usuario_guna_GV2_10"; + //BA.debugLineNum = 2816;BA.debugLine="cmd.Parameters = Array As Object(usrT, passT"; +parent._cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_usrt),(Object)(_passt)}; + //BA.debugLineNum = 2817;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cm"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (parent._cmd,(int) (0),(Object)("usuarioA")); + if (true) break; + +case 24: +//C +this.state = 25; +; + //BA.debugLineNum = 2819;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 2820;BA.debugLine="If e_ruta.Text = \"BERNA1\" Then"; +if (true) break; + +case 25: +//if +this.state = 28; +if ((parent._e_ruta.getText()).equals("BERNA1")) { +this.state = 27; +}if (true) break; + +case 27: +//C +this.state = 28; + //BA.debugLineNum = 2821;BA.debugLine="cargar.Visible = True"; +parent._cargar.setVisible(parent.__c.True); + //BA.debugLineNum = 2822;BA.debugLine="Subir.Visible = True"; +parent._subir.setVisible(parent.__c.True); + //BA.debugLineNum = 2823;BA.debugLine="e_ruta.Text = \"\""; +parent._e_ruta.setText(BA.ObjectToCharSequence("")); + if (true) break; + +case 28: +//C +this.state = 29; +; + //BA.debugLineNum = 2825;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),parent.__c.True); + //BA.debugLineNum = 2826;BA.debugLine="If connecta1 / 2 = 1 Then"; +if (true) break; + +case 29: +//if +this.state = 34; +if (parent._connecta1/(double)2==1) { +this.state = 31; +}else { +this.state = 33; +}if (true) break; + +case 31: +//C +this.state = 34; + //BA.debugLineNum = 2832;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me,"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ ); + if (true) break; + +case 33: +//C +this.state = 34; + //BA.debugLineNum = 2839;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me,"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._initialize /*String*/ (ba,parent,parent._starter._server /*String*/ ); + if (true) break; + +case 34: +//C +this.state = 37; +; + if (true) break; + +case 36: +//C +this.state = 37; +this.catchState = 0; + //BA.debugLineNum = 2842;BA.debugLine="Log(LastException)"; +parent.__c.LogImpl("33932243",BA.ObjectToString(parent.__c.LastException(ba)),0); + if (true) break; +if (true) break; + +case 37: +//C +this.state = 38; +this.catchState = 0; +; + if (true) break; + +case 38: +//C +this.state = 39; +; + if (true) break; + +case 39: +//C +this.state = 40; +; + if (true) break; + +case 40: +//C +this.state = -1; +; + //BA.debugLineNum = 2850;BA.debugLine="End Sub"; +if (true) break; +}} + catch (Exception e0) { + +if (catchState == 0) + throw e0; +else { + state = catchState; +ba.setLastException(e0);} + } + } + } +} +public String _connecta_longclick() throws Exception{ +int _i = 0; +int _dia = 0; +String _dialetra = ""; + //BA.debugLineNum = 2710;BA.debugLine="Private Sub connecta_LongClick"; + //BA.debugLineNum = 2718;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CN_ID, CN_FECHA"; +_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 CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS"))); + //BA.debugLineNum = 2719;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2720;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step3 = 1; +final int limit3 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit3 ;_i = _i + step3 ) { + //BA.debugLineNum = 2721;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 2722;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTime"; +_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow()); + //BA.debugLineNum = 2723;BA.debugLine="If dia = 2 Then"; +if (_dia==2) { + //BA.debugLineNum = 2724;BA.debugLine="Dim dialetra As String = \"LUNES\""; +_dialetra = "LUNES"; + }else if(_dia==3) { + //BA.debugLineNum = 2726;BA.debugLine="Dim dialetra As String = \"MARTES\""; +_dialetra = "MARTES"; + }else if(_dia==4) { + //BA.debugLineNum = 2728;BA.debugLine="Dim dialetra As String = \"MIERCOLES\""; +_dialetra = "MIERCOLES"; + }else if(_dia==5) { + //BA.debugLineNum = 2730;BA.debugLine="Dim dialetra As String = \"JUEVES\""; +_dialetra = "JUEVES"; + }else if(_dia==6) { + //BA.debugLineNum = 2732;BA.debugLine="Dim dialetra As String = \"VIERNES\""; +_dialetra = "VIERNES"; + }else if(_dia==7) { + //BA.debugLineNum = 2734;BA.debugLine="Dim dialetra As String = \"SABADO\""; +_dialetra = "SABADO"; + }; + //BA.debugLineNum = 2736;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 2737;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2738;BA.debugLine="cmd.Name = \"insert_clientesnuevos_GUNA\""; +_cmd.Name /*String*/ = "insert_clientesnuevos_GUNA"; + //BA.debugLineNum = 2739;BA.debugLine="Log(c.GetString(\"CN_ID\")&\" ,\"& c.GetString(\""; +__c.LogImpl("33801117",_c.GetString("CN_ID")+" ,"+_c.GetString("CN_FECHA")+" ,"+_c.GetString("CN_USER")+" ,"+_c.GetString("CN_LAT")+" ,"+_c.GetString("CN_LON")+" ,"+_c.GetString("CN_NOMBRE")+" ,"+_c.GetString("CN_DIRECCION")+" ,"+_almacen+_c.GetString("CN_RUTA")+" ,"+"En espera"+_c.GetString("CN_GIRO")+" ,"+_dialetra+_c.GetString("CN_SOLICITA")+" ,"+_c.GetString("CN_COLONIA")+" ,"+_c.GetString("CN_TELEFONO"),0); + //BA.debugLineNum = 2740;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CN_ID")),(Object)(_c.GetString("CN_FECHA")),(Object)(_c.GetString("CN_USER")),(Object)(_c.GetString("CN_LAT")),(Object)(_c.GetString("CN_LON")),(Object)(_c.GetString("CN_NOMBRE")),(Object)(_c.GetString("CN_DIRECCION")),(Object)(_almacen),(Object)(_c.GetString("CN_RUTA")),(Object)("En espera"),(Object)(_c.GetString("CN_GIRO")),(Object)(_dialetra),(Object)(_c.GetString("CN_SOLICITA")),(Object)(_c.GetString("CN_COLONIA")),(Object)(_c.GetString("CN_TELEFONO")),(Object)(_c.GetString("CN_CP"))}; + //BA.debugLineNum = 2741;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_clientesn")); + } +}; + }; + //BA.debugLineNum = 2744;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2745;BA.debugLine="End Sub"; +return ""; +} +public String _e_ruta_click() throws Exception{ +anywheresoftware.b4a.objects.collections.Map _revisaactualizacion = null; + //BA.debugLineNum = 3824;BA.debugLine="Sub e_ruta_Click"; + //BA.debugLineNum = 3825;BA.debugLine="Private revisaActualizacion As Map = Subs.revisaF"; +_revisaactualizacion = new anywheresoftware.b4a.objects.collections.Map(); +_revisaactualizacion = _subs._revisaforzaractualizacion /*anywheresoftware.b4a.objects.collections.Map*/ (ba); + //BA.debugLineNum = 3826;BA.debugLine="Log(\"revisaActualizacion = \" & revisaActualizacio"; +__c.LogImpl("35636098","revisaActualizacion = "+BA.ObjectToString(_revisaactualizacion),0); + //BA.debugLineNum = 3827;BA.debugLine="If revisaActualizacion.Get(\"forzar\") = 2 Then"; +if ((_revisaactualizacion.Get((Object)("forzar"))).equals((Object)(2))) { + //BA.debugLineNum = 3828;BA.debugLine="LogColor(\"No hay info de versión para actualizar"; +__c.LogImpl("35636100","No hay info de versión para actualizar en CAT_VARIABLES, traemos la información!",__c.Colors.Red); + //BA.debugLineNum = 3829;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3830;BA.debugLine="cmd.Name = \"selectVersionAppGuna\""; +_cmd.Name /*String*/ = "selectVersionAppGuna"; + //BA.debugLineNum = 3831;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 3832;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("traeVersion")); + }; + //BA.debugLineNum = 3834;BA.debugLine="End Sub"; +return ""; +} +public String _e_ruta_enterpressed() throws Exception{ + //BA.debugLineNum = 2925;BA.debugLine="Sub e_ruta_EnterPressed"; + //BA.debugLineNum = 2926;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then"; +if ((_e_ruta.getText()).equals("FIN DIA")) { + //BA.debugLineNum = 2927;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 borrarán."),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 2928;BA.debugLine="If RES = DialogResponse.POSITIVE Then"; +if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 2929;BA.debugLine="bitacora.mandaBitacora(Subs.fechanormal(DateTim"; +_bitacora._mandabitacora /*String*/ (_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_usuario,_subs._traealmacen /*String*/ (ba),_subs._traeruta /*String*/ (ba),"Fin Día","",_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_subs._fechanormal /*String*/ (ba,BA.NumberToString(__c.DateTime.getNow())),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ,"2","","",""); + //BA.debugLineNum = 2930;BA.debugLine="Label22.Visible = False"; +_label22.setVisible(__c.False); + //BA.debugLineNum = 2931;BA.debugLine="l_rutasuplencia.Visible = False"; +_l_rutasuplencia.setVisible(__c.False); + //BA.debugLineNum = 2932;BA.debugLine="l_rutasuplencia.Text = \"\""; +_l_rutasuplencia.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2933;BA.debugLine="b_abordo.Visible = False"; +_b_abordo.setVisible(__c.False); + //BA.debugLineNum = 2934;BA.debugLine="t2.Initialize(\"t2\", 1000) ' 1000 ms = 1 segund"; +_t2.Initialize(ba,"t2",(long) (1000)); + //BA.debugLineNum = 2935;BA.debugLine="t2.Enabled = True"; +_t2.setEnabled(__c.True); + }; + }; + //BA.debugLineNum = 2939;BA.debugLine="If e_ruta.Text = \"IWL\" Then"; +if ((_e_ruta.getText()).equals("IWL")) { + //BA.debugLineNum = 2941;BA.debugLine="NUEVO.Visible =False"; +_nuevo.setVisible(__c.False); + //BA.debugLineNum = 2942;BA.debugLine="BUSCA.Visible=False"; +_busca.setVisible(__c.False); + //BA.debugLineNum = 2943;BA.debugLine="connecta.Visible=False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 2944;BA.debugLine="img3.Visible =True"; +_img3.setVisible(__c.True); + //BA.debugLineNum = 2945;BA.debugLine="Resumen.Visible= False"; +_resumen.setVisible(__c.False); + }; + //BA.debugLineNum = 2948;BA.debugLine="If e_ruta.Text = \"SUPLENCIA\" Then"; +if ((_e_ruta.getText()).equals("SUPLENCIA")) { + //BA.debugLineNum = 2949;BA.debugLine="e_ruta.Text = \"\""; +_e_ruta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2950;BA.debugLine="E_RUTA2.Visible = True"; +_e_ruta2.setVisible(__c.True); + //BA.debugLineNum = 2951;BA.debugLine="p_ruta2.Visible = True"; +_p_ruta2.setVisible(__c.True); + //BA.debugLineNum = 2952;BA.debugLine="p_somvra_2.Visible = False"; +_p_somvra_2.setVisible(__c.False); + }; + //BA.debugLineNum = 2954;BA.debugLine="End Sub"; +return ""; +} +public String _e_ruta_textchanged(String _old,String _new) throws Exception{ +String _validchars = ""; + //BA.debugLineNum = 3654;BA.debugLine="Sub e_ruta_TextChanged (Old As String, New As Stri"; + //BA.debugLineNum = 3655;BA.debugLine="Dim validChars As String =\"ABCDEFGHIJKLMNOPQRSTUV"; +_validchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 "; + //BA.debugLineNum = 3657;BA.debugLine="If Old <> \"KMTS1\" Then"; +if ((_old).equals("KMTS1") == false) { + //BA.debugLineNum = 3659;BA.debugLine="Try"; +try { //BA.debugLineNum = 3660;BA.debugLine="If validChars.Contains(New.SubString(New.Length"; +if (_validchars.contains(_new.substring((int) (_new.length()-1)))==__c.False) { + //BA.debugLineNum = 3661;BA.debugLine="e_ruta.Text = New.SubString2(0, New.Length-1)"; +_e_ruta.setText(BA.ObjectToCharSequence(_new.substring((int) (0),(int) (_new.length()-1)))); + //BA.debugLineNum = 3662;BA.debugLine="e_ruta.SelectionStart = e_ruta.Text.Length"; +_e_ruta.setSelectionStart(_e_ruta.getText().length()); + }; + } + catch (Exception e9) { + ba.setLastException(e9); }; + }; + //BA.debugLineNum = 3668;BA.debugLine="End Sub"; +return ""; +} +public String _e_ruta2_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 3670;BA.debugLine="Sub e_ruta2_TextChanged (Old As String, New As Str"; + //BA.debugLineNum = 3673;BA.debugLine="If New = e_ruta.text And New <> \"\" Then"; +if ((_new).equals(_e_ruta.getText()) && (_new).equals("") == false) { + //BA.debugLineNum = 3674;BA.debugLine="cargar.Enabled = False"; +_cargar.setEnabled(__c.False); + //BA.debugLineNum = 3675;BA.debugLine="ToastMessageShow(\"Las rutas NO PUEDEN ser iguale"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Las rutas NO PUEDEN ser iguales!!"),__c.False); + }else { + //BA.debugLineNum = 3677;BA.debugLine="cargar.Enabled = True"; +_cargar.setEnabled(__c.True); + }; + //BA.debugLineNum = 3679;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 3645;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 3647;BA.debugLine="End Sub"; +return ""; +} +public String _hacer_ped_click() throws Exception{ + //BA.debugLineNum = 3633;BA.debugLine="Sub hacer_ped_Click"; + //BA.debugLineNum = 3634;BA.debugLine="B4XPages.ShowPage(\"Clientes\")"; +_b4xpages._showpage /*String*/ (ba,"Clientes"); + //BA.debugLineNum = 3635;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 262;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 263;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 264;BA.debugLine="End Sub"; +return null; +} +public String _inv_click() throws Exception{ + //BA.debugLineNum = 2956;BA.debugLine="Sub inv_Click"; + //BA.debugLineNum = 2957;BA.debugLine="img2.Visible =True"; +_img2.setVisible(__c.True); + //BA.debugLineNum = 2958;BA.debugLine="EJECUTANDO = 1"; +_ejecutando = BA.NumberToString(1); + //BA.debugLineNum = 2959;BA.debugLine="inve = 1"; +_inve = BA.NumberToString(1); + //BA.debugLineNum = 2960;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); + //BA.debugLineNum = 2961;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2"); + //BA.debugLineNum = 2962;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); + //BA.debugLineNum = 2963;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 2964;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2965;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 2966;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2967;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2968;BA.debugLine="cmd.Name = \"select_cat_gunaprod_GV2\""; +_cmd.Name /*String*/ = "select_cat_gunaprod_GV2"; + //BA.debugLineNum = 2969;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 2970;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod")); + //BA.debugLineNum = 2971;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2972;BA.debugLine="cmd.Name = \"select_cat_gunaprod2_GV2\""; +_cmd.Name /*String*/ = "select_cat_gunaprod2_GV2"; + //BA.debugLineNum = 2973;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta."; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 2974;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod2")); + //BA.debugLineNum = 2975;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2976;BA.debugLine="cmd.Name = \"select_cat_paquetes_GV2\""; +_cmd.Name /*String*/ = "select_cat_paquetes_GV2"; + //BA.debugLineNum = 2977;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 2978;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprodp")); + //BA.debugLineNum = 2980;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2981;BA.debugLine="cmd.Name = \"select_cat_detallepa_GV2\""; +_cmd.Name /*String*/ = "select_cat_detallepa_GV2"; + //BA.debugLineNum = 2982;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 2983;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("detallepaq")); + //BA.debugLineNum = 2985;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 2986;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 2987;BA.debugLine="connecta.Visible = True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 2988;BA.debugLine="inv.Visible = False"; +_inv.setVisible(__c.False); + //BA.debugLineNum = 2989;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 = 2990;BA.debugLine="End Sub"; +return ""; +} +public String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null; +String _n = ""; +Object[] _records = null; +String _codigo = ""; +String _fotos = ""; +String _bandera = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fot = null; +String _giro = ""; +String _nota = ""; +String _cliente = ""; +String _saldo_pendiente = ""; +String _fecha_pagare = ""; +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result1 = null; +String _cuantosencuesta = ""; +int _i = 0; +int _dia = 0; +String _dialetra = ""; +byte[] _foto = null; +String _codigocredito = ""; +String _banderacredito = ""; +String _clientecredito = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _hdsgf = 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 = ""; +byte[] _cat_cl_foto = null; +String _cat_cl_mtocompra = ""; +String _cat_cl_num_seriefisico = ""; +String _cat_cl_tipocliente = ""; +String _cat_cl_limitecredito = ""; +String _cat_cl_diascredito = ""; +String _cat_cl_clasificador4 = ""; +String _cat_cl_clasificador3 = ""; +String _cat_cl_clasificador2 = ""; +String _cat_cl_bcredito = ""; +String _hp_cliente = ""; +String _hp_codigo_promocion = ""; +String _promocion = ""; +String _hccp_cliente = ""; +String _hccp_promo = ""; +String _hccp_cant = ""; +String _cat_pd_almacen = ""; +String _cat_pd_cod_promo = ""; +String _cat_pd_rango = ""; +String _cat_pd_rango2 = ""; +String _cat_pd_vigencia = ""; +String _cat_pd_descuento = ""; +String _cat_pd_producto = ""; +String _cat_pd_tier = ""; +String _hvd_cliente2 = ""; +String _hmc_marca = ""; +String _hmc_total = ""; +String _latitud = ""; +String _longitud = ""; +String _geocerca = ""; +String _password = ""; +String _cat_ru_ventaf = ""; +String _cat_pa_id = ""; +String _cat_pa_maxprom = ""; +String _cat_pa_maxpromrec = ""; +String _cat_pa_maxpromclie = ""; +String _hvd_marca = ""; +String _clientes = ""; +String _hcm_total_v = ""; +String _hcm_total_vive = ""; +String _hcm_total_guna = ""; +String _hcm_total_beb = ""; +String _hec_cliente = ""; +String _hec_modulo = ""; +String _cat_pe_id = ""; +String _cat_pe_idpromo = ""; +String _cat_pe_monto = ""; +String _he_cliente = ""; +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; +String _cat_gp_dev = ""; +int _cat_gp_tipoprod = 0; +int _cat_gp_iniciativa = 0; +String _cat_listaprecio = ""; +String _cat_gp_conversion3 = ""; +String _cat_gp_conversion2 = ""; +String _cat_gp_codpromo = ""; +String _cat_pa_bsegmenta = ""; +String _cat_pa_segmentav = ""; +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 = ""; +int _cont = 0; +String _hvd_cliente = ""; +String _hvd_pronombre = ""; +String _hvd_cant = ""; +String _hvd_costo_tot = ""; +String _hvd_fecha = ""; +String _cat_va_descripcion = ""; +String _cat_va_valor = ""; +String _cat_ep_id = ""; +String _cat_ep_idtipopregunta = ""; +String _cat_ce_descripcion = ""; +String _cat_ep_pregunta = ""; +String _cat_ep_res1_pred = ""; +String _cat_ep_res2_pred = ""; +String _cat_ep_res3_pred = ""; +String _cat_ep_orden_pregunta = ""; +int _cuantosp = 0; +int _cuantosc = 0; +int _cuantosn = 0; +String _cat_ve_version = ""; +String _valido = ""; +String _name2 = ""; +String _fecha_hoy = ""; +String _version = ""; +String _actualizaraplicacion = ""; +String _tipoventa = ""; +String _pl_cliente = ""; +String _pl_bandera = ""; +String _comentario = ""; +String _clientecom = ""; + //BA.debugLineNum = 1574;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 1575;BA.debugLine="B4XPages.MainPage.reqManager.trackNext(Job)"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._tracknext /*String*/ (_job); + //BA.debugLineNum = 1576;BA.debugLine="Log(\"JOBDONE PRINCIPAL\")"; +__c.LogImpl("33735554","JOBDONE PRINCIPAL",0); + //BA.debugLineNum = 1582;BA.debugLine="If Job.Success = False Then"; +if (_job._success /*boolean*/ ==__c.False) { + //BA.debugLineNum = 1583;BA.debugLine="If Job.ErrorMessage <> \"STREAM\" Then LogColor(\"E"; +if ((_job._errormessage /*String*/ ).equals("STREAM") == false) { +__c.LogImpl("33735561","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_subs._parsehttperror /*String*/ (ba,_job._errormessage /*String*/ ),__c.Colors.Red);}; + //BA.debugLineNum = 1585;BA.debugLine="If Job.ErrorMessage = \"STREAM\" Then"; +if ((_job._errormessage /*String*/ ).equals("STREAM")) { + //BA.debugLineNum = 1586;BA.debugLine="If CARGA = \"SUBIR\" Then"; +if ((_carga).equals("SUBIR")) { + //BA.debugLineNum = 1587;BA.debugLine="PB2.Progress = PB2.Progress + PORCENTAJE"; +_pb2.setProgress((int) (_pb2.getProgress()+(double)(Double.parseDouble(_porcentaje)))); + //BA.debugLineNum = 1588;BA.debugLine="S_CP.Text = \"SUBIENDO\""; +_s_cp.setText(BA.ObjectToCharSequence("SUBIENDO")); + //BA.debugLineNum = 1589;BA.debugLine="If PB2.Progress > 99 Then"; +if (_pb2.getProgress()>99) { + //BA.debugLineNum = 1590;BA.debugLine="S_CP.Text = \"VALIDANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("VALIDANDO")); + }; + }; + }; + }else { + //BA.debugLineNum = 1595;BA.debugLine="LogColor(\"JobDone: '\" & B4XPages.MainPage.reqMan"; +__c.LogImpl("33735573","JobDone: '"+BA.ObjectToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 1597;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1598;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1599;BA.debugLine="If RESULT.Tag = \"usuarioA\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("usuarioA"))) { + //BA.debugLineNum = 1600;BA.debugLine="Private n As String = \"Sin Usuario\""; +_n = "Sin Usuario"; + //BA.debugLineNum = 1601;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group20 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen20 = group20.getSize() +;int index20 = 0; +; +for (; index20 < groupLen20;index20++){ +_records = (Object[])(group20.Get(index20)); + //BA.debugLineNum = 1602;BA.debugLine="n = records(RESULT.Columns.Get(\"USUARIO\"))"; +_n = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("USUARIO"))))]); + } +}; + //BA.debugLineNum = 1604;BA.debugLine="LogColor(\"************************** \" & n, C"; +__c.LogImpl("33735582","************************** "+_n,__c.Colors.Green); + //BA.debugLineNum = 1605;BA.debugLine="If n = \"OKActivo\" Then"; +if ((_n).equals("OKActivo")) { + //BA.debugLineNum = 1606;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1607;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1608;BA.debugLine="cmd.Name = \"select_ruta_GV2_70_10\""; +_cmd.Name /*String*/ = "select_ruta_GV2_70_10"; + //BA.debugLineNum = 1609;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ru"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_usuario)}; + //BA.debugLineNum = 1610;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("ruta")); + }else { + //BA.debugLineNum = 1613;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i"; +__c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba); + //BA.debugLineNum = 1614;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa"); + //BA.debugLineNum = 1615;BA.debugLine="ExitApplication"; +__c.ExitApplication(); + }; + }; + }; + //BA.debugLineNum = 1621;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1622;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1623;BA.debugLine="If RESULT.Tag = \"FOTO\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("FOTO"))) { + //BA.debugLineNum = 1625;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group40 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen40 = group40.getSize() +;int index40 = 0; +; +for (; index40 < groupLen40;index40++){ +_records = (Object[])(group40.Get(index40)); + //BA.debugLineNum = 1628;BA.debugLine="Dim CODIGO As String = records(RESULT.Columns"; +_codigo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]); + //BA.debugLineNum = 1629;BA.debugLine="Dim FOTOS As String = records(RESULT.Columns."; +_fotos = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLIENTE"))))]); + //BA.debugLineNum = 1630;BA.debugLine="Dim BANDERA As String = records(RESULT.Column"; +_bandera = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_BFOTO"))))]); + //BA.debugLineNum = 1632;BA.debugLine="Dim fot As Cursor = Starter.skmt.ExecQuery($\""; +_fot = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fot = (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 FOTOS WHERE CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_codigo))+"'")))); + //BA.debugLineNum = 1633;BA.debugLine="If fot.RowCount = 0 Then"; +if (_fot.getRowCount()==0) { + //BA.debugLineNum = 1634;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO FOTO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,MOVIMIENTO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_codigo),(Object)(_fotos),(Object)(_bandera)})); + }else { + //BA.debugLineNum = 1636;BA.debugLine="fot.Position = 0"; +_fot.setPosition((int) (0)); + //BA.debugLineNum = 1637;BA.debugLine="If fot.GetString(\"MOVIMIENTO\") > BANDERA The"; +if ((double)(Double.parseDouble(_fot.GetString("MOVIMIENTO")))>(double)(Double.parseDouble(_bandera))) { + //BA.debugLineNum = 1638;BA.debugLine="Starter.skmt.ExecNonQuery2(\"UPDATE FOTOS SE"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE FOTOS SET FOTO = ?, MOVIMIENTO = ? IN (SELECT CUENTA FROM CUENTAA)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fotos),(Object)(_bandera)})); + }; + }; + } +}; + }; + }; + //BA.debugLineNum = 1646;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1647;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1648;BA.debugLine="If RESULT.Tag = \"giro\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("giro"))) { + //BA.debugLineNum = 1649;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group59 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen59 = group59.getSize() +;int index59 = 0; +; +for (; index59 < groupLen59;index59++){ +_records = (Object[])(group59.Get(index59)); + //BA.debugLineNum = 1650;BA.debugLine="Dim giro As String = records(RESULT.Columns."; +_giro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GR_DESCRIPCION"))))]); + //BA.debugLineNum = 1652;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GIRO(GIRO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_giro)})); + } +}; + }; + }; + //BA.debugLineNum = 1658;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1659;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1660;BA.debugLine="If RESULT.Tag = \"select_abonosp\" Then 'query ta"; +if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) { + //BA.debugLineNum = 1661;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ABONOSP"); + //BA.debugLineNum = 1662;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group69 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen69 = group69.getSize() +;int index69 = 0; +; +for (; index69 < groupLen69;index69++){ +_records = (Object[])(group69.Get(index69)); + //BA.debugLineNum = 1663;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 = 1664;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 = 1665;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 = 1667;BA.debugLine="Dim FECHA_PAGARE As String = records(RESULT.C"; +_fecha_pagare = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA_PREVENTA"))))]); + //BA.debugLineNum = 1668;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE,FECHA) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente),(Object)(_fecha_pagare)})); + } +}; + }; + }; + //BA.debugLineNum = 1673;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1674;BA.debugLine="Dim result1 As DBResult = B4XPages.MainPage.req"; +_result1 = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1675;BA.debugLine="If result1.Tag = \"CHECAENCUESTA\" Then 'query ta"; +if ((_result1.Tag /*Object*/ ).equals((Object)("CHECAENCUESTA"))) { + //BA.debugLineNum = 1676;BA.debugLine="For Each records() As Object In result1.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group81 = _result1.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen81 = group81.getSize() +;int index81 = 0; +; +for (; index81 < groupLen81;index81++){ +_records = (Object[])(group81.Get(index81)); + //BA.debugLineNum = 1677;BA.debugLine="Dim CUANTOSENCUESTA As String = records(resul"; +_cuantosencuesta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result1.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CUANTOS"))))]); + //BA.debugLineNum = 1678;BA.debugLine="Log(CUANTOSENCUESTA)"; +__c.LogImpl("33735656",_cuantosencuesta,0); + } +}; + //BA.debugLineNum = 1680;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 1681;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1682;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1683;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1684;BA.debugLine="If CUANTOSENCUESTA = \"0\" Then"; +if ((_cuantosencuesta).equals("0")) { + //BA.debugLineNum = 1685;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1686;BA.debugLine="cmd.Name =\"insert_drop_GV2_4\""; +_cmd.Name /*String*/ = "insert_drop_GV2_4"; + //BA.debugLineNum = 1687;BA.debugLine="cmd.Parameters = Array As Object(usuario,B4XP"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_usuario),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._principal /*gunav2.keymon.com.mx.c_principal*/ ._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_sdate),(Object)(""),(Object)(_stime),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("ENCUESTA"),(Object)(_almacen),(Object)(__c.Application.getVersionName()),(Object)(_starter._encuesta /*String*/ )}; + //BA.debugLineNum = 1688;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + }; + }; + }; + //BA.debugLineNum = 1693;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1694;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1695;BA.debugLine="If RESULT.Tag = \"traeFechaFotosGuna\" Then 'quer"; +if ((_result.Tag /*Object*/ ).equals((Object)("traeFechaFotosGuna"))) { + //BA.debugLineNum = 1696;BA.debugLine="Subs.logJobDoneResultados(RESULT)"; +_subs._logjobdoneresultados /*String*/ (ba,_result); + //BA.debugLineNum = 1698;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group101 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen101 = group101.getSize() +;int index101 = 0; +; +for (; index101 < groupLen101;index101++){ +_records = (Object[])(group101.Get(index101)); + //BA.debugLineNum = 1699;BA.debugLine="Private fecha As String = records(RESULT.Colu"; +_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO_FECHA"))))]); + //BA.debugLineNum = 1700;BA.debugLine="Private CLIENTE As String = records(RESULT.Co"; +_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]); + //BA.debugLineNum = 1701;BA.debugLine="Private f As Cursor = Starter.skmt.ExecQuery("; +_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 * from fotos where cliente = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"' and fecha = '"+__c.SmartStringFormatter("",(Object)(_fecha))+"'")))); + //BA.debugLineNum = 1702;BA.debugLine="Log(\"==> EXISTE LA FOTO:\" & f.RowCount)"; +__c.LogImpl("33735680","==> EXISTE LA FOTO:"+BA.NumberToString(_f.getRowCount()),0); + //BA.debugLineNum = 1703;BA.debugLine="If f.RowCount = 0 Then"; +if (_f.getRowCount()==0) { + //BA.debugLineNum = 1704;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1705;BA.debugLine="cmd.Name = \"traeFotoGuna\""; +_cmd.Name /*String*/ = "traeFotoGuna"; + //BA.debugLineNum = 1706;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_cliente)}; + //BA.debugLineNum = 1707;BA.debugLine="Log(\"BUSCAMOS FOTO: \" & ALMACEN &\"|\" & e_rut"; +__c.LogImpl("33735685","BUSCAMOS FOTO: "+_almacen+"|"+_e_ruta.getText()+"|"+_cliente,0); + //BA.debugLineNum = 1708;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)(("traeFotoGuna_"+__c.SmartStringFormatter("",(Object)(_cliente))+""))); + //BA.debugLineNum = 1709;BA.debugLine="Log($\"==>> traeFotoGuna_${CLIENTE}\"$)"; +__c.LogImpl("33735687",("==>> traeFotoGuna_"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); + }; + } +}; + }; + }; + //BA.debugLineNum = 1722;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CN_ID, CN_FECHA"; +_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 CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS"))); + //BA.debugLineNum = 1723;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1724;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step119 = 1; +final int limit119 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit119 ;_i = _i + step119 ) { + //BA.debugLineNum = 1725;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 1726;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTim"; +_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow()); + //BA.debugLineNum = 1727;BA.debugLine="If dia = 2 Then"; +if (_dia==2) { + //BA.debugLineNum = 1728;BA.debugLine="Dim dialetra As String = \"LUNES\""; +_dialetra = "LUNES"; + }else if(_dia==3) { + //BA.debugLineNum = 1730;BA.debugLine="Dim dialetra As String = \"MARTES\""; +_dialetra = "MARTES"; + }else if(_dia==4) { + //BA.debugLineNum = 1732;BA.debugLine="Dim dialetra As String = \"MIERCOLES\""; +_dialetra = "MIERCOLES"; + }else if(_dia==5) { + //BA.debugLineNum = 1734;BA.debugLine="Dim dialetra As String = \"JUEVES\""; +_dialetra = "JUEVES"; + }else if(_dia==6) { + //BA.debugLineNum = 1736;BA.debugLine="Dim dialetra As String = \"VIERNES\""; +_dialetra = "VIERNES"; + }else if(_dia==7) { + //BA.debugLineNum = 1738;BA.debugLine="Dim dialetra As String = \"SABADO\""; +_dialetra = "SABADO"; + }; + //BA.debugLineNum = 1740;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1741;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1742;BA.debugLine="cmd.Name = \"insert_clientesnuevos_GUNA\""; +_cmd.Name /*String*/ = "insert_clientesnuevos_GUNA"; + //BA.debugLineNum = 1743;BA.debugLine="Log(c.GetString(\"CN_ID\")&\" ,\"& c.GetString("; +__c.LogImpl("33735721",_c.GetString("CN_ID")+" ,"+_c.GetString("CN_FECHA")+" ,"+_c.GetString("CN_USER")+" ,"+_c.GetString("CN_LAT")+" ,"+_c.GetString("CN_LON")+" ,"+_c.GetString("CN_NOMBRE")+" ,"+_c.GetString("CN_DIRECCION")+" ,"+_almacen+_c.GetString("CN_RUTA")+" ,"+"En espera"+_c.GetString("CN_GIRO")+" ,"+_dialetra+_c.GetString("CN_SOLICITA")+" ,"+_c.GetString("CN_COLONIA")+" ,"+_c.GetString("CN_TELEFONO"),0); + //BA.debugLineNum = 1744;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CN_ID")),(Object)(_c.GetString("CN_FECHA")),(Object)(_c.GetString("CN_USER")),(Object)(_c.GetString("CN_LAT")),(Object)(_c.GetString("CN_LON")),(Object)(_c.GetString("CN_NOMBRE")),(Object)(_c.GetString("CN_DIRECCION")),(Object)(_almacen),(Object)(_c.GetString("CN_RUTA")),(Object)("En espera"),(Object)(_c.GetString("CN_GIRO")),(Object)(_dialetra),(Object)(_c.GetString("CN_SOLICITA")),(Object)(_c.GetString("CN_COLONIA")),(Object)(_c.GetString("CN_TELEFONO")),(Object)(_c.GetString("CN_CP"))}; + //BA.debugLineNum = 1745;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_clientesn")); + } +}; + }; + //BA.debugLineNum = 1748;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1751;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1752;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1753;BA.debugLine="If RESULT.Tag.As(String).Contains(\"traeFotoGuna"; +if ((BA.ObjectToString(_result.Tag /*Object*/ )).contains("traeFotoGuna_")) { + //BA.debugLineNum = 1754;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group147 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen147 = group147.getSize() +;int index147 = 0; +; +for (; index147 < groupLen147;index147++){ +_records = (Object[])(group147.Get(index147)); + //BA.debugLineNum = 1755;BA.debugLine="Private FOTO() As Byte = records(RESULT.Colum"; +_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]); + //BA.debugLineNum = 1756;BA.debugLine="Private CLIENTE As String = records(RESULT.Co"; +_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]); + //BA.debugLineNum = 1757;BA.debugLine="Private fecha As String = records(RESULT.Colu"; +_fecha = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO_FECHA"))))]); + //BA.debugLineNum = 1758;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE from FOTOS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE from FOTOS where CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_cliente))+"'")); + //BA.debugLineNum = 1759;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO FOTOS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO FOTOS(CLIENTE,FOTO,FECHA) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cliente),(Object)(_foto),(Object)(_fecha)})); + } +}; + }; + }; + //BA.debugLineNum = 1764;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1765;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1766;BA.debugLine="If RESULT.Tag.As(String).Contains(\"traecodigos\""; +if ((BA.ObjectToString(_result.Tag /*Object*/ )).contains("traecodigos")) { + //BA.debugLineNum = 1767;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group159 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen159 = group159.getSize() +;int index159 = 0; +; +for (; index159 < groupLen159;index159++){ +_records = (Object[])(group159.Get(index159)); + //BA.debugLineNum = 1768;BA.debugLine="Private CODIGOCREDITO As String = records(RES"; +_codigocredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLABE"))))]); + //BA.debugLineNum = 1769;BA.debugLine="Private BANDERACREDITO As String = records(RE"; +_banderacredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CTA"))))]); + //BA.debugLineNum = 1770;BA.debugLine="Private CLIENTECREDITO As String = records(RE"; +_clientecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CODIGO"))))]); + //BA.debugLineNum = 1772;BA.debugLine="If l_ruta.Text = \"0\" Then"; +if ((_l_ruta.getText()).equals("0")) { + //BA.debugLineNum = 1773;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CODI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CODIGOS_CREDITO(CODIGO,BANDERA,CLIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_codigocredito),(Object)(_banderacredito),(Object)(_clientecredito)})); + }else { + //BA.debugLineNum = 1775;BA.debugLine="Private hdsgf As Cursor = Starter.skmt.ExecQ"; +_hdsgf = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_hdsgf = (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 CODIGOS_CREDITO where CODIGO = '"+__c.SmartStringFormatter("",(Object)(_codigocredito))+"' and BANDERA = '"+__c.SmartStringFormatter("",(Object)(_banderacredito))+"' and CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clientecredito))+"' ")))); + //BA.debugLineNum = 1776;BA.debugLine="If hdsgf.RowCount = 0 Then"; +if (_hdsgf.getRowCount()==0) { + //BA.debugLineNum = 1777;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO COD"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CODIGOS_CREDITO(CODIGO,BANDERA,CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_codigocredito),(Object)(_banderacredito),(Object)(_clientecredito)})); + }else { + //BA.debugLineNum = 1779;BA.debugLine="Log(\"NO ENTRO\")"; +__c.LogImpl("33735757","NO ENTRO",0); + }; + }; + } +}; + }; + }; + //BA.debugLineNum = 1789;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1790;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1791;BA.debugLine="If RESULT.Tag = \"kmt_datos\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { + //BA.debugLineNum = 1792;BA.debugLine="S_CC.TEXT = \"CARGANDO\""; +_s_cc.setText(BA.ObjectToCharSequence("CARGANDO")); + //BA.debugLineNum = 1793;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group180 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen180 = group180.getSize() +;int index180 = 0; +; +for (; index180 < groupLen180;index180++){ +_records = (Object[])(group180.Get(index180)); + //BA.debugLineNum = 1794;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 = 1795;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 = 1796;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 = 1797;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 = 1798;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 = 1799;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 = 1800;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 = 1801;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 = 1802;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 = 1803;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 = 1804;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 = 1805;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 = 1806;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 = 1807;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 = 1808;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 = 1809;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 = 1810;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 = 1811;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 = 1812;BA.debugLine="Dim CAT_CL_FOTO() As Byte = records(RESULT.Co"; +_cat_cl_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]); + //BA.debugLineNum = 1813;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU"; +_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]); + //BA.debugLineNum = 1814;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record"; +_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]); + //BA.debugLineNum = 1815;BA.debugLine="Dim CAT_CL_TIPOCLIENTE As String = records(RE"; +_cat_cl_tipocliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPOCLIENTE"))))]); + //BA.debugLineNum = 1816;BA.debugLine="Dim CAT_CL_LIMITECREDITO As String = records("; +_cat_cl_limitecredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_LIMITECREDITO"))))]); + //BA.debugLineNum = 1817;BA.debugLine="Dim CAT_CL_DIASCREDITO As String = records(RE"; +_cat_cl_diascredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_DIASCREDITO"))))]); + //BA.debugLineNum = 1818;BA.debugLine="Dim CAT_CL_CLASIFICADOR4 As String = records("; +_cat_cl_clasificador4 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR4"))))]); + //BA.debugLineNum = 1819;BA.debugLine="Dim CAT_CL_CLASIFICADOR3 As String = records("; +_cat_cl_clasificador3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR3"))))]); + //BA.debugLineNum = 1820;BA.debugLine="Dim CAT_CL_CLASIFICADOR2 As String = records("; +_cat_cl_clasificador2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_CLASIFICADOR2"))))]); + //BA.debugLineNum = 1824;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 = 1825;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion,CAT_CL_BCREDITO,CAT_CL_TIPOCLIENTE,FOTO,CAT_CL_LIMITECREDITO,CAT_CL_DIASCREDITO,CAT_CL_CLASIFICADOR3,CAT_CL_CLASIFICADOR2,CAT_CL_CLASIFICADOR4) 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_mtocompra),(Object)(_cat_cl_num_seriefisico),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_tipocliente),(Object)(_cat_cl_foto),(Object)(_cat_cl_limitecredito),(Object)(_cat_cl_diascredito),(Object)(_cat_cl_clasificador3),(Object)(_cat_cl_clasificador2),(Object)(_cat_cl_clasificador4)})); + //BA.debugLineNum = 1827;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)})); + } +}; + //BA.debugLineNum = 1829;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT I"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(CAT_CL_CODIGO, CAT_CL_RUTA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_NUM_SERIEFISICO) VALUES (?,?,?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("0"),(Object)(_e_ruta.getText()),(Object)("ABORDO")})); + //BA.debugLineNum = 1830;BA.debugLine="Listo1 = 1"; +_listo1 = BA.NumberToString(1); + //BA.debugLineNum = 1831;BA.debugLine="S_CC.Text = \"LISTO\""; +_s_cc.setText(BA.ObjectToCharSequence("LISTO")); + //BA.debugLineNum = 1833;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 = 1835;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 1836;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 1841;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1842;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1843;BA.debugLine="If RESULT.Tag = \"kmt_datos2\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos2"))) { + //BA.debugLineNum = 1844;BA.debugLine="S_CC.TEXT = \"CARGANDO\""; +_s_cc.setText(BA.ObjectToCharSequence("CARGANDO")); + //BA.debugLineNum = 1845;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group225 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen225 = group225.getSize() +;int index225 = 0; +; +for (; index225 < groupLen225;index225++){ +_records = (Object[])(group225.Get(index225)); + //BA.debugLineNum = 1846;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 = 1847;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 = 1848;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 = 1849;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 = 1850;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 = 1851;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 = 1852;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 = 1853;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 = 1854;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 = 1855;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 = 1856;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 = 1857;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 = 1858;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 = 1859;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 = 1860;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 = 1861;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 = 1862;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 = 1863;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 = 1864;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU"; +_cat_cl_mtocompra = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_MTOCOMPRA"))))]); + //BA.debugLineNum = 1865;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record"; +_cat_cl_num_seriefisico = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_NUM_SERIEFISICO"))))]); + //BA.debugLineNum = 1866;BA.debugLine="Dim CAT_CL_TIPOCLIENTE As String = records(RE"; +_cat_cl_tipocliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_TIPOCLIENTE"))))]); + //BA.debugLineNum = 1867;BA.debugLine="Dim CAT_CL_FOTO() As Byte = records(RESULT.Co"; +_cat_cl_foto = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CL_FOTO"))))]); + //BA.debugLineNum = 1870;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 = 1871;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info3(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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion,CAT_CL_BCREDITO,CAT_CL_TIPOCLIENTE,FOTO) 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_mtocompra),(Object)(_cat_cl_num_seriefisico),(Object)(_cat_cl_bcredito),(Object)(_cat_cl_tipocliente),(Object)(_cat_cl_foto)})); + //BA.debugLineNum = 1874;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo)})); + } +}; + //BA.debugLineNum = 1876;BA.debugLine="Listo1 = 1"; +_listo1 = BA.NumberToString(1); + //BA.debugLineNum = 1877;BA.debugLine="S_CC.Text = \"LISTO\""; +_s_cc.setText(BA.ObjectToCharSequence("LISTO")); + //BA.debugLineNum = 1879;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 = 1881;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 1882;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 1946;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1947;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1948;BA.debugLine="If RESULT.Tag = \"hist_promos\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_promos"))) { + //BA.debugLineNum = 1949;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group263 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen263 = group263.getSize() +;int index263 = 0; +; +for (; index263 < groupLen263;index263++){ +_records = (Object[])(group263.Get(index263)); + //BA.debugLineNum = 1950;BA.debugLine="Dim HP_CLIENTE As String = records(RESULT.Col"; +_hp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HP_CLIENTE"))))]); + //BA.debugLineNum = 1951;BA.debugLine="Dim HP_CODIGO_PROMOCION As String = records(R"; +_hp_codigo_promocion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HP_CODIGO_PROMOCION"))))]); + //BA.debugLineNum = 1952;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PROMOS(HP_CLIENTE, HP_CODIGO_PROMOCION) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hp_cliente),(Object)(_hp_codigo_promocion)})); + } +}; + //BA.debugLineNum = 1955;BA.debugLine="If PB1.Progress = 0 Then"; +if (_pb1.getProgress()==0) { + //BA.debugLineNum = 1956;BA.debugLine="PB1.Progress = 30"; +_pb1.setProgress((int) (30)); + //BA.debugLineNum = 1957;BA.debugLine="S_CH.Text = \"CARGANDO\""; +_s_ch.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb1.getProgress()==30) { + //BA.debugLineNum = 1959;BA.debugLine="PB1.Progress = 60"; +_pb1.setProgress((int) (60)); + }else if(_pb1.getProgress()==60) { + //BA.debugLineNum = 1961;BA.debugLine="PB1.Progress = 100"; +_pb1.setProgress((int) (100)); + //BA.debugLineNum = 1962;BA.debugLine="S_CH.Text = \"LISTO\""; +_s_ch.setText(BA.ObjectToCharSequence("LISTO")); + }; + }; + }; + //BA.debugLineNum = 1967;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1968;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1969;BA.debugLine="If RESULT.Tag = \"histespecial\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("histespecial"))) { + //BA.debugLineNum = 1970;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group282 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen282 = group282.getSize() +;int index282 = 0; +; +for (; index282 < groupLen282;index282++){ +_records = (Object[])(group282.Get(index282)); + //BA.debugLineNum = 1971;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 = 1972;BA.debugLine="Dim PROMOCION As String = records(RESULT.Colu"; +_promocion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("PRMOCION"))))]); + //BA.debugLineNum = 1973;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PROMOS(HP_CLIENTE, HP_CODIGO_PROMOCION) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cliente),(Object)(_promocion)})); + } +}; + //BA.debugLineNum = 1976;BA.debugLine="If PB1.Progress = 0 Then"; +if (_pb1.getProgress()==0) { + //BA.debugLineNum = 1977;BA.debugLine="PB1.Progress = 30"; +_pb1.setProgress((int) (30)); + //BA.debugLineNum = 1978;BA.debugLine="S_CH.Text = \"CARGANDO\""; +_s_ch.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb1.getProgress()==30) { + //BA.debugLineNum = 1980;BA.debugLine="PB1.Progress = 60"; +_pb1.setProgress((int) (60)); + }else if(_pb1.getProgress()==60) { + //BA.debugLineNum = 1982;BA.debugLine="PB1.Progress = 100"; +_pb1.setProgress((int) (100)); + //BA.debugLineNum = 1983;BA.debugLine="S_CH.Text = \"LISTO\""; +_s_ch.setText(BA.ObjectToCharSequence("LISTO")); + }; + }; + }; + //BA.debugLineNum = 1988;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 1989;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1990;BA.debugLine="If RESULT.Tag = \"hist_cliente_promos\" Then 'que"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_cliente_promos"))) { + //BA.debugLineNum = 1991;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group301 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen301 = group301.getSize() +;int index301 = 0; +; +for (; index301 < groupLen301;index301++){ +_records = (Object[])(group301.Get(index301)); + //BA.debugLineNum = 1992;BA.debugLine="Dim HCCP_CLIENTE As String = records(RESULT.C"; +_hccp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_CLIENTE"))))]); + //BA.debugLineNum = 1993;BA.debugLine="Dim HCCP_PROMO As String = records(RESULT.Col"; +_hccp_promo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_PROMO"))))]); + //BA.debugLineNum = 1994;BA.debugLine="Dim HCCP_CANT As String = records(RESULT.Colu"; +_hccp_cant = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCCP_CANT"))))]); + //BA.debugLineNum = 1995;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_CLIENTE_CANT_PROMOS(HCCP_CLIENTE, HCCP_PROMO, HCCP_CANT) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hccp_cliente),(Object)(_hccp_promo),(Object)(_hccp_cant)})); + } +}; + }; + }; + //BA.debugLineNum = 2001;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2002;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2003;BA.debugLine="If RESULT.Tag = \"promodesp\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("promodesp"))) { + //BA.debugLineNum = 2004;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group312 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen312 = group312.getSize() +;int index312 = 0; +; +for (; index312 < groupLen312;index312++){ +_records = (Object[])(group312.Get(index312)); + //BA.debugLineNum = 2005;BA.debugLine="Dim CAT_PD_ALMACEN As String = records(RESULT"; +_cat_pd_almacen = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_ALMACEN"))))]); + //BA.debugLineNum = 2006;BA.debugLine="Dim CAT_PD_COD_PROMO As String = records(RESU"; +_cat_pd_cod_promo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_COD_PROMO"))))]); + //BA.debugLineNum = 2007;BA.debugLine="Dim CAT_PD_RANGO As String = records(RESULT.C"; +_cat_pd_rango = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_RANGO"))))]); + //BA.debugLineNum = 2008;BA.debugLine="Dim CAT_PD_RANGO2 As String = records(RESULT."; +_cat_pd_rango2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_RANGO2"))))]); + //BA.debugLineNum = 2009;BA.debugLine="Dim CAT_PD_VIGENCIA As String = records(RESUL"; +_cat_pd_vigencia = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_VIGENCIA"))))]); + //BA.debugLineNum = 2010;BA.debugLine="Dim CAT_PD_DESCUENTO As String = records(RESU"; +_cat_pd_descuento = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_DESCUENTO"))))]); + //BA.debugLineNum = 2011;BA.debugLine="Dim CAT_PD_PRODUCTO As String = records(RESUL"; +_cat_pd_producto = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_PRODUCTO"))))]); + //BA.debugLineNum = 2012;BA.debugLine="Dim CAT_PD_TIER As String = records(RESULT.Co"; +_cat_pd_tier = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PD_TIER"))))]); + //BA.debugLineNum = 2013;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_PROMOS_DESCUENTOS(CAT_PD_ALMACEN, CAT_PD_COD_PROMO, CAT_PD_RANGO, CAT_PD_VIGENCIA, CAT_PD_DESCUENTO, CAT_PD_PRODUCTO, CAT_PD_TIER,CAT_PD_RANGO2) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pd_almacen),(Object)(_cat_pd_cod_promo),(Object)(_cat_pd_rango),(Object)(_cat_pd_vigencia),(Object)(_cat_pd_descuento),(Object)(_cat_pd_producto),(Object)(_cat_pd_tier),(Object)(_cat_pd_rango2)})); + } +}; + }; + }; + //BA.debugLineNum = 2018;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2019;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2020;BA.debugLine="If RESULT.Tag = \"HIST_PROM\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("HIST_PROM"))) { + //BA.debugLineNum = 2022;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group328 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen328 = group328.getSize() +;int index328 = 0; +; +for (; index328 < groupLen328;index328++){ +_records = (Object[])(group328.Get(index328)); + //BA.debugLineNum = 2023;BA.debugLine="Dim HVD_CLIENTE2 As String = records(RESULT.C"; +_hvd_cliente2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]); + //BA.debugLineNum = 2024;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROMO_ESP(HVD_CLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente2)})); + } +}; + }; + }; + //BA.debugLineNum = 2030;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2031;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2032;BA.debugLine="If RESULT.Tag = \"HIST_MARCAS_CUOTAS\" Then 'quer"; +if ((_result.Tag /*Object*/ ).equals((Object)("HIST_MARCAS_CUOTAS"))) { + //BA.debugLineNum = 2033;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group337 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen337 = group337.getSize() +;int index337 = 0; +; +for (; index337 < groupLen337;index337++){ +_records = (Object[])(group337.Get(index337)); + //BA.debugLineNum = 2034;BA.debugLine="Dim HMC_MARCA As String = records(RESULT.Colu"; +_hmc_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HMC_MARCA"))))]); + //BA.debugLineNum = 2035;BA.debugLine="Dim HMC_TOTAL As String = records(RESULT.Colu"; +_hmc_total = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HMC_TOTAL"))))]); + //BA.debugLineNum = 2036;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_MARCAS_CUOTAS(HMC_MARCA, HMC_TOTAL) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hmc_marca),(Object)(_hmc_total)})); + } +}; + }; + }; + //BA.debugLineNum = 2042;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2043;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2044;BA.debugLine="If RESULT.Tag = \"coordenadas\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("coordenadas"))) { + //BA.debugLineNum = 2045;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group347 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen347 = group347.getSize() +;int index347 = 0; +; +for (; index347 < groupLen347;index347++){ +_records = (Object[])(group347.Get(index347)); + //BA.debugLineNum = 2046;BA.debugLine="Dim latitud As String = records(RESULT.Column"; +_latitud = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))]); + //BA.debugLineNum = 2047;BA.debugLine="Dim longitud As String = records(RESULT.Colum"; +_longitud = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]); + //BA.debugLineNum = 2048;BA.debugLine="Dim GEOCERCA As String = records(RESULT.Colum"; +_geocerca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_GEOCERCA"))))]); + //BA.debugLineNum = 2049;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("LATITUD"),(Object)(_latitud)})); + //BA.debugLineNum = 2050;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("LONGITUD"),(Object)(_longitud)})); + //BA.debugLineNum = 2051;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("GEOCERCA"),(Object)(_geocerca)})); + } +}; + }; + }; + //BA.debugLineNum = 2057;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2058;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2059;BA.debugLine="If RESULT.Tag = \"password\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("password"))) { + //BA.debugLineNum = 2060;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group360 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen360 = group360.getSize() +;int index360 = 0; +; +for (; index360 < groupLen360;index360++){ +_records = (Object[])(group360.Get(index360)); + //BA.debugLineNum = 2061;BA.debugLine="Dim password As String = records(RESULT.Colum"; +_password = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_VA_VALOR"))))]); + //BA.debugLineNum = 2062;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("pasword"),(Object)(_password)})); + } +}; + }; + }; + //BA.debugLineNum = 2068;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2069;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2070;BA.debugLine="If RESULT.Tag = \"KMT_VENTAFUTURA\" Then 'query t"; +if ((_result.Tag /*Object*/ ).equals((Object)("KMT_VENTAFUTURA"))) { + //BA.debugLineNum = 2071;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group369 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen369 = group369.getSize() +;int index369 = 0; +; +for (; index369 < groupLen369;index369++){ +_records = (Object[])(group369.Get(index369)); + //BA.debugLineNum = 2072;BA.debugLine="Dim CAT_RU_VENTAF As String = records(RESULT."; +_cat_ru_ventaf = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_RU_VENTAF"))))]); + //BA.debugLineNum = 2073;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("VENTAFUTURA"),(Object)(_cat_ru_ventaf)})); + } +}; + }; + }; + //BA.debugLineNum = 2080;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2081;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2082;BA.debugLine="If RESULT.Tag = \"hist_comp_promos\" Then 'query"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_comp_promos"))) { + //BA.debugLineNum = 2083;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group378 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen378 = group378.getSize() +;int index378 = 0; +; +for (; index378 < groupLen378;index378++){ +_records = (Object[])(group378.Get(index378)); + //BA.debugLineNum = 2084;BA.debugLine="Dim CAT_PA_ID As String = records(RESULT.Colu"; +_cat_pa_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_ID"))))]); + //BA.debugLineNum = 2085;BA.debugLine="Dim CAT_PA_MAXPROM As String = records(RESULT"; +_cat_pa_maxprom = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROM"))))]); + //BA.debugLineNum = 2086;BA.debugLine="Dim CAT_PA_MAXPROMREC As String = records(RES"; +_cat_pa_maxpromrec = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROMREC"))))]); + //BA.debugLineNum = 2087;BA.debugLine="Dim CAT_PA_MAXPROMCLIE As String = records(RE"; +_cat_pa_maxpromclie = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_MAXPROMCLIE"))))]); + //BA.debugLineNum = 2088;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROMOS_COMP(CAT_PA_ID, CAT_PA_MAXPROM, CAT_PA_MAXPROMREC, CAT_PA_MAXPROMCLIE) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pa_id),(Object)(_cat_pa_maxprom),(Object)(_cat_pa_maxpromrec),(Object)(_cat_pa_maxpromclie)})); + } +}; + //BA.debugLineNum = 2090;BA.debugLine="If PB1.Progress = 0 Then"; +if (_pb1.getProgress()==0) { + //BA.debugLineNum = 2091;BA.debugLine="PB1.Progress = 30"; +_pb1.setProgress((int) (30)); + //BA.debugLineNum = 2092;BA.debugLine="S_CH.Text = \"CARGANDO\""; +_s_ch.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb1.getProgress()==30) { + //BA.debugLineNum = 2094;BA.debugLine="PB1.Progress = 60"; +_pb1.setProgress((int) (60)); + }else if(_pb1.getProgress()==60) { + //BA.debugLineNum = 2096;BA.debugLine="PB1.Progress = 100"; +_pb1.setProgress((int) (100)); + //BA.debugLineNum = 2097;BA.debugLine="S_CH.Text = \"LISTO\""; +_s_ch.setText(BA.ObjectToCharSequence("LISTO")); + }; + }; + }; + //BA.debugLineNum = 2114;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2115;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2116;BA.debugLine="If RESULT.Tag = \"marcas_rutas\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("marcas_rutas"))) { + //BA.debugLineNum = 2117;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group399 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen399 = group399.getSize() +;int index399 = 0; +; +for (; index399 < groupLen399;index399++){ +_records = (Object[])(group399.Get(index399)); + //BA.debugLineNum = 2118;BA.debugLine="Dim HVD_MARCA As String = records(RESULT.Colu"; +_hvd_marca = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_MARCA"))))]); + //BA.debugLineNum = 2119;BA.debugLine="Dim CLIENTES As String = records(RESULT.Colum"; +_clientes = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CLIENTES"))))]); + //BA.debugLineNum = 2120;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO MARCAS_RUTAS(HVD_MARCA, CLIENTES) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_marca),(Object)(_clientes)})); + } +}; + }; + }; + //BA.debugLineNum = 2149;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2150;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2151;BA.debugLine="If RESULT.Tag = \"COMISIONES\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("COMISIONES"))) { + //BA.debugLineNum = 2152;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group409 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen409 = group409.getSize() +;int index409 = 0; +; +for (; index409 < groupLen409;index409++){ +_records = (Object[])(group409.Get(index409)); + //BA.debugLineNum = 2153;BA.debugLine="Dim HCM_TOTAL_V As String = records(RESULT.Co"; +_hcm_total_v = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_V"))))]); + //BA.debugLineNum = 2154;BA.debugLine="Dim HCM_TOTAL_VIVE As String = records(RESULT"; +_hcm_total_vive = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_VIVE"))))]); + //BA.debugLineNum = 2155;BA.debugLine="Dim HCM_TOTAL_GUNA As String = records(RESULT"; +_hcm_total_guna = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_GUNA"))))]); + //BA.debugLineNum = 2156;BA.debugLine="Dim HCM_TOTAL_BEB As String = records(RESULT."; +_hcm_total_beb = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HCM_TOTAL_BEB"))))]); + //BA.debugLineNum = 2157;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_COMISIONES_MOVIL (HCM_TOTAL_V , HCM_TOTAL_VIVE , HCM_TOTAL_GUNA , HCM_TOTAL_BEB) VALUES (?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hcm_total_v),(Object)(_hcm_total_vive),(Object)(_hcm_total_guna),(Object)(_hcm_total_beb)})); + } +}; + }; + }; + //BA.debugLineNum = 2162;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2163;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2164;BA.debugLine="If RESULT.Tag = \"ENCUESTA_CLIENTE\" Then 'query"; +if ((_result.Tag /*Object*/ ).equals((Object)("ENCUESTA_CLIENTE"))) { + //BA.debugLineNum = 2165;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group421 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen421 = group421.getSize() +;int index421 = 0; +; +for (; index421 < groupLen421;index421++){ +_records = (Object[])(group421.Get(index421)); + //BA.debugLineNum = 2166;BA.debugLine="Dim HEC_CLIENTE As String = records(RESULT.Co"; +_hec_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HEC_CLIENTE"))))]); + //BA.debugLineNum = 2167;BA.debugLine="Dim HEC_MODULO As String = records(RESULT.Col"; +_hec_modulo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HEC_MODULO"))))]); + //BA.debugLineNum = 2168;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_ENCUESTA_CLIENTE (HEC_CLIENTE , HEC_MODULO) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hec_cliente),(Object)(_hec_modulo)})); + } +}; + }; + }; + //BA.debugLineNum = 2173;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2174;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2175;BA.debugLine="If RESULT.Tag = \"promoesp\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("promoesp"))) { + //BA.debugLineNum = 2176;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fr"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_PROMO_ESP"); + //BA.debugLineNum = 2177;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group432 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen432 = group432.getSize() +;int index432 = 0; +; +for (; index432 < groupLen432;index432++){ +_records = (Object[])(group432.Get(index432)); + //BA.debugLineNum = 2178;BA.debugLine="Dim CAT_PE_ID As String = records(RESULT.Colu"; +_cat_pe_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PE_ID"))))]); + //BA.debugLineNum = 2179;BA.debugLine="Dim CAT_PE_IDPROMO As String = records(RESULT"; +_cat_pe_idpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PE_IDPROMO"))))]); + //BA.debugLineNum = 2180;BA.debugLine="Dim CAT_PE_MONTO As String = records(RESULT.C"; +_cat_pe_monto = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PE_MONTO"))))]); + //BA.debugLineNum = 2181;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_PROMO_ESP(CAT_PE_ID, CAT_PE_IDPROMO, CAT_PE_MONTO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_pe_id),(Object)(_cat_pe_idpromo),(Object)(_cat_pe_monto)})); + } +}; + }; + }; + //BA.debugLineNum = 2187;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2188;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2189;BA.debugLine="If RESULT.Tag = \"HIST_ENCUESTA2\" Then 'query ta"; +if ((_result.Tag /*Object*/ ).equals((Object)("HIST_ENCUESTA2"))) { + //BA.debugLineNum = 2190;BA.debugLine="B4XPages.MainPage.skmt.BeginTransaction"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction(); + //BA.debugLineNum = 2191;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group444 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen444 = group444.getSize() +;int index444 = 0; +; +for (; index444 < groupLen444;index444++){ +_records = (Object[])(group444.Get(index444)); + //BA.debugLineNum = 2192;BA.debugLine="Dim HE_CLIENTE As String = records(RESULT.Col"; +_he_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HE_CLIENTE"))))]); + //BA.debugLineNum = 2193;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_ENCUESTA2(HE_CLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_he_cliente)})); + } +}; + //BA.debugLineNum = 2195;BA.debugLine="B4XPages.MainPage.skmt.TransactionSuccessful"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful(); + //BA.debugLineNum = 2196;BA.debugLine="B4XPages.MainPage.skmt.EndTransaction"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction(); + }; + }; + //BA.debugLineNum = 2200;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2201;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2202;BA.debugLine="If RESULT.Tag = \"gunaprod\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { + //BA.debugLineNum = 2203;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND"; +if (_pb2.getProgress()<30) { +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));}; + //BA.debugLineNum = 2204;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group456 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen456 = group456.getSize() +;int index456 = 0; +; +for (; index456 < groupLen456;index456++){ +_records = (Object[])(group456.Get(index456)); + //BA.debugLineNum = 2205;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 = 2206;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 = 2207;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 = 2208;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 = 2209;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 = 2210;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 = 2211;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 = 2212;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 = 2213;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 = 2214;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 = 2215;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 = 2216;BA.debugLine="Dim CAT_GP_DEV As String = records(RESULT.Col"; +_cat_gp_dev = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_DEV"))))]); + //BA.debugLineNum = 2217;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 = 2218;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 = 2219;BA.debugLine="Dim CAT_LISTAPRECIO As String = records(RESUL"; +_cat_listaprecio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_LISTAPRECIO"))))]); + //BA.debugLineNum = 2220;BA.debugLine="Dim CAT_GP_CONVERSION3 As String = records(RE"; +_cat_gp_conversion3 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CONVERSION3"))))]); + //BA.debugLineNum = 2221;BA.debugLine="Dim CAT_GP_CONVERSION2 As String = records(RE"; +_cat_gp_conversion2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CONVERSION2"))))]); + //BA.debugLineNum = 2225;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_LISTAPRECIO, CAT_GP_DEV, CAT_GP_CONVERSION3,CAT_GP_CONVERSION2) 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_listaprecio),(Object)(_cat_gp_dev),(Object)(_cat_gp_conversion3),(Object)(_cat_gp_conversion2)})); + } +}; + //BA.debugLineNum = 2227;BA.debugLine="Listo2=1"; +_listo2 = BA.NumberToString(1); + //BA.debugLineNum = 2228;BA.debugLine="If PB2.Progress = 0 Then"; +if (_pb2.getProgress()==0) { + //BA.debugLineNum = 2229;BA.debugLine="PB2.Progress = 30"; +_pb2.setProgress((int) (30)); + //BA.debugLineNum = 2230;BA.debugLine="S_CP.Text = \"CARGANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb2.getProgress()==30) { + //BA.debugLineNum = 2232;BA.debugLine="PB2.Progress = 60"; +_pb2.setProgress((int) (60)); + }else if(_pb2.getProgress()==60) { + //BA.debugLineNum = 2234;BA.debugLine="PB2.Progress = 100"; +_pb2.setProgress((int) (100)); + //BA.debugLineNum = 2235;BA.debugLine="S_CP.Text = \"LISTO\""; +_s_cp.setText(BA.ObjectToCharSequence("LISTO")); + }; + //BA.debugLineNum = 2238;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 = 2240;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2241;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 2246;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2247;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2248;BA.debugLine="If RESULT.Tag = \"gunaprod2\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod2"))) { + //BA.debugLineNum = 2249;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND"; +if (_pb2.getProgress()<30) { +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO"));}; + //BA.debugLineNum = 2250;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group496 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen496 = group496.getSize() +;int index496 = 0; +; +for (; index496 < groupLen496;index496++){ +_records = (Object[])(group496.Get(index496)); + //BA.debugLineNum = 2251;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 = 2252;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 = 2253;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 = 2254;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 = 2255;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 = 2256;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 = 2257;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 = 2258;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 = 2259;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 = 2260;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 = 2261;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 = 2263;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 = 2264;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 = 2265;BA.debugLine="Dim CAT_GP_CODPROMO As String = records(RESUL"; +_cat_gp_codpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_GP_CODPROMO"))))]); + //BA.debugLineNum = 2268;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD2(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_GP_CODPROMO) 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_gp_codpromo)})); + } +}; + //BA.debugLineNum = 2270;BA.debugLine="Listo2=1"; +_listo2 = BA.NumberToString(1); + //BA.debugLineNum = 2271;BA.debugLine="If PB2.Progress = 0 Then"; +if (_pb2.getProgress()==0) { + //BA.debugLineNum = 2272;BA.debugLine="PB2.Progress = 30"; +_pb2.setProgress((int) (30)); + //BA.debugLineNum = 2273;BA.debugLine="S_CP.Text = \"CARGANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb2.getProgress()==30) { + //BA.debugLineNum = 2275;BA.debugLine="PB2.Progress = 60"; +_pb2.setProgress((int) (60)); + }else if(_pb2.getProgress()==60) { + //BA.debugLineNum = 2277;BA.debugLine="PB2.Progress = 100"; +_pb2.setProgress((int) (100)); + //BA.debugLineNum = 2278;BA.debugLine="S_CP.Text = \"LISTO\""; +_s_cp.setText(BA.ObjectToCharSequence("LISTO")); + }; + //BA.debugLineNum = 2281;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 = 2283;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2284;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 2289;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2290;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2291;BA.debugLine="If RESULT.Tag = \"gunaprodp\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { + //BA.debugLineNum = 2292;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group532 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen532 = group532.getSize() +;int index532 = 0; +; +for (; index532 < groupLen532;index532++){ +_records = (Object[])(group532.Get(index532)); + //BA.debugLineNum = 2293;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 = 2294;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 = 2295;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 = 2296;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 = 2297;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 = 2298;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 = 2299;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 = 2300;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 = 2301;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 = 2302;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 = 2303;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 = 2304;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 = 2305;BA.debugLine="Dim CAT_PA_BSEGMENTA As String = records(RESU"; +_cat_pa_bsegmenta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_BSEGMENTA"))))]); + //BA.debugLineNum = 2306;BA.debugLine="Dim CAT_PA_SEGMENTAV As String = records(RESU"; +_cat_pa_segmentav = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_SEGMENTAV"))))]); + //BA.debugLineNum = 2307;BA.debugLine="CAT_GP_TIPOPROD = \"5\""; +_cat_gp_tipoprod = (int)(Double.parseDouble("5")); + //BA.debugLineNum = 2308;BA.debugLine="If CAT_GP_ID = \"PAQUNI003\" Then"; +if ((_cat_gp_id).equals("PAQUNI003")) { + //BA.debugLineNum = 2309;BA.debugLine="CAT_GP_ALMACEN = 60"; +_cat_gp_almacen = (int) (60); + }; + //BA.debugLineNum = 2311;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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,CAT_GP_TIPOPROD,CAT_PA_BSEGMENTA,CAT_PA_SEGMENTAV) 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_pa_bsegmenta),(Object)(_cat_pa_segmentav)})); + //BA.debugLineNum = 2315;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD2(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_PA_BSEGMENTA,CAT_PA_SEGMENTAV) 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_pa_bsegmenta),(Object)(_cat_pa_segmentav)})); + } +}; + //BA.debugLineNum = 2318;BA.debugLine="If PB2.Progress = 0 Then"; +if (_pb2.getProgress()==0) { + //BA.debugLineNum = 2319;BA.debugLine="PB2.Progress = 30"; +_pb2.setProgress((int) (30)); + //BA.debugLineNum = 2320;BA.debugLine="S_CP.Text = \"CARGANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb2.getProgress()==30) { + //BA.debugLineNum = 2322;BA.debugLine="PB2.Progress = 60"; +_pb2.setProgress((int) (60)); + }else if(_pb2.getProgress()==60) { + //BA.debugLineNum = 2324;BA.debugLine="PB2.Progress = 100"; +_pb2.setProgress((int) (100)); + //BA.debugLineNum = 2325;BA.debugLine="S_CP.Text = \"LISTO\""; +_s_cp.setText(BA.ObjectToCharSequence("LISTO")); + }; + //BA.debugLineNum = 2328;BA.debugLine="Listo4=1"; +_listo4 = BA.NumberToString(1); + //BA.debugLineNum = 2329;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 = 2331;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2332;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 = 2335;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2336;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 2341;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2342;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2343;BA.debugLine="If RESULT.Tag = \"gunaprodps\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodps"))) { + //BA.debugLineNum = 2344;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group576 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen576 = group576.getSize() +;int index576 = 0; +; +for (; index576 < groupLen576;index576++){ +_records = (Object[])(group576.Get(index576)); + //BA.debugLineNum = 2345;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 = 2346;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 = 2347;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 = 2348;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 = 2349;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 = 2350;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 = 2351;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 = 2352;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 = 2353;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 = 2354;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 = 2355;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 = 2356;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 = 2357;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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,CAT_GP_TIPOPROD) 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)})); + } +}; + //BA.debugLineNum = 2359;BA.debugLine="If PB2.Progress = 0 Then"; +if (_pb2.getProgress()==0) { + //BA.debugLineNum = 2360;BA.debugLine="PB2.Progress = 30"; +_pb2.setProgress((int) (30)); + //BA.debugLineNum = 2361;BA.debugLine="S_CP.Text = \"CARGANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb2.getProgress()==30) { + //BA.debugLineNum = 2364;BA.debugLine="PB2.Progress = 60"; +_pb2.setProgress((int) (60)); + }else if(_pb2.getProgress()==60) { + //BA.debugLineNum = 2366;BA.debugLine="PB2.Progress = 100"; +_pb2.setProgress((int) (100)); + //BA.debugLineNum = 2367;BA.debugLine="S_CP.Text = \"LISTO\""; +_s_cp.setText(BA.ObjectToCharSequence("LISTO")); + }; + //BA.debugLineNum = 2371;BA.debugLine="Listo4=1"; +_listo4 = BA.NumberToString(1); + //BA.debugLineNum = 2372;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 = 2374;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2375;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 = 2378;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2379;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 2384;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2385;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2386;BA.debugLine="If RESULT.Tag = \"detallepaq\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { + //BA.debugLineNum = 2387;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group613 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen613 = group613.getSize() +;int index613 = 0; +; +for (; index613 < groupLen613;index613++){ +_records = (Object[])(group613.Get(index613)); + //BA.debugLineNum = 2388;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 = 2389;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 = 2390;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 = 2391;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 = 2392;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 = 2393;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 = 2394;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 = 2395;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 = 2396;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 = 2397;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 = 2398;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 = 2399;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 2401;BA.debugLine="If PB2.Progress = 0 Then"; +if (_pb2.getProgress()==0) { + //BA.debugLineNum = 2402;BA.debugLine="PB2.Progress = 30"; +_pb2.setProgress((int) (30)); + //BA.debugLineNum = 2403;BA.debugLine="S_CP.Text = \"CARGANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb2.getProgress()==30) { + //BA.debugLineNum = 2405;BA.debugLine="PB2.Progress = 60"; +_pb2.setProgress((int) (60)); + }else if(_pb2.getProgress()==60) { + //BA.debugLineNum = 2407;BA.debugLine="PB2.Progress = 100"; +_pb2.setProgress((int) (100)); + //BA.debugLineNum = 2408;BA.debugLine="S_CP.Text = \"LISTO\""; +_s_cp.setText(BA.ObjectToCharSequence("LISTO")); + }; + //BA.debugLineNum = 2410;BA.debugLine="Listo3 =1"; +_listo3 = BA.NumberToString(1); + //BA.debugLineNum = 2411;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 = 2413;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2414;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 = 2417;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2418;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 2423;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2424;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2425;BA.debugLine="If RESULT.Tag = \"hist_datos\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { + //BA.debugLineNum = 2426;BA.debugLine="Dim cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 2427;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group650 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen650 = group650.getSize() +;int index650 = 0; +; +for (; index650 < groupLen650;index650++){ +_records = (Object[])(group650.Get(index650)); + //BA.debugLineNum = 2428;BA.debugLine="cont = cont +1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 2429;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 = 2430;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 = 2431;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 = 2432;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 = 2433;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 = 2435;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA) VALUES (?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha)})); + } +}; + //BA.debugLineNum = 2437;BA.debugLine="Listo3 =1"; +_listo3 = BA.NumberToString(1); + //BA.debugLineNum = 2438;BA.debugLine="If PB1.Progress = 0 Then"; +if (_pb1.getProgress()==0) { + //BA.debugLineNum = 2439;BA.debugLine="PB1.Progress = 30"; +_pb1.setProgress((int) (30)); + //BA.debugLineNum = 2440;BA.debugLine="S_CH.Text = \"CARGANDO\""; +_s_ch.setText(BA.ObjectToCharSequence("CARGANDO")); + }else if(_pb1.getProgress()==30) { + //BA.debugLineNum = 2442;BA.debugLine="PB1.Progress = 60"; +_pb1.setProgress((int) (60)); + }else if(_pb1.getProgress()==60) { + //BA.debugLineNum = 2444;BA.debugLine="PB1.Progress = 100"; +_pb1.setProgress((int) (100)); + //BA.debugLineNum = 2445;BA.debugLine="S_CH.Text = \"LISTO\""; +_s_ch.setText(BA.ObjectToCharSequence("LISTO")); + }; + //BA.debugLineNum = 2448;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 = 2450;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2451;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); + }; + }; + }; + //BA.debugLineNum = 2456;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2457;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2458;BA.debugLine="If RESULT.Tag = \"variables\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { + //BA.debugLineNum = 2459;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group678 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen678 = group678.getSize() +;int index678 = 0; +; +for (; index678 < groupLen678;index678++){ +_records = (Object[])(group678.Get(index678)); + //BA.debugLineNum = 2460;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 = 2461;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 = 2462;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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 = 2467;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2468;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2469;BA.debugLine="If RESULT.Tag = \"CUESTIONARIO\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("CUESTIONARIO"))) { + //BA.debugLineNum = 2470;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group688 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen688 = group688.getSize() +;int index688 = 0; +; +for (; index688 < groupLen688;index688++){ +_records = (Object[])(group688.Get(index688)); + //BA.debugLineNum = 2471;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_VALOR"))))]); + //BA.debugLineNum = 2472;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("CUESTIONARIO")})); + //BA.debugLineNum = 2473;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("CUESTIONARIO"),(Object)(_cat_va_valor)})); + } +}; + }; + }; + //BA.debugLineNum = 2478;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2479;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2480;BA.debugLine="If RESULT.Tag = \"carga_encuesta\" Then 'query ta"; +if ((_result.Tag /*Object*/ ).equals((Object)("carga_encuesta"))) { + //BA.debugLineNum = 2481;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group698 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen698 = group698.getSize() +;int index698 = 0; +; +for (; index698 < groupLen698;index698++){ +_records = (Object[])(group698.Get(index698)); + //BA.debugLineNum = 2482;BA.debugLine="Dim CAT_EP_ID As String = records(RESULT.COLU"; +_cat_ep_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ID"))))]); + //BA.debugLineNum = 2483;BA.debugLine="Dim CAT_EP_IDTIPOPREGUNTA As String = records"; +_cat_ep_idtipopregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_IDTIPOPREGUNTA"))))]); + //BA.debugLineNum = 2484;BA.debugLine="Dim CAT_CE_DESCRIPCION As String = records(RE"; +_cat_ce_descripcion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_CE_DESCRIPCION"))))]); + //BA.debugLineNum = 2485;BA.debugLine="Dim CAT_EP_PREGUNTA As String = records(RESUL"; +_cat_ep_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_PREGUNTA"))))]); + //BA.debugLineNum = 2486;BA.debugLine="Dim CAT_EP_RES1_PRED As String = records(RESU"; +_cat_ep_res1_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES1_PRED"))))]); + //BA.debugLineNum = 2487;BA.debugLine="Dim CAT_EP_RES2_PRED As String = records(RESU"; +_cat_ep_res2_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES2_PRED"))))]); + //BA.debugLineNum = 2488;BA.debugLine="Dim CAT_EP_RES3_PRED As String = records(RESU"; +_cat_ep_res3_pred = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_RES3_PRED"))))]); + //BA.debugLineNum = 2489;BA.debugLine="Dim CAT_EP_ORDEN_PREGUNTA As String = records"; +_cat_ep_orden_pregunta = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_EP_ORDEN_PREGUNTA"))))]); + //BA.debugLineNum = 2490;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ENCUESTA_PREGUNTA (CAT_EP_ID ,CAT_EP_IDTIPOPREGUNTA ,CAT_CE_DESCRIPCION ,CAT_EP_PREGUNTA ,CAT_EP_RES1_PRED ,CAT_EP_RES2_PRED ,CAT_EP_RES3_PRED ,CAT_EP_ORDEN_PREGUNTA ) VALUES (?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ep_id),(Object)(_cat_ep_idtipopregunta),(Object)(_cat_ce_descripcion),(Object)(_cat_ep_pregunta),(Object)(_cat_ep_res1_pred),(Object)(_cat_ep_res2_pred),(Object)(_cat_ep_res3_pred),(Object)(_cat_ep_orden_pregunta)})); + } +}; + }; + }; + //BA.debugLineNum = 2495;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2496;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2497;BA.debugLine="If RESULT.Tag = \"valida_pedido\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { + //BA.debugLineNum = 2498;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group714 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen714 = group714.getSize() +;int index714 = 0; +; +for (; index714 < groupLen714;index714++){ +_records = (Object[])(group714.Get(index714)); + //BA.debugLineNum = 2499;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 = 2502;BA.debugLine="If cuantos_pedido < = CUANTOSP Then"; +if ((double)(Double.parseDouble(_cuantos_pedido))<=_cuantosp) { + //BA.debugLineNum = 2504;BA.debugLine="datos_iguales = \"ok\""; +_datos_iguales = "ok"; + //BA.debugLineNum = 2505;BA.debugLine="S_CP.Text = \"INFO OK\""; +_s_cp.setText(BA.ObjectToCharSequence("INFO OK")); + //BA.debugLineNum = 2506;BA.debugLine="B_OK_PAS.Text = \"OK\""; +_b_ok_pas.setText(BA.ObjectToCharSequence("OK")); + }else { + //BA.debugLineNum = 2508;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+_cuantos_pedido),__c.True);}; + //BA.debugLineNum = 2509;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-2)\""; +_s_cp.setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-2)")); + }; + } +}; + }; + }; + //BA.debugLineNum = 2515;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2516;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2517;BA.debugLine="If RESULT.Tag = \"valida_pedidoc\" Then 'query ta"; +if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { + //BA.debugLineNum = 2518;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group730 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen730 = group730.getSize() +;int index730 = 0; +; +for (; index730 < groupLen730;index730++){ +_records = (Object[])(group730.Get(index730)); + //BA.debugLineNum = 2519;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 = 2520;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then"; +if ((_cuantos_pedidosc).equals(BA.NumberToString(_cuantosc))) { + //BA.debugLineNum = 2522;BA.debugLine="datos_iguales = \"ok\""; +_datos_iguales = "ok"; + }else { + //BA.debugLineNum = 2524;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+_cuantos_pedidosc),__c.True);}; + }; + } +}; + }; + }; + //BA.debugLineNum = 2530;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2531;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2532;BA.debugLine="If RESULT.Tag = \"valida_noventa\" Then 'query ta"; +if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { + //BA.debugLineNum = 2533;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group743 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen743 = group743.getSize() +;int index743 = 0; +; +for (; index743 < groupLen743;index743++){ +_records = (Object[])(group743.Get(index743)); + //BA.debugLineNum = 2534;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 = 2535;BA.debugLine="If cuantos_noventa = CUANTOSN Then"; +if ((_cuantos_noventa).equals(BA.NumberToString(_cuantosn))) { + //BA.debugLineNum = 2537;BA.debugLine="datos_iguales = \"ok\""; +_datos_iguales = "ok"; + }else { + //BA.debugLineNum = 2539;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+_cuantos_noventa),__c.True);}; + }; + } +}; + }; + }; + //BA.debugLineNum = 2545;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2546;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2547;BA.debugLine="If RESULT.Tag = \"ins_pedido\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("ins_pedido"))) { + //BA.debugLineNum = 2548;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group756 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen756 = group756.getSize() +;int index756 = 0; +; +for (; index756 < groupLen756;index756++){ +_records = (Object[])(group756.Get(index756)); + //BA.debugLineNum = 2549;BA.debugLine="PB2.Progress = PB2.Progress + 5"; +_pb2.setProgress((int) (_pb2.getProgress()+5)); + //BA.debugLineNum = 2550;BA.debugLine="S_CP.Text = \"SUBIENDO\""; +_s_cp.setText(BA.ObjectToCharSequence("SUBIENDO")); + } +}; + //BA.debugLineNum = 2552;BA.debugLine="PB2.Progress = 100"; +_pb2.setProgress((int) (100)); + //BA.debugLineNum = 2553;BA.debugLine="S_CP.Text = \"ENVIANDO\""; +_s_cp.setText(BA.ObjectToCharSequence("ENVIANDO")); + }; + }; + //BA.debugLineNum = 2558;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2559;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2560;BA.debugLine="If RESULT.Tag = \"version\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { + //BA.debugLineNum = 2561;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group767 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen767 = group767.getSize() +;int index767 = 0; +; +for (; index767 < groupLen767;index767++){ +_records = (Object[])(group767.Get(index767)); + //BA.debugLineNum = 2562;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION"); + //BA.debugLineNum = 2563;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 = 2564;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)})); + } +}; + }; + }; + //BA.debugLineNum = 2569;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2570;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2571;BA.debugLine="If RESULT.Tag = \"count_cli\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { + //BA.debugLineNum = 2572;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group777 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen777 = group777.getSize() +;int index777 = 0; +; +for (; index777 < groupLen777;index777++){ +_records = (Object[])(group777.Get(index777)); + //BA.debugLineNum = 2573;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 = 2578;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2579;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2580;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { + //BA.debugLineNum = 2581;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group785 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen785 = group785.getSize() +;int index785 = 0; +; +for (; index785 < groupLen785;index785++){ +_records = (Object[])(group785.Get(index785)); + //BA.debugLineNum = 2582;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 = 2583;BA.debugLine="If VALIDO = \"OK\" Then"; +if ((_valido).equals("OK")) { + //BA.debugLineNum = 2584;BA.debugLine="cargar.Visible = True"; +_cargar.setVisible(__c.True); + //BA.debugLineNum = 2585;BA.debugLine="Subir.Visible = True"; +_subir.setVisible(__c.True); + //BA.debugLineNum = 2586;BA.debugLine="inv.Visible = True"; +_inv.setVisible(__c.True); + //BA.debugLineNum = 2587;BA.debugLine="connecta.Visible = False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 2588;BA.debugLine="If conn = \"1\" Then"; +if ((_conn).equals("1")) { + //BA.debugLineNum = 2589;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True); + }; + }else { + //BA.debugLineNum = 2592;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 2593;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 2594;BA.debugLine="inv.Visible = False"; +_inv.setVisible(__c.False); + //BA.debugLineNum = 2595;BA.debugLine="connecta.Visible = False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 2596;BA.debugLine="ToastMessageShow(\"Ruta invalida.\" , True)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Ruta invalida."),__c.True); + }; + } +}; + }; + }; + //BA.debugLineNum = 2602;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2603;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2604;BA.debugLine="If RESULT.Tag = \"usuario\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { + //BA.debugLineNum = 2605;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group808 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen808 = group808.getSize() +;int index808 = 0; +; +for (; index808 < groupLen808;index808++){ +_records = (Object[])(group808.Get(index808)); + //BA.debugLineNum = 2606;BA.debugLine="Dim name2 As String = records(RESULT.Columns."; +_name2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("VALIDO"))))]); + } +}; + //BA.debugLineNum = 2608;BA.debugLine="If name2 = \"OK\" Then"; +if ((_name2).equals("OK")) { + //BA.debugLineNum = 2609;BA.debugLine="PASO = 1"; +_paso = BA.NumberToString(1); + }; + //BA.debugLineNum = 2611;BA.debugLine="P1.Visible = False"; +_p1.setVisible(__c.False); + }; + }; + //BA.debugLineNum = 2615;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2616;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2617;BA.debugLine="If RESULT.Tag = \"fecha\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("fecha"))) { + //BA.debugLineNum = 2618;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group820 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen820 = group820.getSize() +;int index820 = 0; +; +for (; index820 < groupLen820;index820++){ +_records = (Object[])(group820.Get(index820)); + //BA.debugLineNum = 2619;BA.debugLine="Dim FECHA_HOY As String = records(RESULT.Colu"; +_fecha_hoy = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("FECHA"))))]); + //BA.debugLineNum = 2620;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FECHA")})); + //BA.debugLineNum = 2621;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._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)("FECHA"),(Object)(_fecha_hoy)})); + } +}; + }; + }; + //BA.debugLineNum = 2626;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2627;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = _b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2636;BA.debugLine="If RESULT.Tag = \"hist_pro2265\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro2265"))) { + //BA.debugLineNum = 2637;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO2265"); + //BA.debugLineNum = 2638;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group831 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen831 = group831.getSize() +;int index831 = 0; +; +for (; index831 < groupLen831;index831++){ +_records = (Object[])(group831.Get(index831)); + //BA.debugLineNum = 2639;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PRO2265(H_IDCLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]})); + } +}; + }; + //BA.debugLineNum = 2642;BA.debugLine="If RESULT.Tag = \"hist_pro3054\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro3054"))) { + //BA.debugLineNum = 2643;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO3054"); + //BA.debugLineNum = 2644;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group837 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen837 = group837.getSize() +;int index837 = 0; +; +for (; index837 < groupLen837;index837++){ +_records = (Object[])(group837.Get(index837)); + //BA.debugLineNum = 2645;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PRO3054(H_IDCLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]})); + } +}; + }; + //BA.debugLineNum = 2648;BA.debugLine="If RESULT.Tag = \"hist_pro3055\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("hist_pro3055"))) { + //BA.debugLineNum = 2649;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_PR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_PRO3055"); + //BA.debugLineNum = 2650;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group843 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen843 = group843.getSize() +;int index843 = 0; +; +for (; index843 < groupLen843;index843++){ +_records = (Object[])(group843.Get(index843)); + //BA.debugLineNum = 2651;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_PRO3055(H_IDCLIENTE) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CLIENTE"))))]})); + } +}; + }; + //BA.debugLineNum = 2654;BA.debugLine="If RESULT.Tag = \"traeVersion\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("traeVersion"))) { + //BA.debugLineNum = 2655;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group848 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen848 = group848.getSize() +;int index848 = 0; +; +for (; index848 < groupLen848;index848++){ +_records = (Object[])(group848.Get(index848)); + //BA.debugLineNum = 2656;BA.debugLine="Private version As String = records(RESULT.C"; +_version = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_VERSION"))))]); + //BA.debugLineNum = 2657;BA.debugLine="Private actualizarAplicacion As String = rec"; +_actualizaraplicacion = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_ACTUALIZACION"))))]); + } +}; + //BA.debugLineNum = 2659;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("VERSION_NUEVA")})); + //BA.debugLineNum = 2660;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VA"; +_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)("VERSION_NUEVA"),(Object)(_version)})); + //BA.debugLineNum = 2661;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("FORZAR_ACTUALIZACION")})); + //BA.debugLineNum = 2662;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VA"; +_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)("FORZAR_ACTUALIZACION"),(Object)(_actualizaraplicacion)})); + //BA.debugLineNum = 2663;BA.debugLine="Log($\">>>> GUARDAMOS NUEVA VERSION: ${version"; +__c.LogImpl("33736641",(">>>> GUARDAMOS NUEVA VERSION: "+__c.SmartStringFormatter("",(Object)(_version))+", "+__c.SmartStringFormatter("",(Object)(_actualizaraplicacion))+""),0); + }; + //BA.debugLineNum = 2665;BA.debugLine="If RESULT.Tag = \"tipoVenta\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("tipoVenta"))) { + //BA.debugLineNum = 2666;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group859 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen859 = group859.getSize() +;int index859 = 0; +; +for (; index859 < groupLen859;index859++){ +_records = (Object[])(group859.Get(index859)); + //BA.debugLineNum = 2667;BA.debugLine="Private tipoVenta As String = records(RESULT"; +_tipoventa = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_RU_CATEGORIA"))))]); + } +}; + //BA.debugLineNum = 2669;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("TIPO_VENTA")})); + //BA.debugLineNum = 2670;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VA"; +_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)("TIPO_VENTA"),(Object)(_tipoventa)})); + //BA.debugLineNum = 2671;BA.debugLine="Log($\">>>> GUARDAMOS TIPO_VENTA: ${tipoVenta}"; +__c.LogImpl("33736649",(">>>> GUARDAMOS TIPO_VENTA: "+__c.SmartStringFormatter("",(Object)(_tipoventa))+""),0); + }; + //BA.debugLineNum = 2673;BA.debugLine="If RESULT.Tag = \"planLealtad\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("planLealtad"))) { + //BA.debugLineNum = 2674;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FR"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PLAN_LEALTAD WHERE DESCARGADO = 1"); + //BA.debugLineNum = 2675;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group868 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen868 = group868.getSize() +;int index868 = 0; +; +for (; index868 < groupLen868;index868++){ +_records = (Object[])(group868.Get(index868)); + //BA.debugLineNum = 2676;BA.debugLine="Dim PL_CLIENTE As String = records(RESULT.Col"; +_pl_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_PL_CLIENTE"))))]); + //BA.debugLineNum = 2677;BA.debugLine="Dim PL_BANDERA As String = records(RESULT.Col"; +_pl_bandera = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_PL_BANDERA"))))]); + //BA.debugLineNum = 2678;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PLAN_LEALTAD(PL_CLIENTE, PL_BANDERA, DESCARGADO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_pl_cliente),(Object)(_pl_bandera),(Object)(1)})); + } +}; + }; + //BA.debugLineNum = 2682;BA.debugLine="If RESULT.Tag = \"coments\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("coments"))) { + //BA.debugLineNum = 2683;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FR"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM COMENTARIOS WHERE DESCARGADO = 1"); + //BA.debugLineNum = 2684;BA.debugLine="For Each records() As Object In RESULT.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group876 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen876 = group876.getSize() +;int index876 = 0; +; +for (; index876 < groupLen876;index876++){ +_records = (Object[])(group876.Get(index876)); + //BA.debugLineNum = 2685;BA.debugLine="Dim COMENTARIO As String = records(RESULT.Col"; +_comentario = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_COM_COMENTARIO"))))]); + //BA.debugLineNum = 2686;BA.debugLine="Dim CLIENTECOM As String = records(RESULT.Col"; +_clientecom = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_COM_CLIENTE"))))]); + //BA.debugLineNum = 2687;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO COMENTARIOS(COMENTARTIO, CLIENTE, DESCARGADO) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_comentario),(Object)(_clientecom),(Object)(1)})); + } +}; + }; + }; + }; + //BA.debugLineNum = 2693;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.IsInitia"; +if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .IsInitialized()) { + //BA.debugLineNum = 2694;BA.debugLine="LogColor($\"REQUESTS: ${B4XPages.MainPage.reqMana"; +__c.LogImpl("33736672",("REQUESTS: "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),__c.Colors.Red); + //BA.debugLineNum = 2696;BA.debugLine="If B4XPages.MainPage.reqManager.reqsList.Size ="; +if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._reqslist /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0 && (_carga).equals("SUBIR")) { + //BA.debugLineNum = 2697;BA.debugLine="t1.Enabled = False"; +_t1.setEnabled(__c.False); + //BA.debugLineNum = 2698;BA.debugLine="t1.Initialize(\"T1\", 3000) ' 1000 = 1 second"; +_t1.Initialize(ba,"T1",(long) (3000)); + //BA.debugLineNum = 2700;BA.debugLine="If contadorSubir < 3 Then ' Si no hacen click e"; +if (_contadorsubir<3) { + //BA.debugLineNum = 2701;BA.debugLine="t1.Enabled = True"; +_t1.setEnabled(__c.True); + //BA.debugLineNum = 2702;BA.debugLine="Log(\"TIMER ENABLED\")"; +__c.LogImpl("33736680","TIMER ENABLED",0); + }; + //BA.debugLineNum = 2704;BA.debugLine="contadorSubir = contadorSubir + 1"; +_contadorsubir = (int) (_contadorsubir+1); + }; + }; + //BA.debugLineNum = 2707;BA.debugLine="Job.Release"; +_job._release /*String*/ (); + //BA.debugLineNum = 2708;BA.debugLine="End Sub"; +return ""; +} +public String _nuevo_click() throws Exception{ + //BA.debugLineNum = 3163;BA.debugLine="Sub NUEVO_Click"; + //BA.debugLineNum = 3164;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")"; +_b4xpages._showpage /*String*/ (ba,"NuevoCliente"); + //BA.debugLineNum = 3165;BA.debugLine="End Sub"; +return ""; +} +public String _nvo_cliente_click() throws Exception{ + //BA.debugLineNum = 3637;BA.debugLine="Sub nvo_cliente_Click"; + //BA.debugLineNum = 3638;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")"; +_b4xpages._showpage /*String*/ (ba,"NuevoCliente"); + //BA.debugLineNum = 3639;BA.debugLine="End Sub"; +return ""; +} +public String _p_marcasres_click() throws Exception{ + //BA.debugLineNum = 3838;BA.debugLine="Private Sub p_marcasRes_Click"; + //BA.debugLineNum = 3840;BA.debugLine="End Sub"; +return ""; +} +public String _p_resumen_click() throws Exception{ + //BA.debugLineNum = 3191;BA.debugLine="Sub P_RESUMEN_click"; + //BA.debugLineNum = 3193;BA.debugLine="End Sub"; +return ""; +} +public String _p_sombra_click() throws Exception{ + //BA.debugLineNum = 3842;BA.debugLine="Private Sub p_sombra_Click"; + //BA.debugLineNum = 3844;BA.debugLine="End Sub"; +return ""; +} +public String _p_transparenteactualizacion_click() throws Exception{ + //BA.debugLineNum = 3846;BA.debugLine="Private Sub p_transparenteActualizacion_Click"; + //BA.debugLineNum = 3848;BA.debugLine="End Sub"; +return ""; +} +public String _p1_click() throws Exception{ + //BA.debugLineNum = 3856;BA.debugLine="Private Sub P1_Click"; + //BA.debugLineNum = 3858;BA.debugLine="End Sub"; +return ""; +} +public String _recalculoxcant() throws Exception{ +int _promespdes = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel = null; +int _hjh = 0; +float _recalculo = 0f; +float _recalculototal = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rangosel2 = null; + //BA.debugLineNum = 581;BA.debugLine="Sub recalculoXcant"; + //BA.debugLineNum = 583;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_CEDIS = ? and PE_RECCEDIS IS NOT NULL AND PE_RECALCULADO IS NULL ",new String[]{_subs._traealmacen /*String*/ (ba)}))); + //BA.debugLineNum = 584;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 585;BA.debugLine="For promespdes = 0 To c.RowCount -1"; +{ +final int step3 = 1; +final int limit3 = (int) (_c.getRowCount()-1); +_promespdes = (int) (0) ; +for (;_promespdes <= limit3 ;_promespdes = _promespdes + step3 ) { + //BA.debugLineNum = 586;BA.debugLine="c.Position = promespdes"; +_c.setPosition(_promespdes); + //BA.debugLineNum = 587;BA.debugLine="Dim rangosel As Cursor= B4XPages.MainPage.skmt."; +_rangosel = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rangosel = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? AND CAT_PD_RANGO <= ? AND CAT_PD_RANGO2 >= ?",new String[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT")),BA.NumberToString(_c.GetInt("PE_CANT"))}))); + //BA.debugLineNum = 588;BA.debugLine="If rangosel.RowCount > 0 Then"; +if (_rangosel.getRowCount()>0) { + //BA.debugLineNum = 589;BA.debugLine="For hjh = 0 To rangosel.RowCount-1"; +{ +final int step7 = 1; +final int limit7 = (int) (_rangosel.getRowCount()-1); +_hjh = (int) (0) ; +for (;_hjh <= limit7 ;_hjh = _hjh + step7 ) { + //BA.debugLineNum = 590;BA.debugLine="rangosel.Position = hjh"; +_rangosel.setPosition(_hjh); + //BA.debugLineNum = 591;BA.debugLine="If rangosel.GetString(\"CAT_PD_TIER\").Contains"; +if (_rangosel.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { + //BA.debugLineNum = 592;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("33538955",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 593;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))"; +__c.LogImpl("33538956",_rangosel.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 594;BA.debugLine="Private recalculo As Float = c.GetString(\"PE"; +_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False)))); + //BA.debugLineNum = 595;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +__c.LogImpl("33538958",BA.NumberToString(_recalculo),__c.Colors.Blue); + //BA.debugLineNum = 596;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("33538959",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 597;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\")"; +__c.LogImpl("33538960",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 598;BA.debugLine="Log(rangosel.GetString(\"CAT_PD_DESCUENTO\"))"; +__c.LogImpl("33538961",_rangosel.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 599;BA.debugLine="Private recalculototal As Float =c.GetString"; +_recalculototal = (float) ((double)(Double.parseDouble(_c.GetString("PE_CANT")))*_recalculo); + //BA.debugLineNum = 600;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = PE_CANT, PE_RECALCULADO = 1 WHERE PE_PROID = ? AND PE_CLIENTE = ? AND PE_CEDIS = ? and PE_FOLIO = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel.GetString("CAT_PD_COD_PROMO"),_c.GetString("PE_PROID"),_c.GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")})); + }; + } +}; + }else { + //BA.debugLineNum = 604;BA.debugLine="Dim rangosel2 As Cursor= B4XPages.MainPage.skm"; +_rangosel2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rangosel2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO = ? and ? > cat_pd_rango2",new String[]{_c.GetString("PE_PROID"),BA.NumberToString(_c.GetInt("PE_CANT"))}))); + //BA.debugLineNum = 606;BA.debugLine="If rangosel2.RowCount > 0 Then"; +if (_rangosel2.getRowCount()>0) { + //BA.debugLineNum = 608;BA.debugLine="For hjh = 0 To rangosel2.RowCount-1"; +{ +final int step24 = 1; +final int limit24 = (int) (_rangosel2.getRowCount()-1); +_hjh = (int) (0) ; +for (;_hjh <= limit24 ;_hjh = _hjh + step24 ) { + //BA.debugLineNum = 609;BA.debugLine="rangosel2.Position = hjh"; +_rangosel2.setPosition(_hjh); + //BA.debugLineNum = 610;BA.debugLine="If rangosel2.GetString(\"CAT_PD_TIER\").Contai"; +if (_rangosel2.GetString("CAT_PD_TIER").contains(BA.NumberToString(_subs._traetipocliente /*int*/ (ba)))) { + //BA.debugLineNum = 611;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("33538974",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 612;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")"; +__c.LogImpl("33538975",_rangosel2.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 613;BA.debugLine="Private recalculo As Float = c.GetString(\"P"; +_recalculo = (float) ((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False)))); + //BA.debugLineNum = 614;BA.debugLine="LogColor(recalculo,Colors.Blue)"; +__c.LogImpl("33538977",BA.NumberToString(_recalculo),__c.Colors.Blue); + //BA.debugLineNum = 615;BA.debugLine="Log(c.GetString(\"PE_COSTOU\"))"; +__c.LogImpl("33538978",_c.GetString("PE_COSTOU"),0); + //BA.debugLineNum = 616;BA.debugLine="Log(NumberFormat2(((c.GetString(\"PE_COSTOU\""; +__c.LogImpl("33538979",__c.NumberFormat2((((double)(Double.parseDouble(_c.GetString("PE_COSTOU")))*(double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False),0); + //BA.debugLineNum = 617;BA.debugLine="Log(rangosel2.GetString(\"CAT_PD_DESCUENTO\")"; +__c.LogImpl("33538980",_rangosel2.GetString("CAT_PD_DESCUENTO"),0); + //BA.debugLineNum = 618;BA.debugLine="Private recalculototal As Float = rangosel2"; +_recalculototal = (float) ((double)(Double.parseDouble(_rangosel2.GetString("CAT_PD_RANGO2")))*_recalculo); + //BA.debugLineNum = 621;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDAT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = ?, PE_RECALCULOTOT = ?, PE_RECCEDIS = ?, PE_RECCANT = ? , PE_RECALCULADO = 1 WHERE PE_PROID = ? AND PE_CLIENTE = ? AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__c.NumberFormat2(_recalculo,(int) (0),(int) (2),(int) (2),__c.False),__c.NumberFormat2(_recalculototal,(int) (0),(int) (2),(int) (2),__c.False),_rangosel2.GetString("CAT_PD_COD_PROMO"),_rangosel2.GetString("CAT_PD_RANGO2"),_c.GetString("PE_PROID"),_c.GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")})); + }; + } +}; + }else { + //BA.debugLineNum = 625;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL, PE_RECALCULADO = 1 WHERE PE_PROID = ? AND PE_CLIENTE = ? AND PE_CEDIS = ? AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("PE_PROID"),_c.GetString("PE_CLIENTE"),_subs._traealmacen /*String*/ (ba),_c.GetString("PE_FOLIO")})); + }; + //BA.debugLineNum = 627;BA.debugLine="rangosel2.Close"; +_rangosel2.Close(); + }; + //BA.debugLineNum = 629;BA.debugLine="rangosel.Close"; +_rangosel.Close(); + } +}; + }; + //BA.debugLineNum = 632;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE PEDI"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE PEDIDO set PE_RECALCULO = NULL, PE_RECALCULOTOT = NULL, PE_RECCEDIS = NULL, PE_RECCANT = NULL, PE_RECALCULADO = 1 WHERE PE_CEDIS <> ? AND PE_RECALCULADO IS NULL ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_subs._traealmacen /*String*/ (ba)})); + //BA.debugLineNum = 633;BA.debugLine="End Sub"; +return ""; +} +public String _resdia_click() throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +String _total1 = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null; +String _total4 = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s6 = null; +String _total3 = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _ru_o = null; +String _total2 = ""; +int _i2 = 0; +String _rutor = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _ru_s = null; +String _rusu = ""; +String _cuantos_obj = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s7 = null; +int _totalstick = 0; +int _sfsdf = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s8 = null; +int _totaltotaltot = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s0 = null; + //BA.debugLineNum = 3199;BA.debugLine="Sub resdia_Click"; + //BA.debugLineNum = 3201;BA.debugLine="Btn_Ubicar.Visible=False"; +_btn_ubicar.setVisible(__c.False); + //BA.debugLineNum = 3202;BA.debugLine="SCROLL_RESDIA.Visible = True"; +_scroll_resdia.setVisible(__c.True); + //BA.debugLineNum = 3203;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"RESDIA\")"; +_scroll_resdia.getPanel().LoadLayout("RESDIA",ba); + //BA.debugLineNum = 3204;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel4.Height"; +_scroll_resdia.getPanel().setHeight(_panel4.getHeight()); + //BA.debugLineNum = 3205;BA.debugLine="Panel4.Visible = True"; +_panel4.setVisible(__c.True); + //BA.debugLineNum = 3207;BA.debugLine="NUEVO.Visible =False"; +_nuevo.setVisible(__c.False); + //BA.debugLineNum = 3208;BA.debugLine="BUSCA.Visible=False"; +_busca.setVisible(__c.False); + //BA.debugLineNum = 3209;BA.debugLine="connecta.Visible=False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 3210;BA.debugLine="Subir.Visible=False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 3211;BA.debugLine="cargar.Visible=False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 3212;BA.debugLine="Resumen.Visible= False"; +_resumen.setVisible(__c.False); + //BA.debugLineNum = 3214;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select COUNT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select COUNT(*) AS CUANTOS FROM HIST_ENCUESTA WHERE HE_TIPO = ?",new String[]{"TELEFONO"}))); + //BA.debugLineNum = 3215;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3216;BA.debugLine="l_encuesta.Text = d.GetString(\"CUANTOS\")"; +_l_encuesta.setText(BA.ObjectToCharSequence(_d.GetString("CUANTOS"))); + //BA.debugLineNum = 3217;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3219;BA.debugLine="L_MARCAS.CLEAR"; +_l_marcas.Clear(); + //BA.debugLineNum = 3220;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select disti"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select distinct HE_CLIE AS CLIENTE FROM HIST_ENCUESTA WHERE HE_TIPO = ?",new String[]{"TELEFONO"}))); + //BA.debugLineNum = 3221;BA.debugLine="If D.RowCount>0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 3222;BA.debugLine="For i=0 To D.RowCount -1"; +{ +final int step19 = 1; +final int limit19 = (int) (_d.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit19 ;_i = _i + step19 ) { + //BA.debugLineNum = 3223;BA.debugLine="D.Position=i"; +_d.setPosition(_i); + //BA.debugLineNum = 3224;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select HE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select HE_RES from HIST_ENCUESTA where HE_CLIE = ? AND HE_TIPO = ?",new String[]{_d.GetString("CLIENTE"),"TELEFONO"}))); + //BA.debugLineNum = 3225;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3226;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 3227;BA.debugLine="label1 = L_MARCAS.TwoLinesLayout.Label"; +_label1 = _l_marcas.getTwoLinesLayout().Label; + //BA.debugLineNum = 3228;BA.debugLine="label1.TextSize = 13"; +_label1.setTextSize((float) (13)); + //BA.debugLineNum = 3229;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 3230;BA.debugLine="Dim Label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 3231;BA.debugLine="Label2 = L_MARCAS.TwoLinesLayout.SecondLabel"; +_label2 = _l_marcas.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 3232;BA.debugLine="Label2.TextSize = 13"; +_label2.setTextSize((float) (13)); + //BA.debugLineNum = 3233;BA.debugLine="Label2.TextColor = Colors.Black"; +_label2.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 3234;BA.debugLine="L_MARCAS.AddTwoLines(d.GetString(\"CLIENTE\"),\"TE"; +_l_marcas.AddTwoLines(BA.ObjectToCharSequence(_d.GetString("CLIENTE")),BA.ObjectToCharSequence("TELEFONO :"+_c.GetString("HE_RES"))); + //BA.debugLineNum = 3235;BA.debugLine="c.Close"; +_c.Close(); + } +}; + }; + //BA.debugLineNum = 3238;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3240;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 and pe_proid in (Select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_TIPO = ? )"),new String[]{"RTEC"}))); + //BA.debugLineNum = 3241;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3242;BA.debugLine="l_monto_k.Text = c.GetString(\"MONTO_DIA\")"; +_l_monto_k.setText(BA.ObjectToCharSequence(_c.GetString("MONTO_DIA"))); + //BA.debugLineNum = 3243;BA.debugLine="If l_monto_k.Text = \"null\" Then"; +if ((_l_monto_k.getText()).equals("null")) { + //BA.debugLineNum = 3244;BA.debugLine="l_monto_k.Text = \"0\""; +_l_monto_k.setText(BA.ObjectToCharSequence("0")); + }; + //BA.debugLineNum = 3246;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3248;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 and pe_proid in (Select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_TIPO = ? )"),new String[]{"PING"}))); + //BA.debugLineNum = 3249;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3250;BA.debugLine="l_monto_kp.Text = c.GetString(\"MONTO_DIA\")"; +_l_monto_kp.setText(BA.ObjectToCharSequence(_c.GetString("MONTO_DIA"))); + //BA.debugLineNum = 3251;BA.debugLine="If l_monto_kp.Text = \"null\" Then"; +if ((_l_monto_kp.getText()).equals("null")) { + //BA.debugLineNum = 3252;BA.debugLine="l_monto_kp.Text = \"0\""; +_l_monto_kp.setText(BA.ObjectToCharSequence("0")); + }; + //BA.debugLineNum = 3254;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3264;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select sum(P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 "))); + //BA.debugLineNum = 3265;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3266;BA.debugLine="l_monto_ks.Text = c.GetString(\"MONTO_DIA\")"; +_l_monto_ks.setText(BA.ObjectToCharSequence(_c.GetString("MONTO_DIA"))); + //BA.debugLineNum = 3267;BA.debugLine="If l_monto_ks.Text = \"null\" Then"; +if ((_l_monto_ks.getText()).equals("null")) { + //BA.debugLineNum = 3268;BA.debugLine="l_monto_ks.Text = \"0\""; +_l_monto_ks.setText(BA.ObjectToCharSequence("0")); + }; + //BA.debugLineNum = 3270;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3295;BA.debugLine="Private s3 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3297;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 3298;BA.debugLine="Private total1 As String = 0"; +_total1 = BA.NumberToString(0); + //BA.debugLineNum = 3299;BA.debugLine="For i = 0 To s3.RowCount - 1"; +{ +final int step60 = 1; +final int limit60 = (int) (_s3.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit60 ;_i = _i + step60 ) { + //BA.debugLineNum = 3300;BA.debugLine="s3.Position = i"; +_s3.setPosition(_i); + //BA.debugLineNum = 3302;BA.debugLine="total1 = total1 + Subs.calculaTotalConPromoXRan"; +_total1 = BA.NumberToString((double)(Double.parseDouble(_total1))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3306;BA.debugLine="L_REAL.Text = NumberFormat2( total1,0,2,2,False)"; +_l_real.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total1)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3308;BA.debugLine="L_REAL.Text = 0"; +_l_real.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3312;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3314;BA.debugLine="If s5.RowCount > 0 Then"; +if (_s5.getRowCount()>0) { + //BA.debugLineNum = 3315;BA.debugLine="Private total4 As String = 0"; +_total4 = BA.NumberToString(0); + //BA.debugLineNum = 3316;BA.debugLine="For i = 0 To s5.RowCount - 1"; +{ +final int step71 = 1; +final int limit71 = (int) (_s5.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit71 ;_i = _i + step71 ) { + //BA.debugLineNum = 3317;BA.debugLine="s5.Position = i"; +_s5.setPosition(_i); + //BA.debugLineNum = 3319;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan"; +_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_s5.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3323;BA.debugLine="l_preacordada.Text = NumberFormat2(total4,0,2,2,"; +_l_preacordada.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3325;BA.debugLine="l_preacordada.Text = 0"; +_l_preacordada.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3328;BA.debugLine="Private s6 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3330;BA.debugLine="If s6.RowCount > 0 Then"; +if (_s6.getRowCount()>0) { + //BA.debugLineNum = 3331;BA.debugLine="Private total3 As String = 0"; +_total3 = BA.NumberToString(0); + //BA.debugLineNum = 3332;BA.debugLine="For i = 0 To s6.RowCount - 1"; +{ +final int step82 = 1; +final int limit82 = (int) (_s6.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit82 ;_i = _i + step82 ) { + //BA.debugLineNum = 3333;BA.debugLine="s6.Position = i"; +_s6.setPosition(_i); + //BA.debugLineNum = 3335;BA.debugLine="total3 = total3 + Subs.calculaTotalConPromoXRan"; +_total3 = BA.NumberToString((double)(Double.parseDouble(_total3))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_s6.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3339;BA.debugLine="l_prevtotal.Text = NumberFormat2(total3,0,2,2,Fa"; +_l_prevtotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total3)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3341;BA.debugLine="l_prevtotal.Text = 0"; +_l_prevtotal.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3358;BA.debugLine="Private ru_o As Cursor = B4XPages.MainPage.skmt.E"; +_ru_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ru_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT distinct pe_cliente, pe_ruta FROM PEDIDO LEFT JOIN RUTA_SUPLENCIA ON PE_RUTA = RS_RUTA WHERE RS_RUTA IS NULL",(String[])(__c.Null)))); + //BA.debugLineNum = 3360;BA.debugLine="Log(\"##### \" & ru_o.RowCount)"; +__c.LogImpl("34784289","##### "+BA.NumberToString(_ru_o.getRowCount()),0); + //BA.debugLineNum = 3361;BA.debugLine="Private total2 As String = 0"; +_total2 = BA.NumberToString(0); + //BA.debugLineNum = 3362;BA.debugLine="If ru_o.RowCount > 0 Then"; +if (_ru_o.getRowCount()>0) { + //BA.debugLineNum = 3363;BA.debugLine="For i2 = 0 To ru_o.RowCount - 1"; +{ +final int step94 = 1; +final int limit94 = (int) (_ru_o.getRowCount()-1); +_i2 = (int) (0) ; +for (;_i2 <= limit94 ;_i2 = _i2 + step94 ) { + //BA.debugLineNum = 3364;BA.debugLine="ru_o.Position = i2"; +_ru_o.setPosition(_i2); + //BA.debugLineNum = 3366;BA.debugLine="Private rutOr As String = ru_o.GetString(\"PE_RU"; +_rutor = _ru_o.GetString("PE_RUTA"); + //BA.debugLineNum = 3368;BA.debugLine="total2 = total2 + Subs.calculaTotalConPromoXRan"; +_total2 = BA.NumberToString((double)(Double.parseDouble(_total2))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_ru_o.GetString("PE_CLIENTE"))))); + } +}; + }; + //BA.debugLineNum = 3372;BA.debugLine="l_ru_pri.Text = NumberFormat2(total2,0,2,2,False)"; +_l_ru_pri.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total2)),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 3375;BA.debugLine="Private ru_s As Cursor = B4XPages.MainPage.skmt.E"; +_ru_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ru_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT IFNULL(PE_RUTA, 0) As PE_RUTA, IFNULL(SUM(PE_COSTO_TOT), 0) As TOTAL_CLIE FROM PEDIDO LEFT JOIN RUTA_SUPLENCIA ON PE_RUTA = RS_RUTA WHERE RS_RUTA Is Not Null",(String[])(__c.Null)))); + //BA.debugLineNum = 3376;BA.debugLine="ru_s.Position = 0"; +_ru_s.setPosition((int) (0)); + //BA.debugLineNum = 3377;BA.debugLine="If ru_s.GetString(\"PE_RUTA\") = 0 Then"; +if ((_ru_s.GetString("PE_RUTA")).equals(BA.NumberToString(0))) { + }else { + //BA.debugLineNum = 3380;BA.debugLine="Private RuSu As String = ru_s.GetString(\"PE_RUTA"; +_rusu = _ru_s.GetString("PE_RUTA"); + //BA.debugLineNum = 3382;BA.debugLine="ru_s.Position = 0"; +_ru_s.setPosition((int) (0)); + //BA.debugLineNum = 3383;BA.debugLine="l_ru_sup.Text = NumberFormat2(ru_s.GetDouble(\"TO"; +_l_ru_sup.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_ru_s.GetDouble("TOTAL_CLIE"),(int) (0),(int) (2),(int) (2),__c.False))); + }; + //BA.debugLineNum = 3385;BA.debugLine="ru_s.Close"; +_ru_s.Close(); + //BA.debugLineNum = 3387;BA.debugLine="Dim cuantos_obj As String"; +_cuantos_obj = ""; + //BA.debugLineNum = 3388;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select count"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) AS TOTAL from HIST_MARCAS_CUOTAS "))); + //BA.debugLineNum = 3389;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3390;BA.debugLine="cuantos_obj = c.GetString(\"TOTAL\")"; +_cuantos_obj = _c.GetString("TOTAL"); + //BA.debugLineNum = 3391;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3393;BA.debugLine="If cuantos_obj > 0 Then"; +if ((double)(Double.parseDouble(_cuantos_obj))>0) { + //BA.debugLineNum = 3394;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select SUM("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select SUM(HMC_TOTAL) AS TOTAL from HIST_MARCAS_CUOTAS "))); + //BA.debugLineNum = 3395;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3396;BA.debugLine="If c.GetString(\"TOTAL\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("TOTAL")))>0) { + //BA.debugLineNum = 3397;BA.debugLine="L_NES.Text = Round(c.GetString(\"TOTAL\") / 25)"; +_l_nes.setText(BA.ObjectToCharSequence(__c.Round((double)(Double.parseDouble(_c.GetString("TOTAL")))/(double)25))); + }else { + //BA.debugLineNum = 3399;BA.debugLine="L_NES.Text = c.GetString(\"TOTAL\")"; +_l_nes.setText(BA.ObjectToCharSequence(_c.GetString("TOTAL"))); + }; + //BA.debugLineNum = 3401;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 3404;BA.debugLine="Log(L_NES.Text)"; +__c.LogImpl("34784333",_l_nes.getText(),0); + //BA.debugLineNum = 3405;BA.debugLine="Log(L_REAL.Text)"; +__c.LogImpl("34784334",_l_real.getText(),0); + //BA.debugLineNum = 3409;BA.debugLine="L_ALCANCE.Text = Round2((L_NES.Text / L_REAL.Text"; +_l_alcance.setText(BA.ObjectToCharSequence(__c.Round2(((double)(Double.parseDouble(_l_nes.getText()))/(double)(double)(Double.parseDouble(_l_real.getText()))+1),(int) (2)))); + //BA.debugLineNum = 3410;BA.debugLine="L_VPLAN.Text = l_porvisitar.Text"; +_l_vplan.setText(BA.ObjectToCharSequence(_l_porvisitar.getText())); + //BA.debugLineNum = 3411;BA.debugLine="L_VREAL.Text = L_CUANTOST.text"; +_l_vreal.setText(BA.ObjectToCharSequence(_l_cuantost.getText())); + //BA.debugLineNum = 3412;BA.debugLine="L_EFEC_VIS.Text = Round2(L_VREAL.text / L_VPLAN.T"; +_l_efec_vis.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_vreal.getText()))/(double)(double)(Double.parseDouble(_l_vplan.getText())),(int) (2)))); + //BA.debugLineNum = 3413;BA.debugLine="L_VISITCC.Text = l_cuantosc.text"; +_l_visitcc.setText(BA.ObjectToCharSequence(_l_cuantosc.getText())); + //BA.debugLineNum = 3414;BA.debugLine="L_EFEC_PV.Text = Round2(L_VISITCC.Text / L_VREAL."; +_l_efec_pv.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_visitcc.getText()))/(double)(double)(Double.parseDouble(_l_vreal.getText())),(int) (2)))); + //BA.debugLineNum = 3415;BA.debugLine="L_EFEC_PURA.Text = Round2(L_VISITCC.Text / L_VPLA"; +_l_efec_pura.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_visitcc.getText()))/(double)(double)(Double.parseDouble(_l_vplan.getText())),(int) (2)))); + //BA.debugLineNum = 3416;BA.debugLine="l_preventa.Text = Subs.calculaTotalConPromoXRango"; +_l_preventa.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 3417;BA.debugLine="l_futura.Text = Subs.calculaTotalConPromoXRango1("; +_l_futura.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 3418;BA.debugLine="L_LIN_TICK.Text = LPT"; +_l_lin_tick.setText(BA.ObjectToCharSequence(_lpt)); + //BA.debugLineNum = 3419;BA.debugLine="If l_monto_ks.Text <> \"0\" Then"; +if ((_l_monto_ks.getText()).equals("0") == false) { + //BA.debugLineNum = 3420;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select COU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("Select COUNT(DISTINCT(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = ? ",new String[]{_almacen}))); + //BA.debugLineNum = 3421;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3422;BA.debugLine="L_CTE_PROMO.Text = c.GetString(\"CUANTOS\")"; +_l_cte_promo.setText(BA.ObjectToCharSequence(_c.GetString("CUANTOS"))); + //BA.debugLineNum = 3423;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3424;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_TIPOPROD = ?) "),new String[]{"PRIORITARIO"}))); + //BA.debugLineNum = 3425;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3434;BA.debugLine="L_PRIO.Text = d.GetString(\"MONTO_DIA\")"; +_l_prio.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA"))); + //BA.debugLineNum = 3435;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3437;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_TIPOPROD = ?) "),new String[]{"ESTRATEGICO"}))); + //BA.debugLineNum = 3438;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3439;BA.debugLine="L_SECUND.Text =d.GetString(\"MONTO_DIA\")"; +_l_secund.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA"))); + //BA.debugLineNum = 3440;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3442;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2($\"Select sum"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_TIPOPROD = ?) "),new String[]{"COMPLEMENTARIO"}))); + //BA.debugLineNum = 3443;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3444;BA.debugLine="L_COMP.Text =d.GetString(\"MONTO_DIA\")"; +_l_comp.setText(BA.ObjectToCharSequence(_d.GetString("MONTO_DIA"))); + //BA.debugLineNum = 3445;BA.debugLine="d.Close"; +_d.Close(); + }else { + //BA.debugLineNum = 3447;BA.debugLine="L_PRIO.Text = \"0\""; +_l_prio.setText(BA.ObjectToCharSequence("0")); + //BA.debugLineNum = 3448;BA.debugLine="L_SECUND.Text = \"0\""; +_l_secund.setText(BA.ObjectToCharSequence("0")); + //BA.debugLineNum = 3449;BA.debugLine="L_COMP.Text = \"0\""; +_l_comp.setText(BA.ObjectToCharSequence("0")); + }; + //BA.debugLineNum = 3452;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select COUNT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID "))); + //BA.debugLineNum = 3453;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 3454;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 3455;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select sum("; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select sum(pe_cant) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID "))); + //BA.debugLineNum = 3456;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3457;BA.debugLine="L_CTE_PROMO.Text = d.GetString(\"CUANTOS\")"; +_l_cte_promo.setText(BA.ObjectToCharSequence(_d.GetString("CUANTOS"))); + //BA.debugLineNum = 3458;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3459;BA.debugLine="L_REDEN_PROMO.TEXT = Round2(L_VISITCC.Text / L_C"; +_l_reden_promo.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_visitcc.getText()))/(double)(double)(Double.parseDouble(_l_cte_promo.getText())),(int) (2)))); + }else { + //BA.debugLineNum = 3461;BA.debugLine="L_CTE_PROMO.Text = 0"; +_l_cte_promo.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3462;BA.debugLine="L_REDEN_PROMO.Text = 0"; +_l_reden_promo.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3464;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3465;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select COUNT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select COUNT(*) AS CUANTOS FROM PEDIDO "))); + //BA.debugLineNum = 3466;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3467;BA.debugLine="L_LIN_TICK.Text = Round2(d.GetString(\"CUANTOS\") /"; +_l_lin_tick.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_d.GetString("CUANTOS")))/(double)(double)(Double.parseDouble(_l_visitcc.getText())),(int) (2)))); + //BA.debugLineNum = 3468;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3470;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select count"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from HIST_CUOTAS "))); + //BA.debugLineNum = 3471;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 3472;BA.debugLine="If d.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_d.GetString("CUANTOS")))>0) { + }else { + //BA.debugLineNum = 3480;BA.debugLine="l_monto_c1.Text = 4000"; +_l_monto_c1.setText(BA.ObjectToCharSequence(4000)); + //BA.debugLineNum = 3481;BA.debugLine="l_monto_c2.Text = 2000"; +_l_monto_c2.setText(BA.ObjectToCharSequence(2000)); + //BA.debugLineNum = 3482;BA.debugLine="l_monto_c3.Text = 1000"; +_l_monto_c3.setText(BA.ObjectToCharSequence(1000)); + }; + //BA.debugLineNum = 3484;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 3489;BA.debugLine="Private s3 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3491;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 3492;BA.debugLine="Private total1 As String = 0"; +_total1 = BA.NumberToString(0); + //BA.debugLineNum = 3493;BA.debugLine="For i = 0 To s3.RowCount - 1"; +{ +final int step188 = 1; +final int limit188 = (int) (_s3.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit188 ;_i = _i + step188 ) { + //BA.debugLineNum = 3494;BA.debugLine="s3.Position = i"; +_s3.setPosition(_i); + //BA.debugLineNum = 3496;BA.debugLine="total1 = total1 + Subs.calculaTotalConPromoXRan"; +_total1 = BA.NumberToString((double)(Double.parseDouble(_total1))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango /*String*/ (ba,_s3.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3500;BA.debugLine="L_REAL.Text = NumberFormat2( total1,0,2,2,False)"; +_l_real.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total1)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3502;BA.debugLine="L_REAL.Text = 0"; +_l_real.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3506;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3508;BA.debugLine="If s5.RowCount > 0 Then"; +if (_s5.getRowCount()>0) { + //BA.debugLineNum = 3509;BA.debugLine="Private total4 As String = 0"; +_total4 = BA.NumberToString(0); + //BA.debugLineNum = 3510;BA.debugLine="For i = 0 To s5.RowCount - 1"; +{ +final int step199 = 1; +final int limit199 = (int) (_s5.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit199 ;_i = _i + step199 ) { + //BA.debugLineNum = 3511;BA.debugLine="s5.Position = i"; +_s5.setPosition(_i); + //BA.debugLineNum = 3513;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan"; +_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango1 /*String*/ (ba,_s5.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3517;BA.debugLine="l_preacordada.Text = NumberFormat2(total4,0,2,2,"; +_l_preacordada.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3519;BA.debugLine="l_preacordada.Text = 0"; +_l_preacordada.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3522;BA.debugLine="Private s6 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3524;BA.debugLine="If s6.RowCount > 0 Then"; +if (_s6.getRowCount()>0) { + //BA.debugLineNum = 3525;BA.debugLine="Private total3 As String = 0"; +_total3 = BA.NumberToString(0); + //BA.debugLineNum = 3526;BA.debugLine="For i = 0 To s6.RowCount - 1"; +{ +final int step210 = 1; +final int limit210 = (int) (_s6.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit210 ;_i = _i + step210 ) { + //BA.debugLineNum = 3527;BA.debugLine="s6.Position = i"; +_s6.setPosition(_i); + //BA.debugLineNum = 3529;BA.debugLine="total3 = total3 + Subs.calculaTotalConPromoXRan"; +_total3 = BA.NumberToString((double)(Double.parseDouble(_total3))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango2 /*String*/ (ba,_s6.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3533;BA.debugLine="l_prevtotal.Text = NumberFormat2(total3,0,2,2,Fa"; +_l_prevtotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total3)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3535;BA.debugLine="l_prevtotal.Text = 0"; +_l_prevtotal.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3539;BA.debugLine="Private s7 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select Ifnull(SUM(PE_CANT),0) AS PE_CANT, PE_PROID FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO') GROUP BY PE_PROID"))); + //BA.debugLineNum = 3540;BA.debugLine="If s7.RowCount > 0 Then"; +if (_s7.getRowCount()>0) { + //BA.debugLineNum = 3541;BA.debugLine="Dim totalstick As Int = 0"; +_totalstick = (int) (0); + //BA.debugLineNum = 3542;BA.debugLine="For sfsdf = 0 To s7.RowCount -1"; +{ +final int step221 = 1; +final int limit221 = (int) (_s7.getRowCount()-1); +_sfsdf = (int) (0) ; +for (;_sfsdf <= limit221 ;_sfsdf = _sfsdf + step221 ) { + //BA.debugLineNum = 3543;BA.debugLine="s7.Position= sfsdf"; +_s7.setPosition(_sfsdf); + //BA.debugLineNum = 3544;BA.debugLine="Log(\"ENTRE AQUI\")"; +__c.LogImpl("34784473","ENTRE AQUI",0); + //BA.debugLineNum = 3545;BA.debugLine="Dim s8 As Cursor = B4XPages.MainPage.skmt.ExecQ"; +_s8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s8 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_CONVERSION3 FROM CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_s7.GetString("PE_PROID")))+"'")))); + //BA.debugLineNum = 3546;BA.debugLine="s8.Position = 0"; +_s8.setPosition((int) (0)); + //BA.debugLineNum = 3547;BA.debugLine="totalstick = totalstick + (s7.GetString(\"PE_CAN"; +_totalstick = (int) (_totalstick+((double)(Double.parseDouble(_s7.GetString("PE_CANT")))*(double)(Double.parseDouble(_s8.GetString("CAT_GP_CONVERSION3"))))); + } +}; + //BA.debugLineNum = 3549;BA.debugLine="Dim totaltotaltot As Int = totalstick/200"; +_totaltotaltot = (int) (_totalstick/(double)200); + //BA.debugLineNum = 3550;BA.debugLine="l_ru_pri.Text = totaltotaltot"; +_l_ru_pri.setText(BA.ObjectToCharSequence(_totaltotaltot)); + }else { + //BA.debugLineNum = 3552;BA.debugLine="l_ru_pri.Text = 0"; +_l_ru_pri.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3555;BA.debugLine="Private s0 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s0 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s0 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select Ifnull(SUM(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP')"))); + //BA.debugLineNum = 3556;BA.debugLine="If s0.RowCount > 0 Then"; +if (_s0.getRowCount()>0) { + //BA.debugLineNum = 3558;BA.debugLine="s0.Position = 0"; +_s0.setPosition((int) (0)); + //BA.debugLineNum = 3559;BA.debugLine="Log(s0.GetString(\"PE_CANT\"))"; +__c.LogImpl("34784488",_s0.GetString("PE_CANT"),0); + //BA.debugLineNum = 3560;BA.debugLine="L_REAL.Text = s0.GetString(\"PE_CANT\")"; +_l_real.setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT"))); + }else { + //BA.debugLineNum = 3562;BA.debugLine="L_REAL.Text = 0"; +_l_real.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3565;BA.debugLine="L_NES.Text = 0"; +_l_nes.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3566;BA.debugLine="l_ru_sup.Text = 0"; +_l_ru_sup.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3567;BA.debugLine="L_ALCANCE.Text = 0"; +_l_alcance.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3568;BA.debugLine="L_VPLAN.Text = 0"; +_l_vplan.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3569;BA.debugLine="L_VREAL.Text = 0"; +_l_vreal.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3570;BA.debugLine="L_EFEC_VIS.Text = 0"; +_l_efec_vis.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3571;BA.debugLine="L_VISITCC.Text = 0"; +_l_visitcc.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3572;BA.debugLine="L_EFEC_PV.Text = 0"; +_l_efec_pv.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3573;BA.debugLine="L_EFEC_PURA.Text = 0"; +_l_efec_pura.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3574;BA.debugLine="l_preventa.Text = 0"; +_l_preventa.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3575;BA.debugLine="l_futura.Text = 0"; +_l_futura.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3576;BA.debugLine="Label13.Text = 0"; +_label13.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3577;BA.debugLine="Label19.Text = 0"; +_label19.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3578;BA.debugLine="Label21.Text = 0"; +_label21.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 3581;BA.debugLine="Private s0 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s0 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s0 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(PE_CLIENTE)) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO')"))); + //BA.debugLineNum = 3582;BA.debugLine="If s0.RowCount > 0 Then"; +if (_s0.getRowCount()>0) { + //BA.debugLineNum = 3583;BA.debugLine="s0.Position = 0"; +_s0.setPosition((int) (0)); + //BA.debugLineNum = 3584;BA.debugLine="Log(s0.GetString(\"PE_CANT\"))"; +__c.LogImpl("34784513",_s0.GetString("PE_CANT"),0); + //BA.debugLineNum = 3585;BA.debugLine="Label33.Text = s0.GetString(\"PE_CANT\")"; +_label33.setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT"))); + }else { + //BA.debugLineNum = 3587;BA.debugLine="Label33.Text = 0"; +_label33.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3590;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3592;BA.debugLine="If s5.RowCount > 0 Then"; +if (_s5.getRowCount()>0) { + //BA.debugLineNum = 3593;BA.debugLine="Private total4 As String = 0"; +_total4 = BA.NumberToString(0); + //BA.debugLineNum = 3594;BA.debugLine="For i = 0 To s5.RowCount - 1"; +{ +final int step266 = 1; +final int limit266 = (int) (_s5.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit266 ;_i = _i + step266 ) { + //BA.debugLineNum = 3595;BA.debugLine="s5.Position = i"; +_s5.setPosition(_i); + //BA.debugLineNum = 3597;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan"; +_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango5 /*String*/ (ba,_s5.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3601;BA.debugLine="Label35.Text = NumberFormat2(total4,0,2,2,False)"; +_label35.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3603;BA.debugLine="Label35.Text = 0"; +_label35.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3606;BA.debugLine="Private s0 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s0 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s0 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(PE_CLIENTE)) AS PE_CANT FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP')"))); + //BA.debugLineNum = 3607;BA.debugLine="If s0.RowCount > 0 Then"; +if (_s0.getRowCount()>0) { + //BA.debugLineNum = 3608;BA.debugLine="s0.Position = 0"; +_s0.setPosition((int) (0)); + //BA.debugLineNum = 3609;BA.debugLine="Log(s0.GetString(\"PE_CANT\"))"; +__c.LogImpl("34784538",_s0.GetString("PE_CANT"),0); + //BA.debugLineNum = 3610;BA.debugLine="Label43.Text = s0.GetString(\"PE_CANT\")"; +_label43.setText(BA.ObjectToCharSequence(_s0.GetString("PE_CANT"))); + }else { + //BA.debugLineNum = 3612;BA.debugLine="Label43.Text = 0"; +_label43.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3615;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(pe_cliente) FROM PEDIDO"))); + //BA.debugLineNum = 3617;BA.debugLine="If s5.RowCount > 0 Then"; +if (_s5.getRowCount()>0) { + //BA.debugLineNum = 3618;BA.debugLine="Private total4 As String = 0"; +_total4 = BA.NumberToString(0); + //BA.debugLineNum = 3619;BA.debugLine="For i = 0 To s5.RowCount - 1"; +{ +final int step285 = 1; +final int limit285 = (int) (_s5.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit285 ;_i = _i + step285 ) { + //BA.debugLineNum = 3620;BA.debugLine="s5.Position = i"; +_s5.setPosition(_i); + //BA.debugLineNum = 3622;BA.debugLine="total4 = total4 + Subs.calculaTotalConPromoXRan"; +_total4 = BA.NumberToString((double)(Double.parseDouble(_total4))+(double)(Double.parseDouble(_subs._calculatotalconpromoxrango6 /*String*/ (ba,_s5.GetString("PE_CLIENTE"))))); + } +}; + //BA.debugLineNum = 3626;BA.debugLine="Label51.Text = NumberFormat2(total4,0,2,2,False)"; +_label51.setText(BA.ObjectToCharSequence(__c.NumberFormat2((double)(Double.parseDouble(_total4)),(int) (0),(int) (2),(int) (2),__c.False))); + }else { + //BA.debugLineNum = 3628;BA.debugLine="Label51.Text = 0"; +_label51.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 3631;BA.debugLine="End Sub"; +return ""; +} +public String _resumen_click() throws Exception{ + //BA.debugLineNum = 3180;BA.debugLine="Sub Resumen_Click"; + //BA.debugLineNum = 3181;BA.debugLine="P_RESUMEN.Visible = True"; +_p_resumen.setVisible(__c.True); + //BA.debugLineNum = 3189;BA.debugLine="End Sub"; +return ""; +} +public String _subir_click() throws Exception{ +int _i = 0; +int _dia = 0; +String _dialetra = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _fotomostrar1 = null; +byte[] _fotoenvio = null; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _h = null; +String _eventob = ""; +String _clienteb = ""; +String _finb = ""; +String _nombrecliente = ""; +String _rutaactual = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _x1 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null; + //BA.debugLineNum = 635;BA.debugLine="Sub Subir_Click"; + //BA.debugLineNum = 636;BA.debugLine="checaPedido"; +_checapedido(); + //BA.debugLineNum = 637;BA.debugLine="CARGA = \"SUBIR\""; +_carga = "SUBIR"; + //BA.debugLineNum = 638;BA.debugLine="P1.Visible = True"; +_p1.setVisible(__c.True); + //BA.debugLineNum = 639;BA.debugLine="P1.BringToFront"; +_p1.BringToFront(); + //BA.debugLineNum = 641;BA.debugLine="NUEVO.Visible =False"; +_nuevo.setVisible(__c.False); + //BA.debugLineNum = 642;BA.debugLine="BUSCA.Visible=False"; +_busca.setVisible(__c.False); + //BA.debugLineNum = 643;BA.debugLine="connecta.Visible=False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 644;BA.debugLine="Subir.Visible=False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 645;BA.debugLine="cargar.Visible=False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 646;BA.debugLine="L_P_1.Visible = False"; +_l_p_1.setVisible(__c.False); + //BA.debugLineNum = 647;BA.debugLine="S_CC.Visible = False"; +_s_cc.setVisible(__c.False); + //BA.debugLineNum = 648;BA.debugLine="L_P_3.Visible = False"; +_l_p_3.setVisible(__c.False); + //BA.debugLineNum = 649;BA.debugLine="S_CH.Visible = False"; +_s_ch.setVisible(__c.False); + //BA.debugLineNum = 650;BA.debugLine="PB1.Visible = False"; +_pb1.setVisible(__c.False); + //BA.debugLineNum = 651;BA.debugLine="Resumen.Visible= False"; +_resumen.setVisible(__c.False); + //BA.debugLineNum = 652;BA.debugLine="l_visitartotal.Visible = False"; +_l_visitartotal.setVisible(__c.False); + //BA.debugLineNum = 653;BA.debugLine="de.Visible = False"; +_de.setVisible(__c.False); + //BA.debugLineNum = 654;BA.debugLine="l_faltan.Visible = False"; +_l_faltan.setVisible(__c.False); + //BA.debugLineNum = 655;BA.debugLine="l_visitas.Visible = False"; +_l_visitas.setVisible(__c.False); + //BA.debugLineNum = 657;BA.debugLine="p_principal.Visible = False"; +_p_principal.setVisible(__c.False); + //BA.debugLineNum = 658;BA.debugLine="Subs.panelVisible(P1, 0, 0)"; +_subs._panelvisible /*String*/ (ba,_p1,(int) (0),(int) (0)); + //BA.debugLineNum = 659;BA.debugLine="Subs.centraPanel(P1, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p1,_root.getWidth()); + //BA.debugLineNum = 660;BA.debugLine="Subs.centraPanelV(P1, Root.Height)"; +_subs._centrapanelv /*String*/ (ba,_p1,_root.getHeight()); + //BA.debugLineNum = 661;BA.debugLine="B4XPages.MainPage.reqManager.trackInit"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._trackinit /*String*/ (); + //BA.debugLineNum = 663;BA.debugLine="L_P_2.Text = \"Envio de Pedidos\""; +_l_p_2.setText(BA.ObjectToCharSequence("Envio de Pedidos")); + //BA.debugLineNum = 664;BA.debugLine="L_P_3.Text = \"Envio de Pedidos\""; +_l_p_3.setText(BA.ObjectToCharSequence("Envio de Pedidos")); + //BA.debugLineNum = 665;BA.debugLine="S_CH.Text = \"EN PROCESO\""; +_s_ch.setText(BA.ObjectToCharSequence("EN PROCESO")); + //BA.debugLineNum = 666;BA.debugLine="S_CP.Text = \"EN PROCESO\""; +_s_cp.setText(BA.ObjectToCharSequence("EN PROCESO")); + //BA.debugLineNum = 667;BA.debugLine="B_OK_PAS.Text = \"ENVIANDO\""; +_b_ok_pas.setText(BA.ObjectToCharSequence("ENVIANDO")); + //BA.debugLineNum = 668;BA.debugLine="PB1.Progress = 0"; +_pb1.setProgress((int) (0)); + //BA.debugLineNum = 669;BA.debugLine="PB2.Progress = 0"; +_pb2.setProgress((int) (0)); + //BA.debugLineNum = 675;BA.debugLine="PASO = 1"; +_paso = BA.NumberToString(1); + //BA.debugLineNum = 677;BA.debugLine="If PASO =1 Then"; +if ((_paso).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 678;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE not In (select PE_CLIENTE from pedido)"); + //BA.debugLineNum = 679;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 680;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 681;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 682;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 683;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HGDAT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS"))); + //BA.debugLineNum = 684;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 685;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step41 = 1; +final int limit41 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit41 ;_i = _i + step41 ) { + //BA.debugLineNum = 686;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 687;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 688;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 689;BA.debugLine="cmd.Name = \"UPDATE_GUNA_ACTUAL2_GPS\""; +_cmd.Name /*String*/ = "UPDATE_GUNA_ACTUAL2_GPS"; + //BA.debugLineNum = 690;BA.debugLine="cmd.Parameters = Array As Object(NumberFormat2"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(__c.NumberFormat2((double)(Double.parseDouble(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ )),(int) (0),(int) (2),(int) (2),__c.False)),(Object)(_l_cuantost.getText()),(Object)(_l_cuantosc.getText()),(Object)(_l_porvisitar.getText()),(Object)(_c.GetString("hglat")),(Object)(_c.GetString("hglon")),(Object)(_batterystatus[(int) (0)]),(Object)(_lpt),(Object)(_steyin),(Object)(_steyout),(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 691;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_visitas")); + } +}; + }; + //BA.debugLineNum = 694;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 697;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT, PC_COSTO_SIN, PC_RUTA, PC_ALMACEN, PC_FACTURA FROM PEDIDO_CLIENTE "))); + //BA.debugLineNum = 698;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDOSC FROM PEDIDO_CLIENTE "))); + //BA.debugLineNum = 699;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 700;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step54 = 1; +final int limit54 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit54 ;_i = _i + step54 ) { + //BA.debugLineNum = 701;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 702;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 703;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 704;BA.debugLine="cmd.Name = \"insert_pedidos_GV3\""; +_cmd.Name /*String*/ = "insert_pedidos_GV3"; + //BA.debugLineNum = 705;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PC_CLIENTE")),(Object)(_c.GetString("PC_FECHA")),(Object)(_c.GetString("PC_USER")),(Object)(_c.GetString("PC_NOART")),(Object)(_c.GetString("PC_MONTO")),(Object)(_c.GetString("PC_LON")),(Object)(_c.GetString("PC_LAT")),(Object)(_almacen),(Object)(_l_ruta.getText()),(Object)(_c.GetString("PC_COSTO_SIN")),(Object)(_c.GetString("PC_FACTURA"))}; + //BA.debugLineNum = 706;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedidos")); + } +}; + }; + //BA.debugLineNum = 709;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 710;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 711;BA.debugLine="cuantos_pedidosc = D.GetString(\"CUANTOS_PEDIDOSC"; +_cuantos_pedidosc = _d.GetString("CUANTOS_PEDIDOSC"); + //BA.debugLineNum = 712;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 716;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CODIG"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CODIGOKMTS, CODIGOB, LAT, LON FROM HIST_CODIGO_BARRAS"))); + //BA.debugLineNum = 717;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 718;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step69 = 1; +final int limit69 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit69 ;_i = _i + step69 ) { + //BA.debugLineNum = 719;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 720;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 721;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 722;BA.debugLine="cmd.Name = \"insert_QR_2_GV2\""; +_cmd.Name /*String*/ = "insert_QR_2_GV2"; + //BA.debugLineNum = 723;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CODIGOKMTS")),(Object)(_c.GetString("CODIGOB")),(Object)(_c.GetString("LON")),(Object)(_c.GetString("LAT")),(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 724;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_QR2")); + } +}; + }; + //BA.debugLineNum = 727;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 730;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PLAN_LEALTAD WHERE DESCARGADO IS NULL"))); + //BA.debugLineNum = 731;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 732;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step81 = 1; +final int limit81 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit81 ;_i = _i + step81 ) { + //BA.debugLineNum = 733;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 734;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 735;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 736;BA.debugLine="cmd.Name = \"insert_plan_lealtad_GUNA\""; +_cmd.Name /*String*/ = "insert_plan_lealtad_GUNA"; + //BA.debugLineNum = 737;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PL_BANDERA")),(Object)(_c.GetString("PL_CLIENTE")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))}; + //BA.debugLineNum = 738;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insPlanLealtad")); + } +}; + }; + //BA.debugLineNum = 741;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 744;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT * FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM COMENTARIOS WHERE DESCARGADO IS NULL"))); + //BA.debugLineNum = 745;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 746;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step93 = 1; +final int limit93 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit93 ;_i = _i + step93 ) { + //BA.debugLineNum = 747;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 748;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 749;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 750;BA.debugLine="cmd.Name = \"insert_coments_GUNA\""; +_cmd.Name /*String*/ = "insert_coments_GUNA"; + //BA.debugLineNum = 751;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("COMENTARTIO")),(Object)(_c.GetString("CLIENTE")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))}; + //BA.debugLineNum = 752;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INS_coment")); + } +}; + }; + //BA.debugLineNum = 755;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 757;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CN_ID, CN_FECHA"; +_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 CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, CN_FOTO, CN_ALMACEN, CN_RUTA, CN_GIRO, CN_SOLICITA, CN_COLONIA, CN_TELEFONO, CN_CP FROM CLIENTES_NUEVOS"))); + //BA.debugLineNum = 758;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 759;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step105 = 1; +final int limit105 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit105 ;_i = _i + step105 ) { + //BA.debugLineNum = 760;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 761;BA.debugLine="Dim dia As Int = DateTime.GetDayOfWeek(DateTim"; +_dia = __c.DateTime.GetDayOfWeek(__c.DateTime.getNow()); + //BA.debugLineNum = 762;BA.debugLine="If dia = 2 Then"; +if (_dia==2) { + //BA.debugLineNum = 763;BA.debugLine="Dim dialetra As String = \"LUNES\""; +_dialetra = "LUNES"; + }else if(_dia==3) { + //BA.debugLineNum = 765;BA.debugLine="Dim dialetra As String = \"MARTES\""; +_dialetra = "MARTES"; + }else if(_dia==4) { + //BA.debugLineNum = 767;BA.debugLine="Dim dialetra As String = \"MIERCOLES\""; +_dialetra = "MIERCOLES"; + }else if(_dia==5) { + //BA.debugLineNum = 769;BA.debugLine="Dim dialetra As String = \"JUEVES\""; +_dialetra = "JUEVES"; + }else if(_dia==6) { + //BA.debugLineNum = 771;BA.debugLine="Dim dialetra As String = \"VIERNES\""; +_dialetra = "VIERNES"; + }else if(_dia==7) { + //BA.debugLineNum = 773;BA.debugLine="Dim dialetra As String = \"SABADO\""; +_dialetra = "SABADO"; + }; + //BA.debugLineNum = 775;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 776;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 777;BA.debugLine="cmd.Name = \"insert_clientesnuevos_GUNA\""; +_cmd.Name /*String*/ = "insert_clientesnuevos_GUNA"; + //BA.debugLineNum = 778;BA.debugLine="Log(c.GetString(\"CN_ID\")&\" ,\"& c.GetString("; +__c.LogImpl("33604623",_c.GetString("CN_ID")+" ,"+_c.GetString("CN_FECHA")+" ,"+_c.GetString("CN_USER")+" ,"+_c.GetString("CN_LAT")+" ,"+_c.GetString("CN_LON")+" ,"+_c.GetString("CN_NOMBRE")+" ,"+_c.GetString("CN_DIRECCION")+" ,"+_almacen+_c.GetString("CN_RUTA")+" ,"+"En espera"+_c.GetString("CN_GIRO")+" ,"+_dialetra+_c.GetString("CN_SOLICITA")+" ,"+_c.GetString("CN_COLONIA")+" ,"+_c.GetString("CN_TELEFONO"),0); + //BA.debugLineNum = 779;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CN_ID")),(Object)(_c.GetString("CN_FECHA")),(Object)(_c.GetString("CN_USER")),(Object)(_c.GetString("CN_LAT")),(Object)(_c.GetString("CN_LON")),(Object)(_c.GetString("CN_NOMBRE")),(Object)(_c.GetString("CN_DIRECCION")),(Object)(_almacen),(Object)(_c.GetString("CN_RUTA")),(Object)("En espera"),(Object)(_c.GetString("CN_GIRO")),(Object)(_dialetra),(Object)(_c.GetString("CN_SOLICITA")),(Object)(_c.GetString("CN_COLONIA")),(Object)(_c.GetString("CN_TELEFONO")),(Object)(_c.GetString("CN_CP"))}; + //BA.debugLineNum = 780;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_clientesn")); + } +}; + }; + //BA.debugLineNum = 783;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 785;BA.debugLine="Dim fotomostrar1 As Cursor = Starter.skmt.ExecQu"; +_fotomostrar1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fotomostrar1 = (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_info3 where foto is not NULL"))); + //BA.debugLineNum = 786;BA.debugLine="If fotomostrar1.RowCount>0 Then"; +if (_fotomostrar1.getRowCount()>0) { + //BA.debugLineNum = 787;BA.debugLine="For i=0 To fotomostrar1.RowCount -1"; +{ +final int step132 = 1; +final int limit132 = (int) (_fotomostrar1.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit132 ;_i = _i + step132 ) { + //BA.debugLineNum = 788;BA.debugLine="fotomostrar1.Position=i"; +_fotomostrar1.setPosition(_i); + //BA.debugLineNum = 789;BA.debugLine="Dim fotoenvio() As Byte = fotomostrar1.GetBlob"; +_fotoenvio = _fotomostrar1.GetBlob("foto"); + //BA.debugLineNum = 790;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 791;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 792;BA.debugLine="cmd.Name = \"UPDATE_FOTO_GUNA\""; +_cmd.Name /*String*/ = "UPDATE_FOTO_GUNA"; + //BA.debugLineNum = 793;BA.debugLine="cmd.Parameters = Array As Object(fotoenvio,fot"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_fotoenvio),(Object)(_fotomostrar1.GetString("CAT_CL_CODIGO")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba))}; + //BA.debugLineNum = 794;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("INS_coment")); + } +}; + }; + //BA.debugLineNum = 797;BA.debugLine="fotomostrar1.Close"; +_fotomostrar1.Close(); + //BA.debugLineNum = 799;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_NUM_SERIEFISICO,CAT_CL_CODIGO ,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_FOTO FROM kmt_info3 where CAT_CL_NUM_SERIEFISICO IS NOT NULL and gestion <> '0'"))); + //BA.debugLineNum = 800;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 801;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step145 = 1; +final int limit145 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit145 ;_i = _i + step145 ) { + //BA.debugLineNum = 802;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 805;BA.debugLine="foto1 = c.GetBlob(\"CAT_CL_FOTO\")"; +_foto1 = _c.GetBlob("CAT_CL_FOTO"); + //BA.debugLineNum = 806;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 807;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 808;BA.debugLine="cmd.Name = \"insert_QR_GV2\""; +_cmd.Name /*String*/ = "insert_QR_GV2"; + //BA.debugLineNum = 809;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CAT_CL_NUM_SERIEFISICO")),(Object)(_c.GetString("CAT_CL_CODIGO")),(Object)(_c.GetString("CAT_CL_LONG")),(Object)(_c.GetString("CAT_CL_LAT")),(Object)(_almacen),(Object)(_l_ruta.getText()),(Object)(_foto1)}; + //BA.debugLineNum = 810;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_QR")); + } +}; + }; + //BA.debugLineNum = 813;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 816;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_CL_ATIENDE1, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)"))); + //BA.debugLineNum = 817;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 818;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step158 = 1; +final int limit158 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit158 ;_i = _i + step158 ) { + //BA.debugLineNum = 819;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 820;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 821;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 822;BA.debugLine="cmd.Name = \"update_atiende_guna\""; +_cmd.Name /*String*/ = "update_atiende_guna"; + //BA.debugLineNum = 823;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CAT_CL_ATIENDE1")),(Object)(_c.GetString("CAT_CL_CODIGO")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CAT_CL_CODIGO")))}; + //BA.debugLineNum = 824;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas")); + } +}; + }; + //BA.debugLineNum = 827;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 831;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select * fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from CODIGOS_CREDITO where BANDERA = 1"))); + //BA.debugLineNum = 832;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 833;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step170 = 1; +final int limit170 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit170 ;_i = _i + step170 ) { + //BA.debugLineNum = 834;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 835;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 836;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 837;BA.debugLine="cmd.Name = \"update_ventacredito_guna\""; +_cmd.Name /*String*/ = "update_ventacredito_guna"; + //BA.debugLineNum = 838;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("BANDERA")),(Object)(_c.GetString("CLIENTE")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CLIENTE")))}; + //BA.debugLineNum = 839;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas")); + } +}; + }; + //BA.debugLineNum = 842;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 845;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CAT_CL_TELEFONO, CAT_CL_CODIGO from kmt_info3 where CAT_CL_CODIGO IN (SELECT CLIENTE FROM ATIENDE)"))); + //BA.debugLineNum = 846;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 847;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step182 = 1; +final int limit182 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit182 ;_i = _i + step182 ) { + //BA.debugLineNum = 848;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 849;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 850;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 851;BA.debugLine="cmd.Name = \"update_telefono_guna\""; +_cmd.Name /*String*/ = "update_telefono_guna"; + //BA.debugLineNum = 852;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CAT_CL_TELEFONO")),(Object)(_c.GetString("CAT_CL_CODIGO")),(Object)(_almacen),(Object)(_subs._traeruta2 /*String*/ (ba,_c.GetString("CAT_CL_CODIGO")))}; + //BA.debugLineNum = 853;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("up_coordenadas")); + } +}; + }; + //BA.debugLineNum = 856;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 859;BA.debugLine="Private h As ResultSet = B4XPages.MainPage.skmt."; +_h = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_h = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from bitacoraGPS")))); + //BA.debugLineNum = 860;BA.debugLine="Do While h.nextrow"; +while (_h.NextRow()) { + //BA.debugLineNum = 861;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 862;BA.debugLine="Private eventob As String = h.GetString(\"evento"; +_eventob = _h.GetString("eventob"); + //BA.debugLineNum = 863;BA.debugLine="cmd.Name = \"mandaBitacora3_GUNA\""; +_cmd.Name /*String*/ = "mandaBitacora3_GUNA"; + //BA.debugLineNum = 865;BA.debugLine="Private clienteb As String = h.GetString(\"clien"; +_clienteb = _h.GetString("clienteb"); + //BA.debugLineNum = 866;BA.debugLine="Private finb As String = h.GetString(\"finb\")"; +_finb = _h.GetString("finb"); + //BA.debugLineNum = 867;BA.debugLine="Private nombreCliente As String =Subs. traeNomb"; +_nombrecliente = _subs._traenombrecliente /*String*/ (ba,_h.GetString("clienteb")); + //BA.debugLineNum = 868;BA.debugLine="If eventob = \"Llega a almacen\" Then"; +if ((_eventob).equals("Llega a almacen")) { + //BA.debugLineNum = 869;BA.debugLine="nombreCliente = \"BOLETA\""; +_nombrecliente = "BOLETA"; + //BA.debugLineNum = 870;BA.debugLine="clienteb = \"\""; +_clienteb = ""; + //BA.debugLineNum = 871;BA.debugLine="finb = h.GetString(\"iniciob\")"; +_finb = _h.GetString("iniciob"); + }; + //BA.debugLineNum = 875;BA.debugLine="If eventob = \"Salida almacen\" Then nombreClient"; +if ((_eventob).equals("Salida almacen")) { +_nombrecliente = "CHECKLIST";}; + //BA.debugLineNum = 876;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FI"; +if ((_eventob).equals("Fin Día")) { +_nombrecliente = "FIN DIA";}; + //BA.debugLineNum = 877;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \""; +if ((_eventob).equals("Carga día")) { +_nombrecliente = "CARGA DIA";}; + //BA.debugLineNum = 878;BA.debugLine="If eventob = \"Carga día suplencia\" Then nombreC"; +if ((_eventob).equals("Carga día suplencia")) { +_nombrecliente = _subs._traerutassup /*String*/ (ba);}; + //BA.debugLineNum = 882;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"a"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_h.GetString("almacenb")),(Object)(_h.GetString("usuariob")),(Object)(_h.GetString("rutab")),(Object)(_eventob),(Object)(_clienteb),(Object)(_nombrecliente),(Object)(_h.GetString("iniciob")),(Object)(_finb),(Object)(_h.GetString("latitudb")),(Object)(_h.GetString("longitudb")),(Object)(_h.GetString("precision")),(Object)(_h.GetString("motivonoventa")),(Object)(_h.GetString("motivonovisita")),(Object)(_h.GetString("fechab")),(Object)(_h.GetString("BAN_GEOB"))}; + //BA.debugLineNum = 883;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("mandaBitacora")); + } +; + //BA.debugLineNum = 885;BA.debugLine="Log(\"MANDAMOS BITACORA\")"; +__c.LogImpl("33604730","MANDAMOS BITACORA",0); + //BA.debugLineNum = 887;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT HE_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HE_CLIE, HE_RES, HE_FECHA, HE_TIPO, HE_LAT, HE_LON, HE_FOTO FROM HIST_ENCUESTA"))); + //BA.debugLineNum = 888;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 889;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step215 = 1; +final int limit215 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit215 ;_i = _i + step215 ) { + //BA.debugLineNum = 890;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 891;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 892;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 893;BA.debugLine="cmd.Name = \"insert_encuesta2_GUNA\""; +_cmd.Name /*String*/ = "insert_encuesta2_GUNA"; + //BA.debugLineNum = 895;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("HE_CLIE")),(Object)(_c.GetString("HE_RES")),(Object)(_c.GetString("HE_FECHA")),(Object)(_c.GetString("HE_TIPO")),(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_subs._traeruta /*String*/ (ba)),(Object)(_c.GetString("HE_LAT")),(Object)(_c.GetString("HE_LON")),(Object)(""),(Object)(_c.GetBlob("HE_FOTO"))}; + //BA.debugLineNum = 896;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_encuesta")); + } +}; + }; + //BA.debugLineNum = 899;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 902;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO FROM PEDIDO WHERE (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL)",new String[]{"","null"}))); + //BA.debugLineNum = 903;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO"))); + //BA.debugLineNum = 904;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 905;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step228 = 1; +final int limit228 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit228 ;_i = _i + step228 ) { + //BA.debugLineNum = 906;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 907;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 908;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 909;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 910;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 911;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + } +}; + }; + //BA.debugLineNum = 914;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 915;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 917;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")"; +_cuantos_pedido = _d.GetString("CUANTOS_PEDIDO"); + //BA.debugLineNum = 918;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 921;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT PE_R"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_RECALCULO,PE_RECALCULOTOT,ifnull(PE_RECCEDIS,'') as PE_RECCEDIS,PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,ifnull(PE_CANT,0) as PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO, IFNULL(PE_RECCANT,0) AS PE_RECCANT FROM PEDIDO WHERE PE_RECALCULO <> ? or PE_RECALCULO <> ? or PE_RECALCULO IS NOT NULL",new String[]{"","null"}))); + //BA.debugLineNum = 922;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery($\"SELECT COUN"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO where PE_RUTA = '"+__c.SmartStringFormatter("",(Object)(_subs._traeruta /*String*/ (ba)))+"'")))); + //BA.debugLineNum = 923;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 924;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step244 = 1; +final int limit244 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit244 ;_i = _i + step244 ) { + //BA.debugLineNum = 925;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 926;BA.debugLine="If c.GetString(\"PE_RECCEDIS\") = \"\" Then"; +if ((_c.GetString("PE_RECCEDIS")).equals("")) { + //BA.debugLineNum = 927;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 928;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 929;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 930;BA.debugLine="cmd.Parameters = Array As Object(C.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 931;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(c"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + }else { + //BA.debugLineNum = 933;BA.debugLine="If c.GetString(\"PE_RECCANT\") = c.GetString(\"P"; +if ((_c.GetString("PE_RECCANT")).equals(_c.GetString("PE_CANT"))) { + //BA.debugLineNum = 934;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 935;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 936;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 937;BA.debugLine="cmd.Parameters = Array As Object(C.GetString"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 938;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand("; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + }else { + //BA.debugLineNum = 941;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 942;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 943;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 944;BA.debugLine="cmd.Parameters = Array As Object(C.GetString"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_RECCEDIS")),(Object)(_almacen),(Object)(_c.GetString("PE_RECALCULOTOT")),(Object)(_c.GetString("PE_RECALCULO")),(Object)(_c.GetString("PE_RECCANT")),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 945;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand("; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + //BA.debugLineNum = 947;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 948;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 949;BA.debugLine="cmd.Name = \"insert_pedido_GV2\""; +_cmd.Name /*String*/ = "insert_pedido_GV2"; + //BA.debugLineNum = 950;BA.debugLine="cmd.Parameters = Array As Object(C.GetString"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_CEDIS")),(Object)(_almacen),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_c.GetString("PE_COSTOU"))),(int) (1),(int) (2),(int) (2),__c.False)),(Object)(_c.GetString("PE_COSTOU")),(Object)(((double)(Double.parseDouble(_c.GetString("PE_CANT")))-(double)(Double.parseDouble(_c.GetString("PE_RECCANT"))))),(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_RUTA")),(Object)(_c.GetString("PE_COSTO_SIN")),(Object)(_c.GetString("PE_DESC")),(Object)(_c.GetString("PE_FOLIO"))}; + //BA.debugLineNum = 951;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand("; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_pedido")); + }; + }; + } +}; + }; + //BA.debugLineNum = 956;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 957;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 958;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")"; +_cuantos_pedido = _d.GetString("CUANTOS_PEDIDO"); + //BA.debugLineNum = 959;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 981;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select *"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from cuestionario")))); + //BA.debugLineNum = 982;BA.debugLine="Private rutaActual As String = Subs.traeRuta"; +_rutaactual = _subs._traeruta /*String*/ (ba); + //BA.debugLineNum = 983;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 984;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step281 = 1; +final int limit281 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit281 ;_i = _i + step281 ) { + //BA.debugLineNum = 985;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 986;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 987;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 988;BA.debugLine="cmd.Name = \"insert_CUESTIONARIO_GUNA\""; +_cmd.Name /*String*/ = "insert_CUESTIONARIO_GUNA"; + //BA.debugLineNum = 989;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("Q_IDCLIENTE")),(Object)(_rutaactual),(Object)(_almacen),(Object)(_c.GetString("Q_FECHA")),(Object)(_c.GetString("Q_IDPREGUNTA")),(Object)(_c.GetString("Q_PREGUNTA")),(Object)(_c.GetString("Q_IDRESPUESTA")),(Object)(_c.GetString("Q_RESPUESTA"))}; + //BA.debugLineNum = 990;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("ins_cuestionario")); + } +}; + }; + //BA.debugLineNum = 993;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 996;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT NV_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON FROM NOVENTA"))); + //BA.debugLineNum = 997;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); + //BA.debugLineNum = 998;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 999;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step294 = 1; +final int limit294 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit294 ;_i = _i + step294 ) { + //BA.debugLineNum = 1000;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1001;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1002;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1003;BA.debugLine="cmd.Name = \"insert_noventa_GV2\""; +_cmd.Name /*String*/ = "insert_noventa_GV2"; + //BA.debugLineNum = 1004;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_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())}; + //BA.debugLineNum = 1005;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_noventa")); + } +}; + }; + //BA.debugLineNum = 1008;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1009;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1010;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; +_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA"); + //BA.debugLineNum = 1011;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1029;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HGCLI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HGCLIENTE, HGDATE, HGLAT, HGLON from HIST_GEOCERCA"))); + //BA.debugLineNum = 1030;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1031;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step309 = 1; +final int limit309 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit309 ;_i = _i + step309 ) { + //BA.debugLineNum = 1032;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1033;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1034;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1035;BA.debugLine="cmd.Name = \"insert_geocerca_GV2\""; +_cmd.Name /*String*/ = "insert_geocerca_GV2"; + //BA.debugLineNum = 1036;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("HGCLIENTE")),(Object)(_c.GetString("HGDATE")),(Object)(_c.GetString("HGLAT")),(Object)(_c.GetString("HGLON"))}; + //BA.debugLineNum = 1037;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_hist_geo")); + } +}; + }; + //BA.debugLineNum = 1040;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1043;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HFCLI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN from HIST_FACE"))); + //BA.debugLineNum = 1044;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1045;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step321 = 1; +final int limit321 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit321 ;_i = _i + step321 ) { + //BA.debugLineNum = 1046;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1047;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1048;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1049;BA.debugLine="cmd.Name = \"insert_face_like_GV2\""; +_cmd.Name /*String*/ = "insert_face_like_GV2"; + //BA.debugLineNum = 1050;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("HFCLIENTE")),(Object)(_c.GetString("HFALIAS")),(Object)(_c.GetString("HFRUTA")),(Object)(_c.GetString("HFALMACEN"))}; + //BA.debugLineNum = 1051;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_hist_face")); + } +}; + }; + //BA.debugLineNum = 1054;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1057;BA.debugLine="t1.Initialize(\"T1\", 30000) ' 1000 = 1 second"; +_t1.Initialize(ba,"T1",(long) (30000)); + //BA.debugLineNum = 1058;BA.debugLine="t1.Enabled = True"; +_t1.setEnabled(__c.True); + //BA.debugLineNum = 1059;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 1060;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1061;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1062;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1063;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1064;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1065;BA.debugLine="cmd.Name =\"insert_drop_GV2_3\""; +_cmd.Name /*String*/ = "insert_drop_GV2_3"; + //BA.debugLineNum = 1066;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta."; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_usuario),(Object)(_l_ruta.getText()),(Object)(_sdate+_stime),(Object)(_l_porvisitar.getText()),(Object)(_l_drop.getText()),(Object)(_l_efectiva.getText()),(Object)(_l_cuantosc.getText()),(Object)(_l_cuantosn.getText()),(Object)(__c.NumberFormat2((double)(Double.parseDouble(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._montoactual /*String*/ )),(int) (0),(int) (2),(int) (2),__c.False)),(Object)("ENVIO"),(Object)(_almacen),(Object)(__c.Application.getVersionName())}; + //BA.debugLineNum = 1067;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + //BA.debugLineNum = 1068;BA.debugLine="img2.Visible =False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 1069;BA.debugLine="PORCENTAJE = Round(100/ (cuantos_noventa + cuant"; +_porcentaje = BA.NumberToString(__c.Round(100/(double)((double)(Double.parseDouble(_cuantos_noventa))+(double)(Double.parseDouble(_cuantos_pedido))+(double)(Double.parseDouble(_cuantos_pedidosc))+1))); + //BA.debugLineNum = 1070;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS"; +if ((_starter._marcacel /*String*/ ).equals("Sony") == false) { +__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+_l_ruta.getText()),__c.True);}; + }; + //BA.debugLineNum = 1073;BA.debugLine="Private x As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9 from ENCUESTA_MODULO1"))); + //BA.debugLineNum = 1074;BA.debugLine="If x.RowCount>0 Then"; +if (_x.getRowCount()>0) { + //BA.debugLineNum = 1075;BA.debugLine="For i=0 To x.RowCount -1"; +{ +final int step348 = 1; +final int limit348 = (int) (_x.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit348 ;_i = _i + step348 ) { + //BA.debugLineNum = 1076;BA.debugLine="x.Position=i"; +_x.setPosition(_i); + //BA.debugLineNum = 1077;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1078;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1079;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO1\""; +_cmd.Name /*String*/ = "insert_ENCUESTA_MODULO1"; + //BA.debugLineNum = 1080;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_x.GetString("CLIENTE")),(Object)(_x.GetString("ALMACEN")),(Object)(_x.GetString("P1")),(Object)(_x.GetString("P2")),(Object)(_x.GetString("P3")),(Object)(_x.GetString("P4")),(Object)(_x.GetString("P5")),(Object)(_x.GetString("P6")),(Object)(_x.GetString("P7")),(Object)(_x.GetString("P8")),(Object)(_x.GetString("P9"))}; + //BA.debugLineNum = 1081;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO1")); + } +}; + }; + //BA.debugLineNum = 1084;BA.debugLine="x.Close"; +_x.Close(); + //BA.debugLineNum = 1086;BA.debugLine="Private x1 As Cursor = B4XPages.MainPage.skmt.Exe"; +_x1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_x1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6 from ENCUESTA_MODULO2"))); + //BA.debugLineNum = 1087;BA.debugLine="If x1.RowCount>0 Then"; +if (_x1.getRowCount()>0) { + //BA.debugLineNum = 1088;BA.debugLine="For i=0 To x1.RowCount -1"; +{ +final int step360 = 1; +final int limit360 = (int) (_x1.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit360 ;_i = _i + step360 ) { + //BA.debugLineNum = 1089;BA.debugLine="x1.Position=i"; +_x1.setPosition(_i); + //BA.debugLineNum = 1090;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1091;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1092;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO2\""; +_cmd.Name /*String*/ = "insert_ENCUESTA_MODULO2"; + //BA.debugLineNum = 1093;BA.debugLine="cmd.Parameters = Array As Object(x1.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_x1.GetString("CLIENTE")),(Object)(_x1.GetString("ALMACEN")),(Object)(_x1.GetString("P1")),(Object)(_x1.GetString("P2")),(Object)(_x1.GetString("P3")),(Object)(_x1.GetString("P4")),(Object)(_x1.GetString("P5")),(Object)(_x1.GetString("P6"))}; + //BA.debugLineNum = 1094;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO2")); + } +}; + }; + //BA.debugLineNum = 1097;BA.debugLine="x1.Close"; +_x1.Close(); + //BA.debugLineNum = 1098;BA.debugLine="Private x2 As Cursor = B4XPages.MainPage.skmt.Exe"; +_x2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_x2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11 from ENCUESTA_MODULO3"))); + //BA.debugLineNum = 1099;BA.debugLine="If x2.RowCount>0 Then"; +if (_x2.getRowCount()>0) { + //BA.debugLineNum = 1100;BA.debugLine="For i=0 To x2.RowCount -1"; +{ +final int step372 = 1; +final int limit372 = (int) (_x2.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit372 ;_i = _i + step372 ) { + //BA.debugLineNum = 1101;BA.debugLine="x2.Position=i"; +_x2.setPosition(_i); + //BA.debugLineNum = 1103;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1104;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1105;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO3\""; +_cmd.Name /*String*/ = "insert_ENCUESTA_MODULO3"; + //BA.debugLineNum = 1106;BA.debugLine="cmd.Parameters = Array As Object(x2.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_x2.GetString("CLIENTE")),(Object)(_x2.GetString("ALMACEN")),(Object)(_x2.GetString("P1")),(Object)(_x2.GetString("P2")),(Object)(_x2.GetString("P3")),(Object)(_x2.GetString("P4")),(Object)(_x2.GetString("P5")),(Object)(_x2.GetString("P6")),(Object)(_x2.GetString("P7")),(Object)(_x2.GetString("P8")),(Object)(_x2.GetString("P9")),(Object)(_x2.GetString("P10")),(Object)(_x2.GetString("P11"))}; + //BA.debugLineNum = 1107;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO3")); + } +}; + }; + //BA.debugLineNum = 1110;BA.debugLine="x2.Close"; +_x2.Close(); + //BA.debugLineNum = 1111;BA.debugLine="Private x As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8 from ENCUESTA_MODULO4"))); + //BA.debugLineNum = 1112;BA.debugLine="If x.RowCount>0 Then"; +if (_x.getRowCount()>0) { + //BA.debugLineNum = 1113;BA.debugLine="For i=0 To x.RowCount -1"; +{ +final int step384 = 1; +final int limit384 = (int) (_x.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit384 ;_i = _i + step384 ) { + //BA.debugLineNum = 1114;BA.debugLine="x.Position=i"; +_x.setPosition(_i); + //BA.debugLineNum = 1115;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1116;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1117;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO4\""; +_cmd.Name /*String*/ = "insert_ENCUESTA_MODULO4"; + //BA.debugLineNum = 1118;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_x.GetString("CLIENTE")),(Object)(_x.GetString("ALMACEN")),(Object)(_x.GetString("P1")),(Object)(_x.GetString("P2")),(Object)(_x.GetString("P3")),(Object)(_x.GetString("P4")),(Object)(_x.GetString("P5")),(Object)(_x.GetString("P6")),(Object)(_x.GetString("P7")),(Object)(_x.GetString("P8"))}; + //BA.debugLineNum = 1119;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO4")); + } +}; + }; + //BA.debugLineNum = 1122;BA.debugLine="x.Close"; +_x.Close(); + //BA.debugLineNum = 1123;BA.debugLine="Private x As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CLIENTE, ALMACEN, P1, P2, P3, P4, P5, P6, P7, P8, P9 from ENCUESTA_MODULO5"))); + //BA.debugLineNum = 1124;BA.debugLine="If x.RowCount>0 Then"; +if (_x.getRowCount()>0) { + //BA.debugLineNum = 1125;BA.debugLine="For i=0 To x.RowCount -1"; +{ +final int step396 = 1; +final int limit396 = (int) (_x.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit396 ;_i = _i + step396 ) { + //BA.debugLineNum = 1126;BA.debugLine="x.Position=i"; +_x.setPosition(_i); + //BA.debugLineNum = 1127;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1128;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1129;BA.debugLine="cmd.Name = \"insert_ENCUESTA_MODULO5\""; +_cmd.Name /*String*/ = "insert_ENCUESTA_MODULO5"; + //BA.debugLineNum = 1130;BA.debugLine="cmd.Parameters = Array As Object(x.GetString(\"C"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_x.GetString("CLIENTE")),(Object)(_x.GetString("ALMACEN")),(Object)(_x.GetString("P1")),(Object)(_x.GetString("P2")),(Object)(_x.GetString("P3")),(Object)(_x.GetString("P4")),(Object)(_x.GetString("P5")),(Object)(_x.GetString("P6")),(Object)(_x.GetString("P7")),(Object)(_x.GetString("P8")),(Object)(_x.GetString("P9"))}; + //BA.debugLineNum = 1131;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executecommand /*String*/ (_cmd,(Object)("insert_ENCUESTA_MODULO5")); + } +}; + }; + //BA.debugLineNum = 1134;BA.debugLine="x.Close"; +_x.Close(); + //BA.debugLineNum = 1135;BA.debugLine="End Sub"; +return ""; +} +public String _t1_tick() throws Exception{ + //BA.debugLineNum = 2992;BA.debugLine="Sub t1_tick"; + //BA.debugLineNum = 2994;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2995;BA.debugLine="cmd.Name = \"select_cuantos_pedido_GV2\""; +_cmd.Name /*String*/ = "select_cuantos_pedido_GV2"; + //BA.debugLineNum = 2996;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 2997;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedido")); + //BA.debugLineNum = 2999;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3000;BA.debugLine="cmd.Name = \"select_cuantos_noventa_GV2\""; +_cmd.Name /*String*/ = "select_cuantos_noventa_GV2"; + //BA.debugLineNum = 3001;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 3002;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_noventa")); + //BA.debugLineNum = 3004;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3005;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc_GV2\""; +_cmd.Name /*String*/ = "select_cuantos_pedidoc_GV2"; + //BA.debugLineNum = 3006;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 3007;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedidoc")); + //BA.debugLineNum = 3009;BA.debugLine="If PB2.Progress = 0 Then"; +if (_pb2.getProgress()==0) { + //BA.debugLineNum = 3010;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-1)\""; +_s_cp.setText(BA.ObjectToCharSequence("ENVIAR DATOS (K-1)")); + }; + //BA.debugLineNum = 3012;BA.debugLine="Log(\"TIMER DISABLED\")"; +__c.LogImpl("34325396","TIMER DISABLED",0); + //BA.debugLineNum = 3013;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 3014;BA.debugLine="t1.Enabled = False"; +_t1.setEnabled(__c.False); + //BA.debugLineNum = 3017;BA.debugLine="End Sub"; +return ""; +} +public String _t2_tick() throws Exception{ + //BA.debugLineNum = 2861;BA.debugLine="Sub t2_tick"; + //BA.debugLineNum = 2863;BA.debugLine="Log(\"--------> BORRAMOS\")"; +__c.LogImpl("34128770","--------> BORRAMOS",0); + //BA.debugLineNum = 2864;BA.debugLine="If B4XPages.MainPage.productos.lv_catalogos.IsIni"; +if (_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .IsInitialized()) { +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear();}; + //BA.debugLineNum = 2865;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente"); + //BA.debugLineNum = 2866;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido"); + //BA.debugLineNum = 2867;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa"); + //BA.debugLineNum = 2868;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from COMENTARIOS"); + //BA.debugLineNum = 2869;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_PROMOS_DESCUENTOS"); + //BA.debugLineNum = 2870;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from TELEFONO"); + //BA.debugLineNum = 2871;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from ATIENDE"); + //BA.debugLineNum = 2872;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PLAN_LEALTAD"); + //BA.debugLineNum = 2873;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act"); + //BA.debugLineNum = 2874;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info3"); + //BA.debugLineNum = 2875;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CLIENTES_NUEVOS"); + //BA.debugLineNum = 2876;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_GIRO\")"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_GIRO"); + //BA.debugLineNum = 2877;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); + //BA.debugLineNum = 2878;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod2"); + //BA.debugLineNum = 2879;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); + //BA.debugLineNum = 2880;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); + //BA.debugLineNum = 2881;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VERIFICACION"); + //BA.debugLineNum = 2882;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA"); + //BA.debugLineNum = 2883;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_ENCUESTA2"); + //BA.debugLineNum = 2884;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_STAY_OUT"); + //BA.debugLineNum = 2885;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS"); + //BA.debugLineNum = 2886;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE from CODIGOS_CREDITO"); + //BA.debugLineNum = 2887;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_FACE"); + //BA.debugLineNum = 2888;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)"); + //BA.debugLineNum = 2889;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_CODIGO_BARRAS"); + //BA.debugLineNum = 2890;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO1"); + //BA.debugLineNum = 2891;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO2"); + //BA.debugLineNum = 2892;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO3"); + //BA.debugLineNum = 2893;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO4"); + //BA.debugLineNum = 2894;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ENCUESTA_MODULO5"); + //BA.debugLineNum = 2895;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BITACORAGPS"); + //BA.debugLineNum = 2896;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTA_SUPLENCIA"); + //BA.debugLineNum = 2897;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TICKET_IMPRESO"); + //BA.debugLineNum = 2898;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"CARGA_DIA"})); + //BA.debugLineNum = 2899;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"VENTAFUTURA"})); + //BA.debugLineNum = 2900;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"pasword"})); + //BA.debugLineNum = 2901;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LATITUD"})); + //BA.debugLineNum = 2902;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"LONGITUD"})); + //BA.debugLineNum = 2903;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE FROM"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"RUTA"})); + //BA.debugLineNum = 2906;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE GPS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE GPS SET HABILITADO = (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(0)})); + //BA.debugLineNum = 2907;BA.debugLine="Subs.deleteFolder(Starter.fFileProvider.SharedFol"; +_subs._deletefolder /*String*/ (ba,_starter._ffileprovider /*gunav2.keymon.com.mx.fileprovider*/ ._sharedfolder /*String*/ ); + //BA.debugLineNum = 2909;BA.debugLine="E_RUTA2.Visible = False"; +_e_ruta2.setVisible(__c.False); + //BA.debugLineNum = 2911;BA.debugLine="b_abordo.Visible = False"; +_b_abordo.setVisible(__c.False); + //BA.debugLineNum = 2912;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 2913;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 2914;BA.debugLine="connecta.Visible = True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 2920;BA.debugLine="t2.Enabled = False"; +_t2.setEnabled(__c.False); + //BA.debugLineNum = 2921;BA.debugLine="e_ruta.Text = \"\""; +_e_ruta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2922;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2923;BA.debugLine="End Sub"; +return ""; +} +public String _tickets_dia_click() throws Exception{ + //BA.debugLineNum = 3641;BA.debugLine="Sub tickets_dia_Click"; + //BA.debugLineNum = 3642;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")"; +_b4xpages._showpage /*String*/ (ba,"TicketsDia"); + //BA.debugLineNum = 3643;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((gunav2.keymon.com.mx.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/c_productos.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_productos.java new file mode 100644 index 0000000..8f5ed76 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_productos.java @@ -0,0 +1,3315 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_productos"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 String _ruta = ""; +public String _q_buscar = ""; +public boolean _forzarbusqueda = false; +public anywheresoftware.b4a.sql.SQL _skmt = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_catalogos = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_promos = null; +public String _entro = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _gest = null; +public anywheresoftware.b4a.objects.LabelWrapper _lfila = null; +public String _marca = ""; +public String _tipo = ""; +public String _subtipo = ""; +public anywheresoftware.b4a.objects.EditTextWrapper _busca = null; +public String _ya_entro = ""; +public String _tiene_promos = ""; +public String _res = ""; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _s1 = null; +public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null; +public String _ciclo = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_qr = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_productos = null; +public b4a.example3.customlistview _clv_productos = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _imageview1 = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel3 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _i_prod = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_terminar1 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_continuar = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_totprods = null; +public int _totalprods = 0; +public float _totalcompra = 0f; +public boolean _etcanthasfocus = false; +public anywheresoftware.b4a.objects.collections.Map _prodsmap = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cargando = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_info = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_buscar = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_botonesventa = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_tipo = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_subtipo = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_vistapreviatrans = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_prodspedido = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_rechazar = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_aceptar = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_vistaprevia = null; +public String _folio = ""; +public String _result = ""; +public anywheresoftware.b4a.objects.LabelWrapper _l_cant = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total2 = null; +public String _prodspedidoactual = ""; +public String _montopedidoactual = ""; +public String _tipo_venta = ""; +public b4a.example3.customlistview _clv_prods_ll = null; +public gunav2.keymon.com.mx.preoptimizedclv _pclv = null; +public anywheresoftware.b4a.objects.collections.List _listaprods = null; +public anywheresoftware.b4a.objects.collections.Map _pedidomap = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmen = null; +public boolean _reiniciarlistaprods = false; +public anywheresoftware.b4a.objects.collections.List _listatiempos = null; +public String _clienteid = ""; +public String _rutausuario = ""; +public boolean _haypedido = false; +public anywheresoftware.b4a.objects.collections.List _listahints = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null; +public anywheresoftware.b4a.objects.collections.List _vamoaver = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _j3 = null; +public int _invtotal = 0; +public anywheresoftware.b4a.objects.EditTextWrapper _et_pcantc = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenosc = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmasc = null; +public int _totalcajasmaspiezas = 0; +public int _cajas = 0; +public int _piezas = 0; +public anywheresoftware.b4a.objects.PanelWrapper _p_calatolos = null; +public anywheresoftware.b4a.objects.PanelWrapper _panel2 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_botmasmenc = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_promodesc = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_promodesc = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_okpromodesc = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_devo = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_proddev = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_devmas = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_cantdev = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_devmenos = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_acep_dev = null; +public double _preciodev = 0; +public String _nombredev = ""; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _b_acep_dev_click() throws Exception{ + //BA.debugLineNum = 2383;BA.debugLine="Private Sub b_acep_dev_Click"; + //BA.debugLineNum = 2384;BA.debugLine="p_devo.Visible = False"; +_p_devo.setVisible(__c.False); + //BA.debugLineNum = 2385;BA.debugLine="End Sub"; +return ""; +} +public String _b_aceptar_click() throws Exception{ + //BA.debugLineNum = 1349;BA.debugLine="Private Sub b_aceptar_Click"; + //BA.debugLineNum = 1350;BA.debugLine="p_vistaPreviaTrans.Visible=False"; +_p_vistapreviatrans.setVisible(__c.False); + //BA.debugLineNum = 1351;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 1352;BA.debugLine="End Sub"; +return ""; +} +public String _b_continuar_click() throws Exception{ +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 1239;BA.debugLine="Private Sub b_continuar_Click"; + //BA.debugLineNum = 1240;BA.debugLine="Log(\"b_continuar_Click\")"; +__c.LogImpl("366650113","b_continuar_Click",0); + //BA.debugLineNum = 1241;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 1243;BA.debugLine="Log($\"prodsMap=${prodsMap}\"$)"; +__c.LogImpl("366650116",("prodsMap="+__c.SmartStringFormatter("",(Object)(_prodsmap.getObject()))+""),0); + //BA.debugLineNum = 1251;BA.debugLine="Log(\"promos-inv, prods-inv, cat-vis\")"; +__c.LogImpl("366650124","promos-inv, prods-inv, cat-vis",0); + //BA.debugLineNum = 1252;BA.debugLine="lv_promos.Visible = False"; +_lv_promos.setVisible(__c.False); + //BA.debugLineNum = 1253;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +_clv_prods_ll._asview().setVisible(__c.False); + //BA.debugLineNum = 1254;BA.debugLine="lv_subtipo.Visible = False"; +_lv_subtipo.setVisible(__c.False); + //BA.debugLineNum = 1255;BA.debugLine="lv_tipo.Visible = False"; +_lv_tipo.setVisible(__c.False); + //BA.debugLineNum = 1256;BA.debugLine="lv_catalogos.Visible = True"; +_lv_catalogos.setVisible(__c.True); + //BA.debugLineNum = 1257;BA.debugLine="Log(\"Continuar\")"; +__c.LogImpl("366650130","Continuar",0); + //BA.debugLineNum = 1258;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = _subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba); + //BA.debugLineNum = 1259;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")"; +_prodspedidoactual = BA.ObjectToString(_m.Get((Object)("productos"))); + //BA.debugLineNum = 1260;BA.debugLine="montoPedidoActual = m.Get(\"monto\")"; +_montopedidoactual = BA.ObjectToString(_m.Get((Object)("monto"))); + //BA.debugLineNum = 1261;BA.debugLine="End Sub"; +return ""; +} +public String _b_devmas_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _dev2 = null; + //BA.debugLineNum = 2404;BA.debugLine="Private Sub b_devmas_Click"; + //BA.debugLineNum = 2406;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQue"; +_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS <> 'DUR' "))); + //BA.debugLineNum = 2407;BA.debugLine="If c6.RowCount > 0 Then"; +if (_c6.getRowCount()>0) { + //BA.debugLineNum = 2408;BA.debugLine="c6.Position = 0"; +_c6.setPosition((int) (0)); + //BA.debugLineNum = 2412;BA.debugLine="Log(((l_cantdev.Text + 1)* preciodev))"; +__c.LogImpl("368026376",BA.NumberToString((((double)(Double.parseDouble(_l_cantdev.getText()))+1)*_preciodev)),0); + //BA.debugLineNum = 2413;BA.debugLine="If c6.GetString(\"PC_MONTO\")- ((l_cantdev.Text +"; +if ((double)(Double.parseDouble(_c6.GetString("PC_MONTO")))-(((double)(Double.parseDouble(_l_cantdev.getText()))+1)*_preciodev)>=0) { + //BA.debugLineNum = 2414;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exe"; +_dev2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_dev2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID from CAT_GUNAPROD where CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_nombredev))+"'")))); + //BA.debugLineNum = 2415;BA.debugLine="dev2.Position = 0"; +_dev2.setPosition((int) (0)); + //BA.debugLineNum = 2416;BA.debugLine="l_cantdev.Text = NumberFormat2((l_cantdev.Text"; +_l_cantdev.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_l_cantdev.getText()))+1),(int) (0),(int) (0),(int) (0),__c.False))); + //BA.debugLineNum = 2418;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 2420;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1"; +_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((_preciodev*-1)),_l_cantdev.getText(),_nombredev,_dev2.GetString("CAT_GP_ID"),_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(1)); + }else { + //BA.debugLineNum = 2422;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1"; +_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((_preciodev*-1)),_l_cantdev.getText(),_nombredev,_dev2.GetString("CAT_GP_ID"),_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(0)); + }; + }else { + //BA.debugLineNum = 2428;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al prec"; +__c.MsgboxAsync(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto"),BA.ObjectToCharSequence("Atención"),ba); + }; + }; + //BA.debugLineNum = 2439;BA.debugLine="End Sub"; +return ""; +} +public String _b_devmenos_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _dev2 = null; + //BA.debugLineNum = 2387;BA.debugLine="Private Sub b_devmenos_Click"; + //BA.debugLineNum = 2388;BA.debugLine="If NumberFormat2((l_cantdev.Text - 1),0,0,0, Fals"; +if ((double)(Double.parseDouble(__c.NumberFormat2(((double)(Double.parseDouble(_l_cantdev.getText()))-1),(int) (0),(int) (0),(int) (0),__c.False)))>=0) { + //BA.debugLineNum = 2390;BA.debugLine="Dim dev2 As Cursor = B4XPages.MainPage.skmt.Exec"; +_dev2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_dev2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID from CAT_GUNAPROD where CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_nombredev))+"'")))); + //BA.debugLineNum = 2391;BA.debugLine="dev2.Position = 0"; +_dev2.setPosition((int) (0)); + //BA.debugLineNum = 2392;BA.debugLine="l_cantdev.Text = NumberFormat2((l_cantdev.Text -"; +_l_cantdev.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_l_cantdev.getText()))-1),(int) (0),(int) (0),(int) (0),__c.False))); + //BA.debugLineNum = 2393;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 2395;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1)"; +_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((_preciodev*-1)),_l_cantdev.getText(),_nombredev,_dev2.GetString("CAT_GP_ID"),_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(1)); + }else { + //BA.debugLineNum = 2397;BA.debugLine="Subs.actualizaProducto( \"DUR\", (preciodev * -1)"; +_subs._actualizaproducto /*String*/ (ba,"DUR",BA.NumberToString((_preciodev*-1)),_l_cantdev.getText(),_nombredev,_dev2.GetString("CAT_GP_ID"),_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1),BA.NumberToString(0)); + }; + }; + //BA.debugLineNum = 2402;BA.debugLine="End Sub"; +return ""; +} +public String _b_okpromodesc_click() throws Exception{ + //BA.debugLineNum = 2296;BA.debugLine="Private Sub b_okpromodesc_Click"; + //BA.debugLineNum = 2297;BA.debugLine="p_promodesc.Visible = False"; +_p_promodesc.setVisible(__c.False); + //BA.debugLineNum = 2298;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.B4XViewWrapper _panelpiezas = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lprodx = null; +String _precio = ""; +String _inv = ""; +String _existencias = ""; +String _id = ""; +String _nombrex = ""; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null; +String _invactualizado = ""; + //BA.debugLineNum = 878;BA.debugLine="Sub b_prodMas_Click"; + //BA.debugLineNum = 879;BA.debugLine="totalcajasmaspiezas = 0"; +_totalcajasmaspiezas = (int) (0); + //BA.debugLineNum = 880;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 881;BA.debugLine="Root.RequestFocus"; +_root.RequestFocus(); + //BA.debugLineNum = 884;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S"; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 885;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prods_ll._getpanel(_index); + //BA.debugLineNum = 886;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 887;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (2)); + //BA.debugLineNum = 889;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)"; +_panelpiezas = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_panelpiezas = _pnl.GetView((int) (2)); + //BA.debugLineNum = 891;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)"; +_lprodx = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lprodx = _pnl.GetView((int) (1)); + //BA.debugLineNum = 894;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in"; +_precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("precio"))); + //BA.debugLineNum = 895;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(index"; +_inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("almacen"))); + //BA.debugLineNum = 896;BA.debugLine="Private existencias As String = clv_prods_ll.GetV"; +_existencias = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("almacen"))); + //BA.debugLineNum = 897;BA.debugLine="Log($\"Existencias: ${existencias}\"$)"; +__c.LogImpl("366322451",("Existencias: "+__c.SmartStringFormatter("",(Object)(_existencias))+""),0); + //BA.debugLineNum = 898;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 899;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)"; +_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("id"))); + //BA.debugLineNum = 916;BA.debugLine="LogColor(laCant.Text,Colors.Red)"; +__c.LogImpl("366322470",_lacant.getText(),__c.Colors.Red); + //BA.debugLineNum = 918;BA.debugLine="If Subs.traeinventario(id) > 0 And (laCant.Text <"; +if ((double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))>0 && ((double)(Double.parseDouble(_lacant.getText()))<=((double)(Double.parseDouble(_lacant.getText()))+(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))))) { + //BA.debugLineNum = 920;BA.debugLine="clv_prods_ll.GetValue(index).As(Map).Put(\"almace"; +((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Put((Object)("almacen"),(Object)(((double)(Double.parseDouble(_inv))-1))); + //BA.debugLineNum = 921;BA.debugLine="inv = inv - 1"; +_inv = BA.NumberToString((double)(Double.parseDouble(_inv))-1); + //BA.debugLineNum = 923;BA.debugLine="laCant.Text = NumberFormat2((laCant.Text + 1), 1"; +_lacant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_lacant.getText()))+1),(int) (1),(int) (0),(int) (0),__c.False))); + }; + //BA.debugLineNum = 926;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i"; +_nombrex = _subs._traeprodnombre /*String*/ (ba,_id); + //BA.debugLineNum = 935;BA.debugLine="LogColor(laCant.Text,Colors.Red)"; +__c.LogImpl("366322489",_lacant.getText(),__c.Colors.Red); + //BA.debugLineNum = 941;BA.debugLine="Log(B4XPages.MainPage.tipo_venta)"; +__c.LogImpl("366322495",_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,0); + //BA.debugLineNum = 942;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 943;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,"; +_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(1)); + }else { + //BA.debugLineNum = 945;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,"; +_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0)); + }; + //BA.debugLineNum = 948;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 951;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 952;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 953;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"se"; +_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*/ .ExecQuery(("select CAT_GP_ALMACEN from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ )))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 954;BA.debugLine="Private invActualizado As String = \"0\""; +_invactualizado = "0"; + //BA.debugLineNum = 955;BA.debugLine="If o.RowCount > 0 Then"; +if (_o.getRowCount()>0) { + //BA.debugLineNum = 956;BA.debugLine="o.Position = 0"; +_o.setPosition((int) (0)); + //BA.debugLineNum = 957;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")"; +_invactualizado = _o.GetString("CAT_GP_ALMACEN"); + }; + //BA.debugLineNum = 966;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red)."; +if (2==2) { +_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+_invactualizado)).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject()));}; + //BA.debugLineNum = 969;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa"; +_invtotal = (int) (_totalcajasmaspiezas+(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))); + //BA.debugLineNum = 971;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))); + //BA.debugLineNum = 972;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 973;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 974;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr"; +__c.LogImpl("366322528",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0); + //BA.debugLineNum = 975;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO"; +_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART"))); + //BA.debugLineNum = 976;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT"; +_l_total.setText(BA.ObjectToCharSequence("Total: $"+_c.GetString("PC_MONTO"))); + //BA.debugLineNum = 977;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\""; +if (_l_total.getText()== null || (_l_total.getText()).equals("null") || (_l_total.getText()).equals("") || (_l_total.getText()).equals("Total: $null")) { +_l_total.setText(BA.ObjectToCharSequence("Total: $0.0"));}; + //BA.debugLineNum = 978;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text = \""; +if (_l_totprods.getText()== null || (_l_totprods.getText()).equals("null") || (_l_totprods.getText()).equals("") || (_l_totprods.getText()).equals("Prods: null")) { +_l_totprods.setText(BA.ObjectToCharSequence("Prods: 0"));}; + }; + //BA.debugLineNum = 981;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.B4XViewWrapper _panelbotonesc = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lprodx = null; +anywheresoftware.b4a.objects.B4XViewWrapper _panelpiezas = null; +anywheresoftware.b4a.objects.collections.Map _tmpmap1 = null; +String _precio = ""; +String _id = ""; +anywheresoftware.b4a.objects.collections.Map _tmpmap = null; +String _nombrex = ""; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null; +String _invactualizado = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null; +double _totaldev = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null; +double _totalprod = 0; + //BA.debugLineNum = 734;BA.debugLine="Sub b_prodMenos_Click"; + //BA.debugLineNum = 735;BA.debugLine="totalcajasmaspiezas = 0"; +_totalcajasmaspiezas = (int) (0); + //BA.debugLineNum = 736;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 737;BA.debugLine="Root.RequestFocus"; +_root.RequestFocus(); + //BA.debugLineNum = 739;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S"; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 740;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prods_ll._getpanel(_index); + //BA.debugLineNum = 741;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 742;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (2)); + //BA.debugLineNum = 744;BA.debugLine="Dim panelbotonesc As B4XView = pnl.GetView(3)"; +_panelbotonesc = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_panelbotonesc = _pnl.GetView((int) (3)); + //BA.debugLineNum = 745;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)"; +_lprodx = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lprodx = _pnl.GetView((int) (1)); + //BA.debugLineNum = 747;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)"; +_panelpiezas = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_panelpiezas = _pnl.GetView((int) (2)); + //BA.debugLineNum = 749;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 751;BA.debugLine="laCant.Text = $\"${NumberFormat2(laCant.Text-1,0,0"; +_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_lacant.getText()))-1,(int) (0),(int) (0),(int) (0),__c.False)))+""))); + //BA.debugLineNum = 752;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 753;BA.debugLine="Private tmpMap1 As Map = clv_prods_ll.GetValue(in"; +_tmpmap1 = new anywheresoftware.b4a.objects.collections.Map(); +_tmpmap1 = ((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))); + //BA.debugLineNum = 754;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(in"; +_precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("precio"))); + //BA.debugLineNum = 755;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)"; +_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("id"))); + //BA.debugLineNum = 756;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio"; +_tmpmap = new anywheresoftware.b4a.objects.collections.Map(); +_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(_subs._traealmacen /*String*/ (ba))}); + //BA.debugLineNum = 757;BA.debugLine="Private nombreX As String = Subs.traeProdNombre(i"; +_nombrex = _subs._traeprodnombre /*String*/ (ba,_id); + //BA.debugLineNum = 758;BA.debugLine="LogColor(tmpMap1,Colors.Magenta)"; +__c.LogImpl("366256920",BA.ObjectToString(_tmpmap1),__c.Colors.Magenta); + //BA.debugLineNum = 759;BA.debugLine="prodsMap.Put(id, tmpMap)"; +_prodsmap.Put((Object)(_id),(Object)(_tmpmap.getObject())); + //BA.debugLineNum = 760;BA.debugLine="If laCant.Text = 0 Then prodsMap.Remove(id)"; +if ((_lacant.getText()).equals(BA.NumberToString(0))) { +_prodsmap.Remove((Object)(_id));}; + //BA.debugLineNum = 772;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)"; +__c.LogImpl("366256934","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Blue); + //BA.debugLineNum = 774;BA.debugLine="Log($\"${Subs.traeAlmacen}, ${precio}, ${laCant.te"; +__c.LogImpl("366256936",(""+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+", "+__c.SmartStringFormatter("",(Object)(_precio))+", "+__c.SmartStringFormatter("",(Object)(_lacant.getText()))+", "+__c.SmartStringFormatter("",(Object)(_subs._traeprodnombre /*String*/ (ba,_id)))+", "+__c.SmartStringFormatter("",(Object)(_id))+", "+__c.SmartStringFormatter("",(Object)(_clienteid))+""),0); + //BA.debugLineNum = 775;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 776;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,"; +_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(1)); + }else { + //BA.debugLineNum = 778;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, precio,"; +_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0)); + }; + //BA.debugLineNum = 780;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 781;BA.debugLine="LogColor(\"prodsMap=\"&prodsMap, Colors.blue)"; +__c.LogImpl("366256943","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Blue); + //BA.debugLineNum = 782;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $"; +__c.LogImpl("366256944",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0); + //BA.debugLineNum = 783;BA.debugLine="If 1 = 1 Then"; +if (1==1) { + //BA.debugLineNum = 784;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 785;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 786;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\"s"; +_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*/ .ExecQuery(("select CAT_GP_ALMACEN from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 787;BA.debugLine="Private invActualizado As String = \"0\""; +_invactualizado = "0"; + //BA.debugLineNum = 788;BA.debugLine="If o.RowCount > 0 Then"; +if (_o.getRowCount()>0) { + //BA.debugLineNum = 789;BA.debugLine="o.Position = 0"; +_o.setPosition((int) (0)); + //BA.debugLineNum = 790;BA.debugLine="invActualizado = o.GetString(\"CAT_GP_ALMACEN\")"; +_invactualizado = _o.GetString("CAT_GP_ALMACEN"); + }; + //BA.debugLineNum = 800;BA.debugLine="If 2 = 2 Then lProdX.Text = cs.Color(Colors.red)"; +if (2==2) { +_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+_invactualizado)).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject()));}; + }; + //BA.debugLineNum = 814;BA.debugLine="If Subs.totalPedido < 1 Then laCant.Text = \"0\""; +if ((double)(Double.parseDouble(_subs._totalpedido /*String*/ (ba)))<1) { +_lacant.setText(BA.ObjectToCharSequence("0"));}; + //BA.debugLineNum = 815;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa"; +_invtotal = (int) (_totalcajasmaspiezas+(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))); + //BA.debugLineNum = 834;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))); + //BA.debugLineNum = 837;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 838;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 839;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetStr"; +__c.LogImpl("366257001",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0); + //BA.debugLineNum = 840;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_NO"; +_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART"))); + //BA.debugLineNum = 841;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MONT"; +_l_total.setText(BA.ObjectToCharSequence("Total: $"+_c.GetString("PC_MONTO"))); + //BA.debugLineNum = 842;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\""; +if (_l_total.getText()== null || (_l_total.getText()).equals("null") || (_l_total.getText()).equals("")) { +_l_total.setText(BA.ObjectToCharSequence("Total: $0.0"));}; + //BA.debugLineNum = 843;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text = \""; +if (_l_totprods.getText()== null || (_l_totprods.getText()).equals("null") || (_l_totprods.getText()).equals("")) { +_l_totprods.setText(BA.ObjectToCharSequence("Prods: 0"));}; + }; + //BA.debugLineNum = 849;BA.debugLine="Dim c7 As Cursor = B4XPages.MainPage.skmt.ExecQue"; +_c7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS = 'DUR'"))); + //BA.debugLineNum = 850;BA.debugLine="If c7.RowCount > 0 Then"; +if (_c7.getRowCount()>0) { + //BA.debugLineNum = 851;BA.debugLine="c7.Position = 0"; +_c7.setPosition((int) (0)); + //BA.debugLineNum = 853;BA.debugLine="Dim totaldev As Double = c7.GetString(\"PC_MONTO\""; +_totaldev = (double)(Double.parseDouble(_c7.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 857;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQue"; +_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS <> 'DUR' "))); + //BA.debugLineNum = 858;BA.debugLine="If c6.RowCount > 0 Then"; +if (_c6.getRowCount()>0) { + //BA.debugLineNum = 859;BA.debugLine="c6.Position = 0"; +_c6.setPosition((int) (0)); + //BA.debugLineNum = 861;BA.debugLine="Dim totalprod As Double = c6.GetString(\"PC_MONTO"; +_totalprod = (double)(Double.parseDouble(_c6.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 865;BA.debugLine="Log(totaldev &\" \" & totalprod)"; +__c.LogImpl("366257027",BA.NumberToString(_totaldev)+" "+BA.NumberToString(_totalprod),0); + //BA.debugLineNum = 866;BA.debugLine="If totalprod = 0 Then"; +if (_totalprod==0) { + //BA.debugLineNum = 867;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'"); + //BA.debugLineNum = 868;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que no hay venta."),BA.ObjectToCharSequence("Atención"),ba); + }else if(_totalprod<(_totaldev*-1)) { + //BA.debugLineNum = 870;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'"); + //BA.debugLineNum = 871;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que el monto de la devolucion es mayor al monto de la venta."),BA.ObjectToCharSequence("Atención"),ba); + }; + //BA.debugLineNum = 876;BA.debugLine="End Sub"; +return ""; +} +public String _b_qr_click() throws Exception{ + //BA.debugLineNum = 690;BA.debugLine="Sub b_QR_Click"; + //BA.debugLineNum = 691;BA.debugLine="If ciclo = 1 Then"; +if ((_ciclo).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 692;BA.debugLine="ciclo = 2"; +_ciclo = BA.NumberToString(2); + //BA.debugLineNum = 693;BA.debugLine="ya_entro = \"0\""; +_ya_entro = "0"; + //BA.debugLineNum = 694;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_ciclo).equals(BA.NumberToString(2))) { + //BA.debugLineNum = 696;BA.debugLine="ciclo = 3"; +_ciclo = BA.NumberToString(3); + //BA.debugLineNum = 697;BA.debugLine="ya_entro = \"0\""; +_ya_entro = "0"; + //BA.debugLineNum = 698;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_ciclo).equals(BA.NumberToString(3))) { + //BA.debugLineNum = 700;BA.debugLine="ciclo = 4"; +_ciclo = BA.NumberToString(4); + //BA.debugLineNum = 701;BA.debugLine="ya_entro = \"0\""; +_ya_entro = "0"; + //BA.debugLineNum = 702;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_ciclo).equals(BA.NumberToString(4))) { + //BA.debugLineNum = 704;BA.debugLine="ciclo = 5"; +_ciclo = BA.NumberToString(5); + //BA.debugLineNum = 705;BA.debugLine="ya_entro = \"0\""; +_ya_entro = "0"; + //BA.debugLineNum = 706;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_ciclo).equals(BA.NumberToString(5))) { + //BA.debugLineNum = 708;BA.debugLine="ciclo = 1"; +_ciclo = BA.NumberToString(1); + //BA.debugLineNum = 709;BA.debugLine="ya_entro = \"0\""; +_ya_entro = "0"; + //BA.debugLineNum = 710;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + //BA.debugLineNum = 712;BA.debugLine="End Sub"; +return ""; +} +public String _b_rechazar_click() throws Exception{ + //BA.debugLineNum = 1326;BA.debugLine="Private Sub b_rechazar_Click"; + //BA.debugLineNum = 1328;BA.debugLine="result = Msgbox2($\"Seguro que desea borrar el pe"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence(("Seguro que desea borrar el pedido completo?"+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Haciendo clic largo sobre un producto se pueden borrar articulos independientes.")),BA.ObjectToCharSequence("Rechazar Pedido"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 1329;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 1330;BA.debugLine="Subs.borraPedidoClienteActual"; +_subs._borrapedidoclienteactual /*String*/ (ba); + //BA.debugLineNum = 1331;BA.debugLine="prodsMap.Initialize"; +_prodsmap.Initialize(); + //BA.debugLineNum = 1335;BA.debugLine="clv_prods_ll.Clear"; +_clv_prods_ll._clear(); + //BA.debugLineNum = 1336;BA.debugLine="Log(\"Positivo\")"; +__c.LogImpl("367043338","Positivo",0); + //BA.debugLineNum = 1337;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }else { + //BA.debugLineNum = 1339;BA.debugLine="Log(\"NO Positivo\")"; +__c.LogImpl("367043341","NO Positivo",0); + //BA.debugLineNum = 1340;BA.debugLine="p_vistaPreviaTrans.Visible = False"; +_p_vistapreviatrans.setVisible(__c.False); + }; + //BA.debugLineNum = 1345;BA.debugLine="p_vistaPreviaTrans.Visible=False"; +_p_vistapreviatrans.setVisible(__c.False); + //BA.debugLineNum = 1346;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 1347;BA.debugLine="End Sub"; +return ""; +} +public String _b_terminar1_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c_prods = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _textcolor = 0; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; + //BA.debugLineNum = 1167;BA.debugLine="Sub b_terminar1_Click"; + //BA.debugLineNum = 1170;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from PEDIDO WHERE PE_PRONOMBRE = ? ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("N/A")})); + //BA.debugLineNum = 1172;BA.debugLine="lv_promos.Visible = False"; +_lv_promos.setVisible(__c.False); + //BA.debugLineNum = 1173;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +_clv_prods_ll._asview().setVisible(__c.False); + //BA.debugLineNum = 1174;BA.debugLine="lv_catalogos.Visible = True"; +_lv_catalogos.setVisible(__c.True); + //BA.debugLineNum = 1175;BA.debugLine="lv_prodsPedido.Clear"; +_lv_prodspedido.Clear(); + //BA.debugLineNum = 1176;BA.debugLine="lv_prodsPedido.TwoLinesLayout.Label.Height = 35di"; +_lv_prodspedido.getTwoLinesLayout().Label.setHeight(__c.DipToCurrent((int) (35))); + //BA.debugLineNum = 1177;BA.debugLine="lv_prodsPedido.TwoLinesLayout.SecondLabel.Height"; +_lv_prodspedido.getTwoLinesLayout().SecondLabel.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 1178;BA.debugLine="Private c_prods As Cursor=B4XPages.MainPage.skmt."; +_c_prods = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c_prods = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PE_PRONOMBRE,PE_COSTO_TOT, PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_CEDIS, PE_PRONOMBRE"))); + //BA.debugLineNum = 1179;BA.debugLine="If c_prods.RowCount > 0 Then"; +if (_c_prods.getRowCount()>0) { + //BA.debugLineNum = 1180;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 1182;BA.debugLine="vamoaver.Initialize"; +_vamoaver.Initialize(); + //BA.debugLineNum = 1183;BA.debugLine="For i=0 To c_prods.RowCount -1"; +{ +final int step12 = 1; +final int limit12 = (int) (_c_prods.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit12 ;_i = _i + step12 ) { + //BA.debugLineNum = 1184;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 1185;BA.debugLine="c_prods.Position=i"; +_c_prods.setPosition(_i); + //BA.debugLineNum = 1186;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 1187;BA.debugLine="label1 = lv_prodsPedido.TwoLinesLayout.Label"; +_label1 = _lv_prodspedido.getTwoLinesLayout().Label; + //BA.debugLineNum = 1188;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 1189;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 1190;BA.debugLine="label1.color = Colors.White"; +_label1.setColor(__c.Colors.White); + //BA.debugLineNum = 1191;BA.debugLine="Private textColor As Int = Colors.black"; +_textcolor = __c.Colors.Black; + //BA.debugLineNum = 1193;BA.debugLine="If c_prods.GetString(\"PE_FOLIO\") = \"VENTA\" Then"; +if ((_c_prods.GetString("PE_FOLIO")).equals("VENTA")) { + //BA.debugLineNum = 1194;BA.debugLine="textColor = Colors.RGB(48,3,195)"; +_textcolor = __c.Colors.RGB((int) (48),(int) (3),(int) (195)); + }else if((_c_prods.GetString("PE_FOLIO")).equals("PREVENTA") || (_c_prods.GetString("PE_FOLIO")).equals("ABORDO") || (_c_prods.GetString("PE_FOLIO")).equals("RECARGA")) { + //BA.debugLineNum = 1196;BA.debugLine="textColor = Colors.RGB(166,0,0)"; +_textcolor = __c.Colors.RGB((int) (166),(int) (0),(int) (0)); + }; + //BA.debugLineNum = 1198;BA.debugLine="If Not(IsNumber(c_prods.GetString(\"PE_CEDIS\")))"; +if (__c.Not(__c.IsNumber(_c_prods.GetString("PE_CEDIS"))) && (_c_prods.GetString("PE_FOLIO")).equals("VENTA")) { + //BA.debugLineNum = 1199;BA.debugLine="textColor = Colors.RGB(154,131,231) 'Si es pro"; +_textcolor = __c.Colors.RGB((int) (154),(int) (131),(int) (231)); + }else if(__c.Not(__c.IsNumber(_c_prods.GetString("PE_CEDIS"))) && (_c_prods.GetString("PE_FOLIO")).equals("PREVENTA")) { + //BA.debugLineNum = 1201;BA.debugLine="textColor = Colors.RGB(255,111,111) 'Si es pro"; +_textcolor = __c.Colors.RGB((int) (255),(int) (111),(int) (111)); + }; + //BA.debugLineNum = 1203;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 1204;BA.debugLine="label2 = lv_prodsPedido.TwoLinesLayout.SecondLa"; +_label2 = _lv_prodspedido.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 1205;BA.debugLine="label2.TextSize = 10"; +_label2.setTextSize((float) (10)); + //BA.debugLineNum = 1206;BA.debugLine="label2.TextColor = Colors.Blue"; +_label2.setTextColor(__c.Colors.Blue); + //BA.debugLineNum = 1209;BA.debugLine="lv_prodsPedido.AddSingleLine(cs.Color(textColor"; +_lv_prodspedido.AddSingleLine(BA.ObjectToCharSequence(_cs.Color(_textcolor).Size((int) (15)).Append(BA.ObjectToCharSequence(_c_prods.GetString("PE_PRONOMBRE")+" ")).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Size((int) (10)).Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Cantidad #"+_c_prods.GetString("PE_CANT"))).Append(BA.ObjectToCharSequence(" SubTotal $"+_c_prods.GetString("PE_COSTO_TOT"))).Append(BA.ObjectToCharSequence(" "+_c_prods.GetString("PE_FOLIO")+" "+_c_prods.GetString("PE_CEDIS"))).PopAll().getObject())); + //BA.debugLineNum = 1210;BA.debugLine="label1.Height = 120dip"; +_label1.setHeight(__c.DipToCurrent((int) (120))); + //BA.debugLineNum = 1211;BA.debugLine="lv_prodsPedido.SingleLineLayout.ItemHeight = 90"; +_lv_prodspedido.getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (90))); + //BA.debugLineNum = 1212;BA.debugLine="vamoaver.Add(c_prods.GetString(\"PE_FOLIO\"))"; +_vamoaver.Add((Object)(_c_prods.GetString("PE_FOLIO"))); + //BA.debugLineNum = 1213;BA.debugLine="folio = c_prods.GetString(\"PE_FOLIO\")"; +_folio = _c_prods.GetString("PE_FOLIO"); + } +}; + //BA.debugLineNum = 1219;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select sum"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))); + //BA.debugLineNum = 1220;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1221;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 1222;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")"; +_l_total2.setText(BA.ObjectToCharSequence(_c.GetString("PC_MONTO"))); + //BA.debugLineNum = 1223;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 1226;BA.debugLine="c_prods.Close"; +_c_prods.Close(); + //BA.debugLineNum = 1228;BA.debugLine="l_total2.Text = Subs.calculaTotalConPromoXRango(S"; +_l_total2.setText(BA.ObjectToCharSequence(_subs._calculatotalconpromoxrango /*String*/ (ba,_subs._traecliente /*String*/ (ba)))); + //BA.debugLineNum = 1231;BA.debugLine="p_vistaPreviaTrans.Width = Root.Width"; +_p_vistapreviatrans.setWidth(_root.getWidth()); + //BA.debugLineNum = 1232;BA.debugLine="p_vistaPreviaTrans.Height = Root.Height"; +_p_vistapreviatrans.setHeight(_root.getHeight()); + //BA.debugLineNum = 1233;BA.debugLine="Subs.centraPanel(p_vistaPrevia, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_vistaprevia,_root.getWidth()); + //BA.debugLineNum = 1235;BA.debugLine="p_vistaPrevia.Visible=True"; +_p_vistaprevia.setVisible(__c.True); + //BA.debugLineNum = 1236;BA.debugLine="p_vistaPreviaTrans.Visible=True"; +_p_vistapreviatrans.setVisible(__c.True); + //BA.debugLineNum = 1237;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(gunav2.keymon.com.mx.c_productos parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.c_productos parent; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +boolean _haypromos = false; +int _i = 0; +anywheresoftware.b4a.objects.collections.Map _tm = null; +anywheresoftware.b4a.objects.collections.Map _m = null; +int step59; +int limit59; + +@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 = 155;BA.debugLine="tipo_venta = Subs.traeTipoVentaDeBD"; +parent._tipo_venta = parent._subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 156;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA\" Or B"; +if (true) break; + +case 1: +//if +this.state = 8; +if ((parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA") || (parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("ABORDO") || (parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { +this.state = 3; +}else if((parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("VENTA")) { +this.state = 5; +}else if((parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("RECARGA")) { +this.state = 7; +}if (true) break; + +case 3: +//C +this.state = 8; + //BA.debugLineNum = 157;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\""; +parent._starter._tabla /*String*/ = "CAT_GUNAPROD"; + if (true) break; + +case 5: +//C +this.state = 8; + //BA.debugLineNum = 159;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\""; +parent._starter._tabla /*String*/ = "CAT_GUNAPROD2"; + if (true) break; + +case 7: +//C +this.state = 8; + //BA.debugLineNum = 161;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD3\""; +parent._starter._tabla /*String*/ = "CAT_GUNAPROD3"; + if (true) break; + +case 8: +//C +this.state = 9; +; + //BA.debugLineNum = 163;BA.debugLine="Log(Starter.tabla)"; +parent.__c.LogImpl("365667081",parent._starter._tabla /*String*/ ,0); + //BA.debugLineNum = 164;BA.debugLine="clienteId = Subs.traeCliente"; +parent._clienteid = parent._subs._traecliente /*String*/ (ba); + //BA.debugLineNum = 165;BA.debugLine="rutaUsuario = Subs.traeRuta"; +parent._rutausuario = parent._subs._traeruta /*String*/ (ba); + //BA.debugLineNum = 166;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PRIORITARIO"),(Object)("1")})); + //BA.debugLineNum = 167;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("ESTRATEGICO"),(Object)("2")})); + //BA.debugLineNum = 168;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COMPLEMENTARIO"),(Object)("3")})); + //BA.debugLineNum = 169;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_TIPOPROD = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("CATALOGO REGULAR"),(Object)("0")})); + //BA.debugLineNum = 170;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE CAT_"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE CAT_GUNAPROD SET CAT_GP_TIPOPROD = (?) WHERE CAT_GP_CLASIF = (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("PROMOS"),(Object)("PROMOS")})); + //BA.debugLineNum = 171;BA.debugLine="clv_prods_ll.GetBase.SetLayoutAnimated(0, 5dip, 1"; +parent._clv_prods_ll._getbase().SetLayoutAnimated((int) (0),parent.__c.DipToCurrent((int) (5)),parent.__c.DipToCurrent((int) (130)),(int) (parent._root.getWidth()+10),(int) (parent._root.getHeight()*0.74)); + //BA.debugLineNum = 172;BA.debugLine="clv_prods_ll.Base_Resize(clv_prods_ll.GetBase.Wid"; +parent._clv_prods_ll._base_resize(parent._clv_prods_ll._getbase().getWidth(),parent._clv_prods_ll._getbase().getHeight()); + //BA.debugLineNum = 173;BA.debugLine="If B4XPages.MainPage.bTerminarClicked Then"; +if (true) break; + +case 9: +//if +this.state = 12; +if (parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/ ) { +this.state = 11; +}if (true) break; + +case 11: +//C +this.state = 12; + //BA.debugLineNum = 174;BA.debugLine="lv_catalogos.Visible = True"; +parent._lv_catalogos.setVisible(parent.__c.True); + //BA.debugLineNum = 175;BA.debugLine="lv_promos.Visible = False"; +parent._lv_promos.setVisible(parent.__c.False); + //BA.debugLineNum = 176;BA.debugLine="lv_tipo.Visible = False"; +parent._lv_tipo.setVisible(parent.__c.False); + //BA.debugLineNum = 177;BA.debugLine="lv_subtipo.Visible = False"; +parent._lv_subtipo.setVisible(parent.__c.False); + //BA.debugLineNum = 178;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +parent._clv_prods_ll._asview().setVisible(parent.__c.False); + //BA.debugLineNum = 179;BA.debugLine="B4XPages.MainPage.bTerminarClicked = False"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/ = parent.__c.False; + if (true) break; +; + //BA.debugLineNum = 181;BA.debugLine="If ya_entro <> \"1\" Then"; + +case 12: +//if +this.state = 21; +if ((parent._ya_entro).equals("1") == false) { +this.state = 14; +}if (true) break; + +case 14: +//C +this.state = 15; + //BA.debugLineNum = 182;BA.debugLine="If BUSCA.Text <> \"\" Then BUSCA.Text =\"\""; +if (true) break; + +case 15: +//if +this.state = 20; +if ((parent._busca.getText()).equals("") == false) { +this.state = 17; +;}if (true) break; + +case 17: +//C +this.state = 20; +parent._busca.setText(BA.ObjectToCharSequence("")); +if (true) break; + +case 20: +//C +this.state = 21; +; + //BA.debugLineNum = 183;BA.debugLine="entro =\"3\""; +parent._entro = "3"; + //BA.debugLineNum = 184;BA.debugLine="lv_catalogos.Clear"; +parent._lv_catalogos.Clear(); + //BA.debugLineNum = 185;BA.debugLine="Sleep(100)"; +parent.__c.Sleep(ba,this,(int) (100)); +this.state = 56; +return; +case 56: +//C +this.state = 21; +; + //BA.debugLineNum = 186;BA.debugLine="lfila.Text = \"PORTAFOLIO\""; +parent._lfila.setText(BA.ObjectToCharSequence("PORTAFOLIO")); + //BA.debugLineNum = 187;BA.debugLine="p_productos.Height = Root.Height"; +parent._p_productos.setHeight(parent._root.getHeight()); + //BA.debugLineNum = 188;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +parent._clv_prods_ll._asview().setVisible(parent.__c.False); + //BA.debugLineNum = 189;BA.debugLine="lv_catalogos.Visible = True"; +parent._lv_catalogos.setVisible(parent.__c.True); + //BA.debugLineNum = 190;BA.debugLine="p_botonesVenta.Visible = False"; +parent._p_botonesventa.setVisible(parent.__c.False); + //BA.debugLineNum = 191;BA.debugLine="p_botonesVenta.Top = clv_prods_ll.AsView.top + c"; +parent._p_botonesventa.setTop((int) (parent._clv_prods_ll._asview().getTop()+parent._clv_prods_ll._asview().getHeight()-10)); + //BA.debugLineNum = 192;BA.debugLine="lv_promos.Visible = False"; +parent._lv_promos.setVisible(parent.__c.False); + if (true) break; + +case 21: +//C +this.state = 22; +; + //BA.debugLineNum = 194;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 195;BA.debugLine="label1 = lv_catalogos.SingleLineLayout.Label"; +_label1 = parent._lv_catalogos.getSingleLineLayout().Label; + //BA.debugLineNum = 196;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 197;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(parent.__c.Colors.White); + //BA.debugLineNum = 198;BA.debugLine="label1.Color = Colors.ARGB(58,255,255,255)"; +_label1.setColor(parent.__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255))); + //BA.debugLineNum = 199;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface.DEF"; +_label1.setTypeface(parent.__c.Typeface.CreateNew(parent.__c.Typeface.DEFAULT_BOLD,parent.__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 200;BA.debugLine="lv_catalogos.Width = Root.Width * 0.99"; +parent._lv_catalogos.setWidth((int) (parent._root.getWidth()*0.99)); + //BA.debugLineNum = 201;BA.debugLine="lv_catalogos.Clear"; +parent._lv_catalogos.Clear(); + //BA.debugLineNum = 202;BA.debugLine="lv_catalogos.AddSingleLine(\"PORTAFOLIO\")"; +parent._lv_catalogos.AddSingleLine(BA.ObjectToCharSequence("PORTAFOLIO")); + //BA.debugLineNum = 204;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select cou"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(*) as hayPromos from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" where CAT_GP_TIPO = 'PROMOS'")))); + //BA.debugLineNum = 205;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 207;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"SELECT CUE"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CUENTA FROM CUENTAA")))); + //BA.debugLineNum = 208;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 209;BA.debugLine="If c.GetString(\"CUENTA\") <> \"0\" And c.GetString(\""; +if (true) break; + +case 22: +//if +this.state = 44; +if ((parent._c.GetString("CUENTA")).equals("0") == false && (parent._c.GetString("CUENTA")).equals("1") == false) { +this.state = 24; +}if (true) break; + +case 24: +//C +this.state = 25; + //BA.debugLineNum = 210;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select CA"; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),new String[]{"PROMOS","PROMOS"}))); + //BA.debugLineNum = 211;BA.debugLine="LogColor($\"select CAT_GP_ID, CAT_GP_NOMBRE, CAT_"; +parent.__c.LogImpl("365667129",("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, IFNULL(CAT_GP_IMG,0) AS CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traetablaprods /*String*/ (ba,parent._tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa))"),parent.__c.Colors.Cyan); + //BA.debugLineNum = 213;BA.debugLine="Private hayPromos As Boolean = False"; +_haypromos = parent.__c.False; + //BA.debugLineNum = 214;BA.debugLine="If c2.RowCount > 0 Then"; +if (true) break; + +case 25: +//if +this.state = 43; +if (parent._c2.getRowCount()>0) { +this.state = 27; +}else { +this.state = 42; +}if (true) break; + +case 27: +//C +this.state = 28; + //BA.debugLineNum = 215;BA.debugLine="Log(\"Esto es un conteo --->\"&c2.RowCount) 'Isaa"; +parent.__c.LogImpl("365667133","Esto es un conteo --->"+BA.NumberToString(parent._c2.getRowCount()),0); + //BA.debugLineNum = 216;BA.debugLine="For i=0 To c2.RowCount -1"; +if (true) break; + +case 28: +//for +this.state = 35; +step59 = 1; +limit59 = (int) (parent._c2.getRowCount()-1); +_i = (int) (0) ; +this.state = 57; +if (true) break; + +case 57: +//C +this.state = 35; +if ((step59 > 0 && _i <= limit59) || (step59 < 0 && _i >= limit59)) this.state = 30; +if (true) break; + +case 58: +//C +this.state = 57; +_i = ((int)(0 + _i + step59)) ; +if (true) break; + +case 30: +//C +this.state = 31; + //BA.debugLineNum = 217;BA.debugLine="c2.Position = i"; +parent._c2.setPosition(_i); + //BA.debugLineNum = 218;BA.debugLine="Log(\"Esto es i----->\"& i)'Isaac"; +parent.__c.LogImpl("365667136","Esto es i----->"+BA.NumberToString(_i),0); + //BA.debugLineNum = 219;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G"; +_tm = new anywheresoftware.b4a.objects.collections.Map(); +_tm = parent._subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,parent._c2.GetString("CAT_GP_ID"),parent._clienteid); + //BA.debugLineNum = 220;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral"; +if (true) break; + +case 31: +//if +this.state = 34; +if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) { +this.state = 33; +}if (true) break; + +case 33: +//C +this.state = 34; + //BA.debugLineNum = 221;BA.debugLine="hayPromos = True"; +_haypromos = parent.__c.True; + if (true) break; + +case 34: +//C +this.state = 58; +; + if (true) break; +if (true) break; +; + //BA.debugLineNum = 224;BA.debugLine="If hayPromos Then lv_catalogos.AddSingleLine(\"P"; + +case 35: +//if +this.state = 40; +if (_haypromos) { +this.state = 37; +;}if (true) break; + +case 37: +//C +this.state = 40; +parent._lv_catalogos.AddSingleLine(BA.ObjectToCharSequence("PROMOCIONES")); +if (true) break; + +case 40: +//C +this.state = 43; +; + if (true) break; + +case 42: +//C +this.state = 43; + //BA.debugLineNum = 226;BA.debugLine="Log(\"NO HAY PROMOS\")"; +parent.__c.LogImpl("365667144","NO HAY PROMOS",0); + if (true) break; + +case 43: +//C +this.state = 44; +; + //BA.debugLineNum = 228;BA.debugLine="c2.Close"; +parent._c2.Close(); + if (true) break; + +case 44: +//C +this.state = 45; +; + //BA.debugLineNum = 231;BA.debugLine="Sleep(100)"; +parent.__c.Sleep(ba,this,(int) (100)); +this.state = 59; +return; +case 59: +//C +this.state = 45; +; + //BA.debugLineNum = 232;BA.debugLine="l_total.Visible =False"; +parent._l_total.setVisible(parent.__c.False); + //BA.debugLineNum = 233;BA.debugLine="l_totProds.Visible = False"; +parent._l_totprods.setVisible(parent.__c.False); + //BA.debugLineNum = 234;BA.debugLine="l_total.Left = 5dip"; +parent._l_total.setLeft(parent.__c.DipToCurrent((int) (5))); + //BA.debugLineNum = 235;BA.debugLine="l_totProds.Width = Root.Width * 0.19"; +parent._l_totprods.setWidth((int) (parent._root.getWidth()*0.19)); + //BA.debugLineNum = 236;BA.debugLine="l_total.Left = l_totProds.Width + 20"; +parent._l_total.setLeft((int) (parent._l_totprods.getWidth()+20)); + //BA.debugLineNum = 237;BA.debugLine="l_total.Width = Root.Width * 0.25"; +parent._l_total.setWidth((int) (parent._root.getWidth()*0.25)); + //BA.debugLineNum = 239;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = parent._subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba); + //BA.debugLineNum = 240;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")"; +parent._prodspedidoactual = BA.ObjectToString(_m.Get((Object)("productos"))); + //BA.debugLineNum = 241;BA.debugLine="montoPedidoActual = m.Get(\"monto\")"; +parent._montopedidoactual = BA.ObjectToString(_m.Get((Object)("monto"))); + //BA.debugLineNum = 242;BA.debugLine="hayPedido = Subs.hayPedido"; +parent._haypedido = parent._subs._haypedido /*boolean*/ (ba); + //BA.debugLineNum = 244;BA.debugLine="B4XPages.MainPage.productos.clv_prods_ll.Clear"; +parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._clv_prods_ll /*b4a.example3.customlistview*/ ._clear(); + //BA.debugLineNum = 245;BA.debugLine="If reiniciarlistaProds Then"; +if (true) break; + +case 45: +//if +this.state = 50; +if (parent._reiniciarlistaprods) { +this.state = 47; +}else if(parent._haypedido) { +this.state = 49; +}if (true) break; + +case 47: +//C +this.state = 50; + //BA.debugLineNum = 248;BA.debugLine="clv_prods_ll.Clear"; +parent._clv_prods_ll._clear(); + if (true) break; + +case 49: +//C +this.state = 50; + //BA.debugLineNum = 253;BA.debugLine="clv_prods_ll.Clear"; +parent._clv_prods_ll._clear(); + if (true) break; +; + //BA.debugLineNum = 255;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)"; + +case 50: +//if +this.state = 55; +if (parent._clv_prods_ll._getsize()==0) { +this.state = 52; +;}if (true) break; + +case 52: +//C +this.state = 55; +parent._llenaprodsll((anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(parent.__c.Null))); +if (true) break; + +case 55: +//C +this.state = -1; +; + //BA.debugLineNum = 256;BA.debugLine="clv_prods_ll.JumpToItem(0) 'Vamos al primer artíc"; +parent._clv_prods_ll._jumptoitem((int) (0)); + //BA.debugLineNum = 257;BA.debugLine="PCLV.lblHint.SetTextSizeAnimated(0,13)"; +parent._pclv._lblhint /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextSizeAnimated((int) (0),(float) (13)); + //BA.debugLineNum = 258;BA.debugLine="PCLV.B4XSeekBar1.Color1=Colors.DarkGray"; +parent._pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._color1 /*int*/ = parent.__c.Colors.DarkGray; + //BA.debugLineNum = 259;BA.debugLine="PCLV.B4XSeekBar1.Color2=Colors.DarkGray"; +parent._pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._color2 /*int*/ = parent.__c.Colors.DarkGray; + //BA.debugLineNum = 260;BA.debugLine="PCLV.B4XSeekBar1.ThumbColor=Colors.red"; +parent._pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._thumbcolor /*int*/ = parent.__c.Colors.Red; + //BA.debugLineNum = 261;BA.debugLine="PCLV.B4XSeekBar1.mBase.Left=Root.Width *0.91"; +parent._pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setLeft((int) (parent._root.getWidth()*0.91)); + //BA.debugLineNum = 263;BA.debugLine="PCLV.B4XSeekBar1.mBase.Height=clv_prods_ll.AsView"; +parent._pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setHeight(parent._clv_prods_ll._asview().getHeight()); + //BA.debugLineNum = 264;BA.debugLine="PCLV.pnlOverlay.Height = clv_prods_ll.AsView.Heig"; +parent._pclv._pnloverlay /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setHeight(parent._clv_prods_ll._asview().getHeight()); + //BA.debugLineNum = 265;BA.debugLine="PCLV.B4XSeekBar1.Update"; +parent._pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._update /*String*/ (); + //BA.debugLineNum = 269;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +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(gunav2.keymon.com.mx.c_productos parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 635;BA.debugLine="If l_info.Visible Then"; +if (true) break; + +case 1: +//if +this.state = 16; +if (parent._l_info.getVisible()) { +this.state = 3; +}else if(parent._p_vistapreviatrans.getVisible()) { +this.state = 5; +}else if(parent._lv_promos.getVisible()) { +this.state = 7; +}else if(parent._clv_prods_ll._asview().getVisible()) { +this.state = 9; +}else if((parent._entro).equals("4")) { +this.state = 11; +}else if((parent._entro).equals("3")) { +this.state = 13; +}else { +this.state = 15; +}if (true) break; + +case 3: +//C +this.state = 16; + //BA.debugLineNum = 636;BA.debugLine="l_info.Visible = False"; +parent._l_info.setVisible(parent.__c.False); + //BA.debugLineNum = 637;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060293","AQUI",0); + //BA.debugLineNum = 638;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 5: +//C +this.state = 16; + //BA.debugLineNum = 640;BA.debugLine="p_vistaPreviaTrans.Visible = False"; +parent._p_vistapreviatrans.setVisible(parent.__c.False); + //BA.debugLineNum = 641;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060297","AQUI",0); + //BA.debugLineNum = 642;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 7: +//C +this.state = 16; + //BA.debugLineNum = 644;BA.debugLine="lv_promos.Visible = False"; +parent._lv_promos.setVisible(parent.__c.False); + //BA.debugLineNum = 645;BA.debugLine="lv_catalogos.Visible = True"; +parent._lv_catalogos.setVisible(parent.__c.True); + //BA.debugLineNum = 646;BA.debugLine="p_botonesVenta.Visible = False"; +parent._p_botonesventa.setVisible(parent.__c.False); + //BA.debugLineNum = 647;BA.debugLine="l_total.Visible = False"; +parent._l_total.setVisible(parent.__c.False); + //BA.debugLineNum = 648;BA.debugLine="l_totProds.Visible = False"; +parent._l_totprods.setVisible(parent.__c.False); + //BA.debugLineNum = 649;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060305","AQUI",0); + //BA.debugLineNum = 650;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 9: +//C +this.state = 16; + //BA.debugLineNum = 652;BA.debugLine="lfila.text = \"PORTAFOLIO\""; +parent._lfila.setText(BA.ObjectToCharSequence("PORTAFOLIO")); + //BA.debugLineNum = 653;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +parent._clv_prods_ll._asview().setVisible(parent.__c.False); + //BA.debugLineNum = 654;BA.debugLine="lv_subtipo.Visible = False"; +parent._lv_subtipo.setVisible(parent.__c.False); + //BA.debugLineNum = 655;BA.debugLine="p_botonesVenta.Visible = False"; +parent._p_botonesventa.setVisible(parent.__c.False); + //BA.debugLineNum = 656;BA.debugLine="l_total.Visible = False"; +parent._l_total.setVisible(parent.__c.False); + //BA.debugLineNum = 657;BA.debugLine="l_totProds.Visible = False"; +parent._l_totprods.setVisible(parent.__c.False); + //BA.debugLineNum = 658;BA.debugLine="lv_catalogos.Visible = True"; +parent._lv_catalogos.setVisible(parent.__c.True); + //BA.debugLineNum = 659;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060315","AQUI",0); + //BA.debugLineNum = 660;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 11: +//C +this.state = 16; + //BA.debugLineNum = 673;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060329","AQUI",0); + //BA.debugLineNum = 675;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 676;BA.debugLine="Return True"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.True));return;}; + if (true) break; + +case 13: +//C +this.state = 16; + //BA.debugLineNum = 678;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 679;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060335","AQUI",0); + //BA.debugLineNum = 680;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 682;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 683;BA.debugLine="Log(\"AQUI\")"; +parent.__c.LogImpl("366060339","AQUI",0); + //BA.debugLineNum = 684;BA.debugLine="Return False"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + if (true) break; + +case 16: +//C +this.state = -1; +; + //BA.debugLineNum = 686;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _i = 0; + //BA.debugLineNum = 113;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 114;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 117;BA.debugLine="Root.LoadLayout(\"productos\")"; +_root.LoadLayout("productos",ba); + //BA.debugLineNum = 118;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 119;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 120;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 122;BA.debugLine="PCLV.Initialize(Me, \"PCLV\", clv_prods_ll)"; +_pclv._initialize /*String*/ (ba,this,"PCLV",_clv_prods_ll); + //BA.debugLineNum = 123;BA.debugLine="ciclo = 1"; +_ciclo = BA.NumberToString(1); + //BA.debugLineNum = 124;BA.debugLine="l_info.Width = Root.Width * 0.8"; +_l_info.setWidth((int) (_root.getWidth()*0.8)); + //BA.debugLineNum = 125;BA.debugLine="l_info.Left = (Root.Width/2) - (l_info.Width/2)"; +_l_info.setLeft((int) ((_root.getWidth()/(double)2)-(_l_info.getWidth()/(double)2))); + //BA.debugLineNum = 126;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select dist"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_GP_TIPO from cat_gunaprod where CAT_GP_TIPO <> 'PROMOS' order by CAT_GP_TIPO"))); + //BA.debugLineNum = 127;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 128;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 129;BA.debugLine="label1 = lv_tipo.SingleLineLayout.Label"; +_label1 = _lv_tipo.getSingleLineLayout().Label; + //BA.debugLineNum = 130;BA.debugLine="label1.TextSize = 17"; +_label1.setTextSize((float) (17)); + //BA.debugLineNum = 131;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 132;BA.debugLine="lv_tipo.Clear"; +_lv_tipo.Clear(); + //BA.debugLineNum = 133;BA.debugLine="For i=0 To c.RowCount-1"; +{ +final int step18 = 1; +final int limit18 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit18 ;_i = _i + step18 ) { + //BA.debugLineNum = 134;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 135;BA.debugLine="Log(\"ENTRE AQUI EN PROMOS create\")"; +__c.LogImpl("365601558","ENTRE AQUI EN PROMOS create",0); + //BA.debugLineNum = 136;BA.debugLine="lv_tipo.AddSingleLine(c.GetString(\"CAT_GP_TIPO\""; +_lv_tipo.AddSingleLine(BA.ObjectToCharSequence(_c.GetString("CAT_GP_TIPO"))); + } +}; + }; + //BA.debugLineNum = 139;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 142;BA.debugLine="listaTiempos.Initialize"; +_listatiempos.Initialize(); + //BA.debugLineNum = 143;BA.debugLine="listaProds.Initialize"; +_listaprods.Initialize(); + //BA.debugLineNum = 144;BA.debugLine="pedidoMap.Initialize"; +_pedidomap.Initialize(); + //BA.debugLineNum = 145;BA.debugLine="listaHints.Initialize"; +_listahints.Initialize(); + //BA.debugLineNum = 148;BA.debugLine="clv_prods_ll.Clear"; +_clv_prods_ll._clear(); + //BA.debugLineNum = 149;BA.debugLine="prodsMap.Initialize"; +_prodsmap.Initialize(); + //BA.debugLineNum = 150;BA.debugLine="End Sub"; +return ""; +} +public void _busca_textchanged(String _old,String _new) throws Exception{ +ResumableSub_Busca_TextChanged rsub = new ResumableSub_Busca_TextChanged(this,_old,_new); +rsub.resume(ba, null); +} +public static class ResumableSub_Busca_TextChanged extends BA.ResumableSub { +public ResumableSub_Busca_TextChanged(gunav2.keymon.com.mx.c_productos parent,String _old,String _new) { +this.parent = parent; +this._old = _old; +this._new = _new; +} +gunav2.keymon.com.mx.c_productos parent; +String _old; +String _new; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _p = 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 = 1750;BA.debugLine="If Not(clv_prods_ll.AsView.Visible) Then clv_prod"; +if (true) break; + +case 1: +//if +this.state = 6; +if (parent.__c.Not(parent._clv_prods_ll._asview().getVisible())) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +parent._clv_prods_ll._asview().setVisible(parent.__c.True); +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 1751;BA.debugLine="If (New.Length = 1 Or New.Length = 2) And Not(for"; +if (true) break; + +case 7: +//if +this.state = 12; +if ((_new.length()==1 || _new.length()==2) && parent.__c.Not(parent._forzarbusqueda)) { +this.state = 9; +;}if (true) break; + +case 9: +//C +this.state = 12; +if (true) return ; +if (true) break; + +case 12: +//C +this.state = -1; +; + //BA.debugLineNum = 1752;BA.debugLine="forzarBusqueda = False"; +parent._forzarbusqueda = parent.__c.False; + //BA.debugLineNum = 1753;BA.debugLine="clv_prods_ll.Clear"; +parent._clv_prods_ll._clear(); + //BA.debugLineNum = 1754;BA.debugLine="listaProds.Initialize"; +parent._listaprods.Initialize(); + //BA.debugLineNum = 1755;BA.debugLine="listaHints.Initialize"; +parent._listahints.Initialize(); + //BA.debugLineNum = 1756;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 13; +return; +case 13: +//C +this.state = -1; +; + //BA.debugLineNum = 1761;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exec"; +_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_NOMBRE like '%"+parent.__c.SmartStringFormatter("",(Object)(_new))+"%' AND CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN > 0 And CAT_GP_CLASIF <> 'PROMOS' AND CAT_GP_TIPO <> 'PROMOCION' union all select DISTINCT CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_ALMACEN, CAT_GP_PRECIO, CAT_GP_TIPOPROD, CAT_LISTAPRECIO from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" LEFT JOIN PEDIDO ON CAT_GP_ID = PE_PROID where CAT_GP_PRECIO > 0 And CAT_GP_ALMACEN = 0 And CAT_GP_CLASIF <> 'PROMOS' and cat_gp_id in (select pe_proid from pedido where pe_cliente in (select cuenta from cuentaa)) order by 2")))); + //BA.debugLineNum = 1763;BA.debugLine="Log(\"Llamamos LlenaProdsLL\")"; +parent.__c.LogImpl("367436559","Llamamos LlenaProdsLL",0); + //BA.debugLineNum = 1764;BA.debugLine="LlenaProdsLL(p)"; +parent._llenaprodsll(_p); + //BA.debugLineNum = 1783;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +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 ruta As String"; +_ruta = ""; + //BA.debugLineNum = 5;BA.debugLine="Dim q_buscar As String"; +_q_buscar = ""; + //BA.debugLineNum = 6;BA.debugLine="Dim forzarBusqueda As Boolean = False"; +_forzarbusqueda = __c.False; + //BA.debugLineNum = 7;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 9;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Dim C3 As Cursor"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim s As Cursor"; +_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim lv_catalogos As ListView"; +_lv_catalogos = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim lv_promos As ListView"; +_lv_promos = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Dim entro As String"; +_entro = ""; + //BA.debugLineNum = 15;BA.debugLine="Dim gest As Button"; +_gest = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim lfila As Label"; +_lfila = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim marca As String"; +_marca = ""; + //BA.debugLineNum = 18;BA.debugLine="Dim tipo As String"; +_tipo = ""; + //BA.debugLineNum = 19;BA.debugLine="Dim subtipo As String"; +_subtipo = ""; + //BA.debugLineNum = 20;BA.debugLine="Private BUSCA As EditText"; +_busca = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 21;BA.debugLine="Dim ya_entro As String"; +_ya_entro = ""; + //BA.debugLineNum = 22;BA.debugLine="Dim TIENE_PROMOS As String"; +_tiene_promos = ""; + //BA.debugLineNum = 23;BA.debugLine="Dim RES As String"; +_res = ""; + //BA.debugLineNum = 24;BA.debugLine="Dim S1 As Cursor"; +_s1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Dim bmp As Bitmap"; +_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim ciclo As String"; +_ciclo = ""; + //BA.debugLineNum = 27;BA.debugLine="Private b_qr As Button"; +_b_qr = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Private p_productos As Panel"; +_p_productos = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Dim clv_productos As CustomListView"; +_clv_productos = new b4a.example3.customlistview(); + //BA.debugLineNum = 30;BA.debugLine="Private ImageView1 As ImageView"; +_imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Private Panel3 As Panel"; +_panel3 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 32;BA.debugLine="Private p_prods As Panel"; +_p_prods = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Private i_prod As ImageView"; +_i_prod = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Private l_prodX As Label"; +_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Private b_prodMas As Button"; +_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 36;BA.debugLine="Private l_pCant As Label"; +_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 37;BA.debugLine="Private et_pCant As EditText"; +_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Private b_prodMenos As Button"; +_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Dim b_terminar1 As Button"; +_b_terminar1 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 40;BA.debugLine="Dim b_continuar As Button"; +_b_continuar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 41;BA.debugLine="Private l_total As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 42;BA.debugLine="Private l_totProds As Label"; +_l_totprods = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 43;BA.debugLine="Dim totalProds As Int = 0"; +_totalprods = (int) (0); + //BA.debugLineNum = 44;BA.debugLine="Dim totalCompra As Float = 0"; +_totalcompra = (float) (0); + //BA.debugLineNum = 45;BA.debugLine="Dim etCantHasFocus As Boolean = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 46;BA.debugLine="Dim prodsMap As Map"; +_prodsmap = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 47;BA.debugLine="Private l_Cargando As Label"; +_l_cargando = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 48;BA.debugLine="Private l_info As Label"; +_l_info = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 49;BA.debugLine="Private b_buscar As Button"; +_b_buscar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 50;BA.debugLine="Private p_botonesVenta As Panel"; +_p_botonesventa = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 51;BA.debugLine="Private lv_tipo As ListView"; +_lv_tipo = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 52;BA.debugLine="Private lv_subtipo As ListView"; +_lv_subtipo = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 53;BA.debugLine="Private p_vistaPreviaTrans As Panel"; +_p_vistapreviatrans = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 54;BA.debugLine="Private lv_prodsPedido As ListView"; +_lv_prodspedido = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 55;BA.debugLine="Private b_rechazar As Button"; +_b_rechazar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 56;BA.debugLine="Private b_aceptar As Button"; +_b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 57;BA.debugLine="Private p_vistaPrevia As Panel"; +_p_vistaprevia = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 58;BA.debugLine="Dim folio As String"; +_folio = ""; + //BA.debugLineNum = 59;BA.debugLine="Dim result As String"; +_result = ""; + //BA.debugLineNum = 60;BA.debugLine="Private l_cant As Label"; +_l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 61;BA.debugLine="Private l_total2 As Label"; +_l_total2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 62;BA.debugLine="Dim prodsPedidoActual As String"; +_prodspedidoactual = ""; + //BA.debugLineNum = 63;BA.debugLine="Dim montoPedidoActual As String"; +_montopedidoactual = ""; + //BA.debugLineNum = 64;BA.debugLine="Dim tipo_venta As String = Subs.traeTipoVentaDeBD"; +_tipo_venta = _subs._traetipoventadebd /*String*/ (ba); + //BA.debugLineNum = 65;BA.debugLine="Dim clv_prods_ll As CustomListView"; +_clv_prods_ll = new b4a.example3.customlistview(); + //BA.debugLineNum = 66;BA.debugLine="Private PCLV As PreoptimizedCLV"; +_pclv = new gunav2.keymon.com.mx.preoptimizedclv(); + //BA.debugLineNum = 67;BA.debugLine="Dim listaProds As List"; +_listaprods = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 69;BA.debugLine="Dim pedidoMap As Map"; +_pedidomap = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 70;BA.debugLine="Private p_botMasMen As Panel"; +_p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 71;BA.debugLine="Dim reiniciarlistaProds As Boolean= False"; +_reiniciarlistaprods = __c.False; + //BA.debugLineNum = 73;BA.debugLine="Dim listaTiempos As List"; +_listatiempos = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 74;BA.debugLine="Dim clienteId As String"; +_clienteid = ""; + //BA.debugLineNum = 75;BA.debugLine="Dim rutaUsuario As String"; +_rutausuario = ""; + //BA.debugLineNum = 76;BA.debugLine="Dim hayPedido As Boolean"; +_haypedido = false; + //BA.debugLineNum = 77;BA.debugLine="Dim listaHints As List"; +_listahints = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 78;BA.debugLine="Dim r As Cursor"; +_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 79;BA.debugLine="Dim vamoaver As List"; +_vamoaver = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 80;BA.debugLine="Dim j3 As Cursor"; +_j3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 81;BA.debugLine="Dim invTotal As Int"; +_invtotal = 0; + //BA.debugLineNum = 82;BA.debugLine="Private et_pCantc As EditText"; +_et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 83;BA.debugLine="Private b_prodMenosc As Button"; +_b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 84;BA.debugLine="Private b_prodMasc As Button"; +_b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 85;BA.debugLine="Dim totalcajasmaspiezas As Int"; +_totalcajasmaspiezas = 0; + //BA.debugLineNum = 86;BA.debugLine="Dim cajas As Int"; +_cajas = 0; + //BA.debugLineNum = 87;BA.debugLine="Dim piezas As Int"; +_piezas = 0; + //BA.debugLineNum = 88;BA.debugLine="Dim P_CALATOLOS As Panel"; +_p_calatolos = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 90;BA.debugLine="Dim Panel2 As Panel"; +_panel2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 91;BA.debugLine="Private p_botMasMenc As Panel"; +_p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 92;BA.debugLine="Private p_promodesc As Panel"; +_p_promodesc = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 93;BA.debugLine="Private l_promodesc As Label"; +_l_promodesc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 94;BA.debugLine="Private b_okpromodesc As Button"; +_b_okpromodesc = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 95;BA.debugLine="Private p_devo As Panel"; +_p_devo = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 96;BA.debugLine="Private l_proddev As Label"; +_l_proddev = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 97;BA.debugLine="Private b_devmas As Button"; +_b_devmas = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 98;BA.debugLine="Private l_cantdev As Label"; +_l_cantdev = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 99;BA.debugLine="Private b_devmenos As Button"; +_b_devmenos = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 100;BA.debugLine="Private b_acep_dev As Button"; +_b_acep_dev = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 103;BA.debugLine="Dim preciodev As Double"; +_preciodev = 0; + //BA.debugLineNum = 104;BA.debugLine="Dim nombredev As String"; +_nombredev = ""; + //BA.debugLineNum = 105;BA.debugLine="End Sub"; +return ""; +} +public String _clv_prods_ll_itemclick(int _index,Object _value) throws Exception{ + //BA.debugLineNum = 1529;BA.debugLine="Private Sub clv_prods_ll_ItemClick (Index As Int,"; + //BA.debugLineNum = 1531;BA.debugLine="End Sub"; +return ""; +} +public String _clv_prods_ll_visiblerangechanged(int _firstindex,int _lastindex) throws Exception{ +int _extrasize = 0; +int _i = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +String _precio = ""; + //BA.debugLineNum = 1579;BA.debugLine="Private Sub clv_prods_ll_VisibleRangeChanged (Firs"; + //BA.debugLineNum = 1623;BA.debugLine="Dim ExtraSize As Int = 15 'List size"; +_extrasize = (int) (15); + //BA.debugLineNum = 1624;BA.debugLine="For i = Max(0, FirstIndex - ExtraSize) To Min(Las"; +{ +final int step2 = 1; +final int limit2 = (int) (__c.Min(_lastindex+_extrasize,_clv_prods_ll._getsize()-1)); +_i = (int) (__c.Max(0,_firstindex-_extrasize)) ; +for (;_i <= limit2 ;_i = _i + step2 ) { + //BA.debugLineNum = 1625;BA.debugLine="Dim Pnl As B4XView = clv_prods_ll.GetPanel(i)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _clv_prods_ll._getpanel(_i); + //BA.debugLineNum = 1626;BA.debugLine="If i > FirstIndex - ExtraSize And i < LastIndex"; +if (_i>_firstindex-_extrasize && _i<_lastindex+_extrasize) { + //BA.debugLineNum = 1628;BA.debugLine="If Pnl.NumberOfViews = 0 Then 'Add each item/la"; +if (_pnl.getNumberOfViews()==0) { + //BA.debugLineNum = 1629;BA.debugLine="Pnl.LoadLayout(\"proditem\")"; +_pnl.LoadLayout("proditem",ba); + //BA.debugLineNum = 1631;BA.debugLine="p_prods.Width = Root.Width * 0.92"; +_p_prods.setWidth((int) (_root.getWidth()*0.92)); + //BA.debugLineNum = 1632;BA.debugLine="p_botMasMen.Left = p_prods.Width - (p_botMasMe"; +_p_botmasmen.setLeft((int) (_p_prods.getWidth()-(_p_botmasmen.getWidth()+5))); + //BA.debugLineNum = 1633;BA.debugLine="p_botMasMenc.Left = p_prods.Width - (p_botMasM"; +_p_botmasmenc.setLeft((int) (_p_prods.getWidth()-(_p_botmasmen.getWidth()+5))); + //BA.debugLineNum = 1634;BA.debugLine="p_prods.Height = 134dip"; +_p_prods.setHeight(__c.DipToCurrent((int) (134))); + //BA.debugLineNum = 1642;BA.debugLine="Pnl.SetLayoutAnimated(0,0,0,Pnl.Width,145dip)"; +_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_pnl.getWidth(),__c.DipToCurrent((int) (145))); + //BA.debugLineNum = 1643;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 1644;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 1645;BA.debugLine="l_prodX.SetTextSizeAnimated(0, 13)"; +_l_prodx.SetTextSizeAnimated((int) (0),(float) (13)); + //BA.debugLineNum = 1646;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant\""; +if (((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant"))!= null && (double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant"))))>0) { + //BA.debugLineNum = 1647;BA.debugLine="p_prods.Color=0xFFE2EEFF"; +_p_prods.setColor(((int)0xffe2eeff)); + //BA.debugLineNum = 1652;BA.debugLine="et_pCant.TextColor=Colors.Red"; +_et_pcant.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1653;BA.debugLine="et_pCantc.TextColor=Colors.Red"; +_et_pcantc.setTextColor(__c.Colors.Red); + //BA.debugLineNum = 1654;BA.debugLine="If Subs.pedidoGuardado Then"; +if (_subs._pedidoguardado /*boolean*/ (ba)) { + //BA.debugLineNum = 1656;BA.debugLine="et_pCant.Enabled = False"; +_et_pcant.setEnabled(__c.False); + //BA.debugLineNum = 1658;BA.debugLine="b_prodMenos.Enabled = False"; +_b_prodmenos.setEnabled(__c.False); + }; + }else { + //BA.debugLineNum = 1661;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"prio"; +if ((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("PRIORITARIO"))) { + //BA.debugLineNum = 1662;BA.debugLine="p_prods.Color = Colors.RGB(255, 212, 163) 'n"; +_p_prods.setColor(__c.Colors.RGB((int) (255),(int) (212),(int) (163))); + }else if((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("COMPLEMENTARIO"))) { + //BA.debugLineNum = 1665;BA.debugLine="p_prods.Color = Colors.RGB(177, 200, 249)'az"; +_p_prods.setColor(__c.Colors.RGB((int) (177),(int) (200),(int) (249))); + }else if((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("CATALOGO REGULAR"))) { + //BA.debugLineNum = 1668;BA.debugLine="p_prods.Color = Colors.White"; +_p_prods.setColor(__c.Colors.White); + }else if((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("prioridad"))).equals((Object)("ESTRATEGICO"))) { + //BA.debugLineNum = 1671;BA.debugLine="p_prods.Color = Colors.RGB(241, 255, 163) 'a"; +_p_prods.setColor(__c.Colors.RGB((int) (241),(int) (255),(int) (163))); + }; + }; + //BA.debugLineNum = 1675;BA.debugLine="Private precio As String=NumberFormat2(clv_pro"; +_precio = __c.NumberFormat2(((double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("precio"))))),(int) (1),(int) (2),(int) (2),__c.False); + //BA.debugLineNum = 1686;BA.debugLine="If clv_prods_ll.GetValue(i).As(Map).Get(\"cant"; +if (((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant"))!= null) { +_et_pcant.setText(BA.ObjectToCharSequence(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("cant"))));}; + //BA.debugLineNum = 1718;BA.debugLine="l_prodX.Text = cs.Color(Colors.red).append(clv"; +_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("prod")))).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_i)))).Get((Object)("almacen"))))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(_precio))+""))).PopAll().getObject())); + }; + }else { + }; + //BA.debugLineNum = 1743;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size - Fir"; +_pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._setvalue /*int*/ ((int) (_clv_prods_ll._getsize()-_firstindex)); + } +}; + //BA.debugLineNum = 1746;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc) throws Exception{ + //BA.debugLineNum = 717;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; + //BA.debugLineNum = 732;BA.debugLine="End Sub"; +return null; +} +public String _cuentaprods() throws Exception{ + //BA.debugLineNum = 1153;BA.debugLine="Sub cuentaProds"; + //BA.debugLineNum = 1155;BA.debugLine="Log(\"===========================\")"; +__c.LogImpl("366519042","===========================",0); + //BA.debugLineNum = 1156;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(PE_COSTO_TOT) as total, sum(PE_CANT) as cant from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clienteid))+"'")))); + //BA.debugLineNum = 1159;BA.debugLine="p_botonesVenta.Visible = True"; +_p_botonesventa.setVisible(__c.True); + //BA.debugLineNum = 1160;BA.debugLine="p_botonesVenta.BringToFront"; +_p_botonesventa.BringToFront(); + //BA.debugLineNum = 1161;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1163;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1165;BA.debugLine="End Sub"; +return ""; +} +public String _et_pcant_focuschanged(boolean _hasfocus) 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.B4XViewWrapper _lacant2 = null; +String _id = ""; + //BA.debugLineNum = 983;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo"; + //BA.debugLineNum = 984;BA.debugLine="LogColor($\"focus changed=${HasFocus}\"$, Colors.Ma"; +__c.LogImpl("366387969",("focus changed="+__c.SmartStringFormatter("",(Object)(_hasfocus))+""),__c.Colors.Magenta); + //BA.debugLineNum = 985;BA.debugLine="If et_pCant.Text = \"\" Then et_pCant.Text = \"0\""; +if ((_et_pcant.getText()).equals("")) { +_et_pcant.setText(BA.ObjectToCharSequence("0"));}; + //BA.debugLineNum = 986;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView(S"; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 987;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(index"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prods_ll._getpanel(_index); + //BA.debugLineNum = 988;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 989;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (2)); + //BA.debugLineNum = 990;BA.debugLine="Dim laCant2 As B4XView = pnl.GetView(3).GetView(2"; +_lacant2 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant2 = _pnl.GetView((int) (3)).GetView((int) (2)); + //BA.debugLineNum = 991;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index)"; +_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("id"))); + //BA.debugLineNum = 992;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = \"0\""; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence("0"));}; + //BA.debugLineNum = 993;BA.debugLine="etCantHasFocus = HasFocus"; +_etcanthasfocus = _hasfocus; + //BA.debugLineNum = 994;BA.debugLine="LogColor(laCant.Text,Colors.Red)"; +__c.LogImpl("366387979",_lacant.getText(),__c.Colors.Red); + //BA.debugLineNum = 995;BA.debugLine="If laCant2.IsInitialized Then"; +if (_lacant2.IsInitialized()) { + //BA.debugLineNum = 996;BA.debugLine="totalcajasmaspiezas = laCant.Text + laCant2.Text"; +_totalcajasmaspiezas = (int) ((double)(Double.parseDouble(_lacant.getText()))+(double)(Double.parseDouble(_lacant2.getText()))); + }else { + //BA.debugLineNum = 998;BA.debugLine="totalcajasmaspiezas = laCant.Text"; +_totalcajasmaspiezas = (int)(Double.parseDouble(_lacant.getText())); + }; + //BA.debugLineNum = 1000;BA.debugLine="invTotal = totalcajasmaspiezas + Subs.traeinventa"; +_invtotal = (int) (_totalcajasmaspiezas+(double)(Double.parseDouble(_subs._traeinventario /*String*/ (ba,_id)))); + //BA.debugLineNum = 1003;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 1004;BA.debugLine="End Sub"; +return ""; +} +public String _et_pcant_textchanged(String _old,String _new) 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.B4XViewWrapper _lprodx = null; +String _id = ""; +String _precio = ""; +String _inv = ""; +String _nombrex = ""; +anywheresoftware.b4a.objects.B4XViewWrapper _panelpiezas = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null; +String _invactualizado = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null; +double _totaldev = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null; +double _totalprod = 0; + //BA.debugLineNum = 1006;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N"; + //BA.debugLineNum = 1009;BA.debugLine="If etCantHasFocus = True Then"; +if (_etcanthasfocus==__c.True) { + //BA.debugLineNum = 1010;BA.debugLine="LogColor($\"txt changed: ${Old}|${New}, hasfocus="; +__c.LogImpl("366453508",("txt changed: "+__c.SmartStringFormatter("",(Object)(_old))+"|"+__c.SmartStringFormatter("",(Object)(_new))+", hasfocus="+__c.SmartStringFormatter("",(Object)(_etcanthasfocus))+""),__c.Colors.Magenta); + //BA.debugLineNum = 1011;BA.debugLine="Dim index As Int = clv_prods_ll.GetItemFromView("; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 1012;BA.debugLine="Dim pnl0 As B4XView = clv_prods_ll.GetPanel(inde"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prods_ll._getpanel(_index); + //BA.debugLineNum = 1013;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 1014;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(2"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (2)); + //BA.debugLineNum = 1016;BA.debugLine="Dim lProdX As B4XView = pnl.GetView(1)"; +_lprodx = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lprodx = _pnl.GetView((int) (1)); + //BA.debugLineNum = 1017;BA.debugLine="Private id As String=clv_prods_ll.GetValue(index"; +_id = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("id"))); + //BA.debugLineNum = 1018;BA.debugLine="Private precio As String=clv_prods_ll.GetValue(i"; +_precio = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("precio"))); + //BA.debugLineNum = 1019;BA.debugLine="Private inv As String=clv_prods_ll.GetValue(inde"; +_inv = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_clv_prods_ll._getvalue(_index)))).Get((Object)("almacen"))); + //BA.debugLineNum = 1020;BA.debugLine="Private inv As String=Subs.traeinventario(id)"; +_inv = _subs._traeinventario /*String*/ (ba,_id); + //BA.debugLineNum = 1021;BA.debugLine="Private nombreX As String = Subs.traeProdNombre("; +_nombrex = _subs._traeprodnombre /*String*/ (ba,_id); + //BA.debugLineNum = 1023;BA.debugLine="Dim panelpiezas As B4XView = pnl.GetView(2)"; +_panelpiezas = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_panelpiezas = _pnl.GetView((int) (2)); + //BA.debugLineNum = 1026;BA.debugLine="If(New = \"\" Or New = Null Or New = \"-\") Then New"; +if (((_new).equals("") || _new== null || (_new).equals("-"))) { +_new = BA.NumberToString(0);}; + //BA.debugLineNum = 1028;BA.debugLine="If(New > invTotal) Then"; +if (((double)(Double.parseDouble(_new))>_invtotal)) { + //BA.debugLineNum = 1029;BA.debugLine="Sender.As(EditText).text = invTotal"; +((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(__c.Sender(ba)))).setText(BA.ObjectToCharSequence(_invtotal)); + }; + //BA.debugLineNum = 1033;BA.debugLine="If New = \"\" Then New = 0"; +if ((_new).equals("")) { +_new = BA.NumberToString(0);}; + //BA.debugLineNum = 1034;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1035;BA.debugLine="LogColor(laCant.Text,Colors.Red)"; +__c.LogImpl("366453533",_lacant.getText(),__c.Colors.Red); + //BA.debugLineNum = 1049;BA.debugLine="If Not(Old = \"0\" And New = \"\") And laCant.Text <"; +if (__c.Not((_old).equals("0") && (_new).equals("")) && _lacant.getText()!= null && (_lacant.getText()).equals("") == false && _etcanthasfocus) { + //BA.debugLineNum = 1050;BA.debugLine="Log(\"actualizamos producto\")"; +__c.LogImpl("366453548","actualizamos producto",0); + //BA.debugLineNum = 1051;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 1052;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci"; +_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(1)); + }else { + //BA.debugLineNum = 1054;BA.debugLine="Subs.actualizaProducto(Subs.traeAlmacen, preci"; +_subs._actualizaproducto /*String*/ (ba,_subs._traealmacen /*String*/ (ba),_precio,_lacant.getText(),_subs._traeprodnombre /*String*/ (ba,_id),_id,_clienteid,_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0),BA.NumberToString(0)); + }; + //BA.debugLineNum = 1057;BA.debugLine="cuentaProds"; +_cuentaprods(); + }; + //BA.debugLineNum = 1070;BA.debugLine="If 1 = 1 Then"; +if (1==1) { + //BA.debugLineNum = 1071;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 1072;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 1073;BA.debugLine="Private o As Cursor = Starter.skmt.ExecQuery($\""; +_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*/ .ExecQuery(("select CAT_GP_ALMACEN from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 1074;BA.debugLine="Private invActualizado As String = \"0\""; +_invactualizado = "0"; + //BA.debugLineNum = 1076;BA.debugLine="o.Position = 0"; +_o.setPosition((int) (0)); + //BA.debugLineNum = 1077;BA.debugLine="invActualizado = Subs.traeinventario(id)"; +_invactualizado = _subs._traeinventario /*String*/ (ba,_id); + //BA.debugLineNum = 1078;BA.debugLine="Log(Subs.traeinventario(id))"; +__c.LogImpl("366453576",_subs._traeinventario /*String*/ (ba,_id),0); + //BA.debugLineNum = 1089;BA.debugLine="lProdX.Text = cs.Color(Colors.red).append(nombr"; +_lprodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.Red).Append(BA.ObjectToCharSequence(_nombrex)).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence("Existencias: "+(_subs._traeinventario /*String*/ (ba,_id)))).Color(((int)0xff017f01)).Append(BA.ObjectToCharSequence((" $"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_precio)),(int) (1),(int) (2),(int) (2),__c.False)))+""))).PopAll().getObject())); + }; + //BA.debugLineNum = 1103;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))); + //BA.debugLineNum = 1104;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1105;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1106;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt"; +__c.LogImpl("366453604",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0); + //BA.debugLineNum = 1107;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N"; +_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART"))); + //BA.debugLineNum = 1108;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON"; +_l_total.setText(BA.ObjectToCharSequence("Total: $"+_c.GetString("PC_MONTO"))); + //BA.debugLineNum = 1109;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\""; +if (_l_total.getText()== null || (_l_total.getText()).equals("null") || (_l_total.getText()).equals("")) { +_l_total.setText(BA.ObjectToCharSequence("Total: $0.0"));}; + //BA.debugLineNum = 1110;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text ="; +if (_l_totprods.getText()== null || (_l_totprods.getText()).equals("null") || (_l_totprods.getText()).equals("")) { +_l_totprods.setText(BA.ObjectToCharSequence("Prods: 0"));}; + }; + //BA.debugLineNum = 1113;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))); + //BA.debugLineNum = 1114;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1115;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1116;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt"; +__c.LogImpl("366453614",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0); + //BA.debugLineNum = 1117;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N"; +_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART"))); + //BA.debugLineNum = 1118;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON"; +_l_total.setText(BA.ObjectToCharSequence("Total: $"+_c.GetString("PC_MONTO"))); + //BA.debugLineNum = 1119;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\""; +if (_l_total.getText()== null || (_l_total.getText()).equals("null") || (_l_total.getText()).equals("")) { +_l_total.setText(BA.ObjectToCharSequence("Total: $0.0"));}; + //BA.debugLineNum = 1120;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text ="; +if (_l_totprods.getText()== null || (_l_totprods.getText()).equals("null") || (_l_totprods.getText()).equals("")) { +_l_totprods.setText(BA.ObjectToCharSequence("Prods: 0"));}; + }; + //BA.debugLineNum = 1126;BA.debugLine="Dim c7 As Cursor = B4XPages.MainPage.skmt.ExecQu"; +_c7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS = 'DUR'"))); + //BA.debugLineNum = 1127;BA.debugLine="If c7.RowCount > 0 Then"; +if (_c7.getRowCount()>0) { + //BA.debugLineNum = 1128;BA.debugLine="c7.Position = 0"; +_c7.setPosition((int) (0)); + //BA.debugLineNum = 1130;BA.debugLine="Dim totaldev As Double = c7.GetString(\"PC_MONTO"; +_totaldev = (double)(Double.parseDouble(_c7.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 1134;BA.debugLine="Dim c6 As Cursor = B4XPages.MainPage.skmt.ExecQu"; +_c6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) and PE_CEDIS <> 'DUR' "))); + //BA.debugLineNum = 1135;BA.debugLine="If c6.RowCount > 0 Then"; +if (_c6.getRowCount()>0) { + //BA.debugLineNum = 1136;BA.debugLine="c6.Position = 0"; +_c6.setPosition((int) (0)); + //BA.debugLineNum = 1138;BA.debugLine="Dim totalprod As Double = c6.GetString(\"PC_MONT"; +_totalprod = (double)(Double.parseDouble(_c6.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 1143;BA.debugLine="If totalprod = 0 Then"; +if (_totalprod==0) { + //BA.debugLineNum = 1144;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'"); + //BA.debugLineNum = 1145;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que no hay venta."),BA.ObjectToCharSequence("Atención"),ba); + }else if(_totalprod<_totaldev) { + //BA.debugLineNum = 1147;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where PE_CLIENTE In (select cuenta from cuentaa) AND PE_CEDIS = 'DUR'"); + //BA.debugLineNum = 1148;BA.debugLine="MsgboxAsync(\"Las devloluciones se elimanron por"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Las devloluciones se elimanron por que el monto de la devolucion es mayor al monto de la venta."),BA.ObjectToCharSequence("Atención"),ba); + }; + }; + //BA.debugLineNum = 1151;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 108;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 109;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 110;BA.debugLine="End Sub"; +return null; +} +public String _l_info_click() throws Exception{ + //BA.debugLineNum = 1265;BA.debugLine="Private Sub l_info_Click"; + //BA.debugLineNum = 1266;BA.debugLine="l_info.Visible = False"; +_l_info.setVisible(__c.False); + //BA.debugLineNum = 1267;BA.debugLine="End Sub"; +return ""; +} +public String _l_prodx_click() throws Exception{ +anywheresoftware.b4a.objects.CSBuilder _cs = null; +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _prdox = null; +String[] _prodx1 = null; +String _textprom = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _descpro = null; +int _hgfd = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null; +float _recalculo = 0f; + //BA.debugLineNum = 1533;BA.debugLine="Sub l_prodx_click"; + //BA.debugLineNum = 1535;BA.debugLine="Dim cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 1536;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 1537;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(S"; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 1538;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(Ind"; +_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p0 = _clv_prods_ll._getpanel(_index); + //BA.debugLineNum = 1539;BA.debugLine="Private p As B4XView = p0.GetView(0)"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _p0.GetView((int) (0)); + //BA.debugLineNum = 1540;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView(2"; +_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_cant1 = _p.GetView((int) (2)).GetView((int) (2)); + //BA.debugLineNum = 1541;BA.debugLine="Private PRDOX As B4XView = p.GetView(1)"; +_prdox = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_prdox = _p.GetView((int) (1)); + //BA.debugLineNum = 1542;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView(S"; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 1545;BA.debugLine="Log(cant1.Text)"; +__c.LogImpl("367305484",_cant1.getText(),0); + //BA.debugLineNum = 1546;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Tex"; +_prodx1 = __c.Regex.Split(__c.CRLF,_prdox.getText()); + //BA.debugLineNum = 1547;BA.debugLine="Log(prodx1(1))"; +__c.LogImpl("367305486",_prodx1[(int) (1)],0); + //BA.debugLineNum = 1548;BA.debugLine="p_promodesc.Visible = True"; +_p_promodesc.setVisible(__c.True); + //BA.debugLineNum = 1549;BA.debugLine="p_promodesc.Height = Root.Height"; +_p_promodesc.setHeight(_root.getHeight()); + //BA.debugLineNum = 1550;BA.debugLine="p_promodesc.Width = Root.Width"; +_p_promodesc.setWidth(_root.getWidth()); + //BA.debugLineNum = 1551;BA.debugLine="Dim textprom As String = \"\""; +_textprom = ""; + //BA.debugLineNum = 1552;BA.debugLine="Dim descpro As Cursor = Starter.skmt.ExecQuery($\""; +_descpro = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_descpro = (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_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_PD_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 ")))); + //BA.debugLineNum = 1553;BA.debugLine="Log($\"SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_"; +__c.LogImpl("367305492",("SELECT CAT_PD_RANGO, CAT_PD_DESCUENTO, CAT_PD_RANGO2 FROM CAT_PROMOS_DESCUENTOS WHERE CAT_PD_PRODUCTO IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"') AND INSTR(',' || CAT_DP_TIER || ',' , ',"+__c.SmartStringFormatter("",(Object)(_subs._traetipocliente /*int*/ (ba)))+",') > 0 "),0); + //BA.debugLineNum = 1554;BA.debugLine="Log(descpro.RowCount)"; +__c.LogImpl("367305493",BA.NumberToString(_descpro.getRowCount()),0); + //BA.debugLineNum = 1555;BA.debugLine="If descpro.RowCount > 0 Then"; +if (_descpro.getRowCount()>0) { + //BA.debugLineNum = 1556;BA.debugLine="l_promodesc.Text = \"\""; +_l_promodesc.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 1557;BA.debugLine="For hgfd = 0 To descpro.RowCount -1"; +{ +final int step21 = 1; +final int limit21 = (int) (_descpro.getRowCount()-1); +_hgfd = (int) (0) ; +for (;_hgfd <= limit21 ;_hgfd = _hgfd + step21 ) { + //BA.debugLineNum = 1558;BA.debugLine="descpro.Position = hgfd"; +_descpro.setPosition(_hgfd); + //BA.debugLineNum = 1560;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQuer"; +_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 CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"'")))); + //BA.debugLineNum = 1561;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 1562;BA.debugLine="textprom = \"\""; +_textprom = ""; + //BA.debugLineNum = 1563;BA.debugLine="Private recalculo As Float = preciocat.GetStrin"; +_recalculo = (float) ((double)(Double.parseDouble(_preciocat.GetString("CAT_GP_PRECIO")))-(double)(Double.parseDouble(__c.NumberFormat2((((double)(Double.parseDouble(_preciocat.GetString("CAT_GP_PRECIO")))*(double)(Double.parseDouble(_descpro.GetString("CAT_PD_DESCUENTO"))))/(double)100),(int) (0),(int) (2),(int) (2),__c.False)))); + //BA.debugLineNum = 1565;BA.debugLine="textprom = cs.Color(Colors.Black).Append(\"Descu"; +_textprom = BA.ObjectToString(_cs.Color(__c.Colors.Black).Append(BA.ObjectToCharSequence("Descuento "+BA.NumberToString((_hgfd+1))+__c.CRLF+__c.CRLF+" Min: "+BA.NumberToString(_descpro.GetInt("CAT_PD_RANGO"))+" Max: "+BA.NumberToString(_descpro.GetInt("CAT_PD_RANGO2"))+__c.CRLF+__c.CRLF)).Pop().Color(__c.Colors.Red).Size((int) (18)).Append(BA.ObjectToCharSequence("Descuento: "+BA.NumberToString(_descpro.GetDouble("CAT_PD_DESCUENTO"))+"%"+__c.CRLF+__c.CRLF)).Pop().Color(__c.Colors.Red).Size((int) (18)).Append(BA.ObjectToCharSequence("Precio: "+__c.NumberFormat2(_recalculo,(int) (0),(int) (0),(int) (2),__c.False)+__c.CRLF+__c.CRLF)).PopAll()); + //BA.debugLineNum = 1566;BA.debugLine="l_promodesc.Text = \"\""; +_l_promodesc.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 1567;BA.debugLine="l_promodesc.Text = textprom"; +_l_promodesc.setText(BA.ObjectToCharSequence(_textprom)); + } +}; + }else { + //BA.debugLineNum = 1573;BA.debugLine="l_promodesc.Text = \"El producto no tiene descuen"; +_l_promodesc.setText(BA.ObjectToCharSequence("El producto no tiene descuento o el tipo de cliente no es apto para este descuento.")); + }; + //BA.debugLineNum = 1577;BA.debugLine="End Sub"; +return ""; +} +public String _l_prodx_longclick() throws Exception{ +anywheresoftware.b4a.objects.CSBuilder _cs = null; +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _prdox = null; +String[] _prodx1 = null; +String[] _prodx3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _dev = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _devo = null; + //BA.debugLineNum = 2306;BA.debugLine="Private Sub l_prodX_LongClick"; + //BA.debugLineNum = 2307;BA.debugLine="If tipo_venta <> \"PREVENTA_FUTURA\" Then"; +if ((_tipo_venta).equals("PREVENTA_FUTURA") == false) { + //BA.debugLineNum = 2310;BA.debugLine="Log(l_total.Text)"; +__c.LogImpl("367829764",_l_total.getText(),0); + //BA.debugLineNum = 2311;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFNU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) AND PE_CEDIS <> 'DUR'"))); + //BA.debugLineNum = 2313;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2314;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2316;BA.debugLine="If c.GetString(\"PC_MONTO\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("PC_MONTO")))>0) { + //BA.debugLineNum = 2319;BA.debugLine="Dim cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 2320;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 2321;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView("; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 2322;BA.debugLine="Private p0 As B4XView = clv_prods_ll.GetPanel(In"; +_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p0 = _clv_prods_ll._getpanel(_index); + //BA.debugLineNum = 2323;BA.debugLine="Private p As B4XView = p0.GetView(0)"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _p0.GetView((int) (0)); + //BA.debugLineNum = 2324;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView("; +_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_cant1 = _p.GetView((int) (2)).GetView((int) (2)); + //BA.debugLineNum = 2325;BA.debugLine="Private PRDOX As B4XView = p.GetView(1)"; +_prdox = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_prdox = _p.GetView((int) (1)); + //BA.debugLineNum = 2326;BA.debugLine="Dim Index As Int = clv_prods_ll.GetItemFromView("; +_index = _clv_prods_ll._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 2329;BA.debugLine="Log(cant1.Text)"; +__c.LogImpl("367829783",_cant1.getText(),0); + //BA.debugLineNum = 2330;BA.debugLine="Dim prodx1() As String=Regex.Split(CRLF,PRDOX.Te"; +_prodx1 = __c.Regex.Split(__c.CRLF,_prdox.getText()); + //BA.debugLineNum = 2331;BA.debugLine="Dim prodx3() As String=Regex.Split(\"\\$\",prodx1(1"; +_prodx3 = __c.Regex.Split("\\$",_prodx1[(int) (1)]); + //BA.debugLineNum = 2332;BA.debugLine="Log(prodx1(1))"; +__c.LogImpl("367829786",_prodx1[(int) (1)],0); + //BA.debugLineNum = 2334;BA.debugLine="preciodev = prodx3(1)"; +_preciodev = (double)(Double.parseDouble(_prodx3[(int) (1)])); + //BA.debugLineNum = 2335;BA.debugLine="nombredev = prodx1(0)"; +_nombredev = _prodx1[(int) (0)]; + //BA.debugLineNum = 2337;BA.debugLine="Dim dev As Cursor = B4XPages.MainPage.skmt.ExecQ"; +_dev = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_dev = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_DEV, 0) AS CAT_GP_DEV, CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"'")))); + //BA.debugLineNum = 2338;BA.debugLine="dev.Position = 0"; +_dev.setPosition((int) (0)); + //BA.debugLineNum = 2339;BA.debugLine="If dev.GetInt(\"CAT_GP_DEV\") = 1 Then"; +if (_dev.GetInt("CAT_GP_DEV")==1) { + //BA.debugLineNum = 2342;BA.debugLine="c.GetString(\"PC_MONTO\")"; +_c.GetString("PC_MONTO"); + //BA.debugLineNum = 2345;BA.debugLine="If c.GetString(\"PC_MONTO\") < dev.GetInt(\"CAT_G"; +if ((double)(Double.parseDouble(_c.GetString("PC_MONTO")))<_dev.GetInt("CAT_GP_PRECIO")) { + //BA.debugLineNum = 2346;BA.debugLine="MsgboxAsync(\"El monto de venta es menor al pr"; +__c.MsgboxAsync(BA.ObjectToCharSequence("El monto de venta es menor al precio de este producto"),BA.ObjectToCharSequence("Atención"),ba); + //BA.debugLineNum = 2347;BA.debugLine="Log(1)"; +__c.LogImpl("367829801",BA.NumberToString(1),0); + }else { + //BA.debugLineNum = 2349;BA.debugLine="p_devo.Visible = True"; +_p_devo.setVisible(__c.True); + //BA.debugLineNum = 2350;BA.debugLine="p_devo.Height = Root.Height"; +_p_devo.setHeight(_root.getHeight()); + //BA.debugLineNum = 2351;BA.debugLine="p_devo.Width = Root.Width"; +_p_devo.setWidth(_root.getWidth()); + //BA.debugLineNum = 2352;BA.debugLine="l_proddev.Text = prodx1(0)"; +_l_proddev.setText(BA.ObjectToCharSequence(_prodx1[(int) (0)])); + //BA.debugLineNum = 2355;BA.debugLine="Dim devo As Cursor = B4XPages.MainPage.skmt.E"; +_devo = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_devo = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select SUM(IFNULL(PE_CANT,0)) as suma from PEDIDO where PE_PRONOMBRE = '"+__c.SmartStringFormatter("",(Object)(_prodx1[(int) (0)]))+"' AND PE_CEDIS = 'DUR'")))); + //BA.debugLineNum = 2356;BA.debugLine="devo.Position = 0"; +_devo.setPosition((int) (0)); + //BA.debugLineNum = 2358;BA.debugLine="l_cantdev.Text = devo.GetInt(\"suma\")"; +_l_cantdev.setText(BA.ObjectToCharSequence(_devo.GetInt("suma"))); + }; + }else if(_dev.GetInt("CAT_GP_DEV")==0) { + //BA.debugLineNum = 2368;BA.debugLine="MsgboxAsync(\"El producto no se puede devolver\","; +__c.MsgboxAsync(BA.ObjectToCharSequence("El producto no se puede devolver"),BA.ObjectToCharSequence("Atención"),ba); + }; + }else { + //BA.debugLineNum = 2374;BA.debugLine="MsgboxAsync(\"El Cliente no tiene venta para mete"; +__c.MsgboxAsync(BA.ObjectToCharSequence("El Cliente no tiene venta para meter devoluciones"),BA.ObjectToCharSequence("Atención"),ba); + }; + }; + }; + //BA.debugLineNum = 2380;BA.debugLine="End Sub"; +return ""; +} +public String _llenacatalogo(String _subtipo1) throws Exception{ + //BA.debugLineNum = 607;BA.debugLine="Sub llenaCatalogo(subtipo1 As String)"; + //BA.debugLineNum = 630;BA.debugLine="End Sub"; +return ""; +} +public String _llenaprodsll(anywheresoftware.b4a.sql.SQL.ResultSetWrapper _p) throws Exception{ +anywheresoftware.b4a.objects.collections.Map _cantsmap = null; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _pe = null; +int _cant = 0; +anywheresoftware.b4a.objects.collections.Map _tempmap = null; +anywheresoftware.b4a.objects.collections.List _listaprodsconcant = null; +anywheresoftware.b4a.objects.collections.List _listaprodsconcantindex = null; +int _q = 0; +int _cont = 0; +int _pr0 = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +int _pr = 0; + //BA.debugLineNum = 1785;BA.debugLine="Sub LlenaProdsLL(p As ResultSet)"; + //BA.debugLineNum = 1786;BA.debugLine="Log(\"Iniciamos LlenaProdsLL\")"; +__c.LogImpl("367502081","Iniciamos LlenaProdsLL",0); + //BA.debugLineNum = 1787;BA.debugLine="listaProds.Initialize"; +_listaprods.Initialize(); + //BA.debugLineNum = 1788;BA.debugLine="If hayPedido Then 'Si hay pedido obtenemos las ca"; +if (_haypedido) { + //BA.debugLineNum = 1789;BA.debugLine="Dim cantsMap As Map"; +_cantsmap = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1790;BA.debugLine="cantsMap.Initialize"; +_cantsmap.Initialize(); + //BA.debugLineNum = 1791;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 1792;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Ex"; +_pe = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_pe = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID, PE_CANT from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clienteid))+"' and PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ))+"' AND PE_FUTURO = '1' ")))); + }else { + //BA.debugLineNum = 1794;BA.debugLine="Dim pe As ResultSet = B4XPages.MainPage.skmt.Ex"; +_pe = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_pe = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID, PE_CANT from PEDIDO where PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_clienteid))+"' and PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ))+"' AND PE_FUTURO = '0' ")))); + }; + //BA.debugLineNum = 1797;BA.debugLine="Do While pe.NextRow"; +while (_pe.NextRow()) { + //BA.debugLineNum = 1798;BA.debugLine="Private cant As Int = 0"; +_cant = (int) (0); + //BA.debugLineNum = 1800;BA.debugLine="cantsMap.put(pe.GetString(\"PE_PROID\"), pe.GetS"; +_cantsmap.Put((Object)(_pe.GetString("PE_PROID")),(Object)(_pe.GetString("PE_CANT"))); + //BA.debugLineNum = 1804;BA.debugLine="Log(clienteId &\"|||||\"&pe.GetString(\"PE_PROID\")"; +__c.LogImpl("367502099",_clienteid+"|||||"+_pe.GetString("PE_PROID")+"|||||"+_pe.GetString("PE_CANT"),0); + } +; + //BA.debugLineNum = 1806;BA.debugLine="pe.Close"; +_pe.Close(); + }; + //BA.debugLineNum = 1809;BA.debugLine="If p.IsInitialized Then"; +if (_p.IsInitialized()) { + }else { + //BA.debugLineNum = 1816;BA.debugLine="LogColor(Starter.tabla,Colors.blue)"; +__c.LogImpl("367502111",_starter._tabla /*String*/ ,__c.Colors.Blue); + //BA.debugLineNum = 1840;BA.debugLine="If Subs.traeTipoCliente = 5 Then"; +if (_subs._traetipocliente /*int*/ (ba)==5) { + //BA.debugLineNum = 1841;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe"; +_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_LISTAPRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION'\n"+" order by\n"+" Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0\n"+" WHEN 'ESTRATEGICO' THEN 1\n"+" WHEN 'COMPLEMENTARIO' then 2\n"+" Else 3\n"+" End, CAT_GP_NOMBRE")))); + }else { + //BA.debugLineNum = 1849;BA.debugLine="Dim p As ResultSet = B4XPages.MainPage.skmt.Exe"; +_p = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_p = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_LISTAPRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPO <> 'PROMOS' and CAT_GP_TIPO <> 'PROMOCION'\n"+" order by\n"+" Case CAT_GP_TIPOPROD when 'PRIORITARIO' THEN 0\n"+" WHEN 'ESTRATEGICO' THEN 1\n"+" WHEN 'COMPLEMENTARIO' then 2\n"+" Else 3\n"+" End, CAT_GP_NOMBRE")))); + }; + }; + //BA.debugLineNum = 1876;BA.debugLine="Do While p.NextRow"; +while (_p.NextRow()) { + //BA.debugLineNum = 1877;BA.debugLine="Private cant As Int = 0"; +_cant = (int) (0); + //BA.debugLineNum = 1878;BA.debugLine="If hayPedido And cantsMap.ContainsKey(p.GetStrin"; +if (_haypedido && _cantsmap.ContainsKey((Object)(_p.GetString("CAT_GP_ID")))) { + //BA.debugLineNum = 1879;BA.debugLine="Log(p.GetString(\"CAT_GP_ID\"))"; +__c.LogImpl("367502174",_p.GetString("CAT_GP_ID"),0); + //BA.debugLineNum = 1880;BA.debugLine="cant = cantsMap.Get(p.GetString(\"CAT_GP_ID\"))"; +_cant = (int)(BA.ObjectToNumber(_cantsmap.Get((Object)(_p.GetString("CAT_GP_ID"))))); + }; + //BA.debugLineNum = 1882;BA.debugLine="If Subs.traeTipoCliente = 5 Then"; +if (_subs._traetipocliente /*int*/ (ba)==5) { + //BA.debugLineNum = 1883;BA.debugLine="If p.GetString(\"CAT_GP_ID\") <> \"GUN141\" And p.G"; +if ((_p.GetString("CAT_GP_ID")).equals("GUN141") == false && (_p.GetString("CAT_GP_ID")).equals("GUN142") == false) { + //BA.debugLineNum = 1886;BA.debugLine="Dim tempMap As Map = CreateMap( _"; +_tempmap = new anywheresoftware.b4a.objects.collections.Map(); +_tempmap = __c.createMap(new Object[] {(Object)("prod"),(Object)(_p.GetString("CAT_GP_NOMBRE")),(Object)("precio"),(Object)(_p.GetString("CAT_LISTAPRECIO")),(Object)("prioridad"),(Object)(_p.GetString("CAT_GP_TIPOPROD")),(Object)("almacen"),(Object)(_p.GetString("CAT_GP_ALMACEN")),(Object)("id"),(Object)(_p.GetString("CAT_GP_ID")),(Object)("cant"),(Object)(_cant),(Object)("conversion"),(Object)(1),(Object)("precio_caja"),(Object)(0),(Object)("b_caja"),(Object)(0)}); + //BA.debugLineNum = 1897;BA.debugLine="listaProds.Add(tempMap) ' Agregar el nuevo map"; +_listaprods.Add((Object)(_tempmap.getObject())); + }; + }else { + //BA.debugLineNum = 1900;BA.debugLine="If p.GetString(\"CAT_GP_ID\") <> \"GUN141\" And p.G"; +if ((_p.GetString("CAT_GP_ID")).equals("GUN141") == false && (_p.GetString("CAT_GP_ID")).equals("GUN142") == false) { + //BA.debugLineNum = 1903;BA.debugLine="Dim tempMap As Map = CreateMap( _"; +_tempmap = new anywheresoftware.b4a.objects.collections.Map(); +_tempmap = __c.createMap(new Object[] {(Object)("prod"),(Object)(_p.GetString("CAT_GP_NOMBRE")),(Object)("precio"),(Object)(_p.GetString("CAT_GP_PRECIO")),(Object)("prioridad"),(Object)(_p.GetString("CAT_GP_TIPOPROD")),(Object)("almacen"),(Object)(_p.GetString("CAT_GP_ALMACEN")),(Object)("id"),(Object)(_p.GetString("CAT_GP_ID")),(Object)("cant"),(Object)(_cant),(Object)("conversion"),(Object)(1),(Object)("precio_caja"),(Object)(0),(Object)("b_caja"),(Object)(0)}); + //BA.debugLineNum = 1914;BA.debugLine="listaProds.Add(tempMap) ' Agregar el nuevo map"; +_listaprods.Add((Object)(_tempmap.getObject())); + }; + }; + } +; + //BA.debugLineNum = 1921;BA.debugLine="PCLV.Commit"; +_pclv._commit /*String*/ (); + //BA.debugLineNum = 1922;BA.debugLine="clv_prods_ll.Clear"; +_clv_prods_ll._clear(); + //BA.debugLineNum = 1923;BA.debugLine="Private listaProdsConCant, listaProdsConCantIndex"; +_listaprodsconcant = new anywheresoftware.b4a.objects.collections.List(); +_listaprodsconcantindex = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 1924;BA.debugLine="listaProdsConCant.Initialize"; +_listaprodsconcant.Initialize(); + //BA.debugLineNum = 1925;BA.debugLine="listaProdsConCantIndex.Initialize"; +_listaprodsconcantindex.Initialize(); + //BA.debugLineNum = 1926;BA.debugLine="listaHints.Initialize"; +_listahints.Initialize(); + //BA.debugLineNum = 1927;BA.debugLine="For q=0 To listaProds.Size-1' quitamos los produc"; +{ +final int step51 = 1; +final int limit51 = (int) (_listaprods.getSize()-1); +_q = (int) (0) ; +for (;_q <= limit51 ;_q = _q + step51 ) { + //BA.debugLineNum = 1928;BA.debugLine="If listaProds.Get(q).As(Map).Get(\"cant\").As(Int)"; +if (((int)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_listaprods.Get(_q)))).Get((Object)("cant")))))!=0) { + //BA.debugLineNum = 1930;BA.debugLine="listaProdsConCant.Add(listaProds.Get(q))"; +_listaprodsconcant.Add(_listaprods.Get(_q)); + //BA.debugLineNum = 1931;BA.debugLine="listaProdsConCantIndex.Add(q)"; +_listaprodsconcantindex.Add((Object)(_q)); + }; + } +}; + //BA.debugLineNum = 1935;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 1936;BA.debugLine="For pr0=0 To listaProdsConCant.Size - 1 'Agregamo"; +{ +final int step58 = 1; +final int limit58 = (int) (_listaprodsconcant.getSize()-1); +_pr0 = (int) (0) ; +for (;_pr0 <= limit58 ;_pr0 = _pr0 + step58 ) { + //BA.debugLineNum = 1937;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 1939;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsVi"; +_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_clv_prods_ll._asview().getWidth(),__c.DipToCurrent((int) (65))); + //BA.debugLineNum = 1940;BA.debugLine="clv_prods_ll.Add(Pnl, listaProdsConCant.Get(pr0)"; +_clv_prods_ll._add(_pnl,_listaprodsconcant.Get(_pr0)); + //BA.debugLineNum = 1941;BA.debugLine="listaHints.Add(listaProdsConCant.get(pr0).As(Map"; +_listahints.Add(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_listaprodsconcant.Get(_pr0)))).Get((Object)("prod"))); + //BA.debugLineNum = 1942;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + } +}; + //BA.debugLineNum = 1946;BA.debugLine="For pr=0 To listaProds.Size-1"; +{ +final int step65 = 1; +final int limit65 = (int) (_listaprods.getSize()-1); +_pr = (int) (0) ; +for (;_pr <= limit65 ;_pr = _pr + step65 ) { + //BA.debugLineNum = 1947;BA.debugLine="If listaProdsConCantIndex.IndexOf(pr) = -1 Then"; +if (_listaprodsconcantindex.IndexOf((Object)(_pr))==-1) { + //BA.debugLineNum = 1948;BA.debugLine="Private Pnl As B4XView = xui.CreatePanel(\"\")"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 1949;BA.debugLine="Pnl.SetLayoutAnimated(0, 0, 0, clv_prods_ll.AsV"; +_pnl.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_clv_prods_ll._asview().getWidth(),__c.DipToCurrent((int) (65))); + //BA.debugLineNum = 1952;BA.debugLine="listaHints.Add(listaProds.get(pr).As(Map).Get(\""; +_listahints.Add(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_listaprods.Get(_pr)))).Get((Object)("prod"))); + //BA.debugLineNum = 1953;BA.debugLine="clv_prods_ll.Add(Pnl, listaProds.Get(pr))"; +_clv_prods_ll._add(_pnl,_listaprods.Get(_pr)); + //BA.debugLineNum = 1955;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + }; + } +}; + //BA.debugLineNum = 1962;BA.debugLine="PCLV.B4XSeekBar1.MaxValue = clv_prods_ll.Size"; +_pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._maxvalue /*int*/ = _clv_prods_ll._getsize(); + //BA.debugLineNum = 1963;BA.debugLine="PCLV.B4XSeekBar1.MinValue = 0"; +_pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._minvalue /*int*/ = (int) (0); + //BA.debugLineNum = 1964;BA.debugLine="PCLV.B4XSeekBar1.Interval = clv_prods_ll.Size/20"; +_pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._interval /*int*/ = (int) (_clv_prods_ll._getsize()/(double)20); + //BA.debugLineNum = 1965;BA.debugLine="PCLV.B4XSeekBar1.Value = clv_prods_ll.Size"; +_pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._setvalue /*int*/ (_clv_prods_ll._getsize()); + //BA.debugLineNum = 1966;BA.debugLine="PCLV.B4XSeekBar1.Update"; +_pclv._b4xseekbar1 /*gunav2.keymon.com.mx.b4xseekbar*/ ._update /*String*/ (); + //BA.debugLineNum = 1968;BA.debugLine="reiniciarlistaProds = False"; +_reiniciarlistaprods = __c.False; + //BA.debugLineNum = 1969;BA.debugLine="End Sub"; +return ""; +} +public String _lv_catalogos_itemclick(int _position,Object _value) throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +anywheresoftware.b4a.objects.LabelWrapper _label13 = null; +anywheresoftware.b4a.objects.LabelWrapper _label14 = null; +boolean _yacompropro2265 = false; +boolean _yacompropro3054 = false; +boolean _yacompropro3055 = false; +int _tipocliente = 0; +int _i = 0; +boolean _muestrapromo = false; +anywheresoftware.b4a.objects.collections.Map _tm = null; + //BA.debugLineNum = 275;BA.debugLine="Sub lv_catalogos_ItemClick (Position As Int, Value"; + //BA.debugLineNum = 276;BA.debugLine="If Value = \"PORTAFOLIO\" Then"; +if ((_value).equals((Object)("PORTAFOLIO"))) { + //BA.debugLineNum = 278;BA.debugLine="lfila.text = \"PRODUCTOS\""; +_lfila.setText(BA.ObjectToCharSequence("PRODUCTOS")); + //BA.debugLineNum = 279;BA.debugLine="lv_catalogos.Visible = False"; +_lv_catalogos.setVisible(__c.False); + //BA.debugLineNum = 281;BA.debugLine="If clv_prods_ll.Size = 0 Then LlenaProdsLL(Null)"; +if (_clv_prods_ll._getsize()==0) { +_llenaprodsll((anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(__c.Null)));}; + //BA.debugLineNum = 282;BA.debugLine="clv_prods_ll.AsView.Visible = True"; +_clv_prods_ll._asview().setVisible(__c.True); + //BA.debugLineNum = 283;BA.debugLine="If hayPedido Then p_botonesVenta.Visible = True"; +if (_haypedido) { +_p_botonesventa.setVisible(__c.True);}; + //BA.debugLineNum = 286;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select IFN"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(sum(PE_CANT),0) as PC_NOART, IFNULL(sum (PE_COSTO_TOT),0) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP ) "))); + //BA.debugLineNum = 287;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 288;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 289;BA.debugLine="Log($\"registros: ${c.RowCount}, arts: ${c.GetSt"; +__c.LogImpl("365798158",("registros: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+", arts: "+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_NOART")))+", monto:"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_MONTO")))+""),0); + //BA.debugLineNum = 290;BA.debugLine="l_totProds.Text = \"Prods: \" & c.GetString(\"PC_N"; +_l_totprods.setText(BA.ObjectToCharSequence("Prods: "+_c.GetString("PC_NOART"))); + //BA.debugLineNum = 291;BA.debugLine="l_total.Text = \"Total: $\" & c.GetString(\"PC_MON"; +_l_total.setText(BA.ObjectToCharSequence("Total: $"+_c.GetString("PC_MONTO"))); + //BA.debugLineNum = 292;BA.debugLine="If l_total.Text = Null Or l_total.Text = \"null\""; +if (_l_total.getText()== null || (_l_total.getText()).equals("null") || (_l_total.getText()).equals("")) { +_l_total.setText(BA.ObjectToCharSequence("Total: $0.0"));}; + //BA.debugLineNum = 293;BA.debugLine="If l_totProds.Text = Null Or l_totProds.Text ="; +if (_l_totprods.getText()== null || (_l_totprods.getText()).equals("null") || (_l_totprods.getText()).equals("")) { +_l_totprods.setText(BA.ObjectToCharSequence("Prods: 0"));}; + }; + }else { + //BA.debugLineNum = 296;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +_clv_prods_ll._asview().setVisible(__c.False); + //BA.debugLineNum = 297;BA.debugLine="lv_promos.Visible = True"; +_lv_promos.setVisible(__c.True); + //BA.debugLineNum = 298;BA.debugLine="lfila.text = \"PROMOCIONES\""; +_lfila.setText(BA.ObjectToCharSequence("PROMOCIONES")); + //BA.debugLineNum = 299;BA.debugLine="lv_catalogos.Visible = False"; +_lv_catalogos.setVisible(__c.False); + //BA.debugLineNum = 319;BA.debugLine="lv_promos.Clear"; +_lv_promos.Clear(); + //BA.debugLineNum = 320;BA.debugLine="lv_promos.Height = Root.Height * 0.65"; +_lv_promos.setHeight((int) (_root.getHeight()*0.65)); + //BA.debugLineNum = 321;BA.debugLine="lv_promos.Width = Root.Width *0.96"; +_lv_promos.setWidth((int) (_root.getWidth()*0.96)); + //BA.debugLineNum = 323;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 324;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label"; +_label1 = _lv_promos.getTwoLinesLayout().Label; + //BA.debugLineNum = 325;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 326;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 327;BA.debugLine="label1.Color = Colors.ARGB(58,255,255,255)"; +_label1.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255))); + //BA.debugLineNum = 328;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 329;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel"; +_label2 = _lv_promos.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 330;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 331;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 332;BA.debugLine="label2.Color = Colors.ARGB(58,255,255,255)"; +_label2.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255))); + //BA.debugLineNum = 333;BA.debugLine="Dim label13 As Label"; +_label13 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 334;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label"; +_label13 = _lv_promos.getTwoLinesAndBitmap().Label; + //BA.debugLineNum = 335;BA.debugLine="label13.TextSize = 20"; +_label13.setTextSize((float) (20)); + //BA.debugLineNum = 336;BA.debugLine="label13.TextColor = Colors.White"; +_label13.setTextColor(__c.Colors.White); + //BA.debugLineNum = 337;BA.debugLine="label13.Color = Colors.ARGB(58,255,255,255)"; +_label13.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255))); + //BA.debugLineNum = 338;BA.debugLine="Dim label14 As Label"; +_label14 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 339;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe"; +_label14 = _lv_promos.getTwoLinesAndBitmap().SecondLabel; + //BA.debugLineNum = 340;BA.debugLine="label14.TextSize = 20"; +_label14.setTextSize((float) (20)); + //BA.debugLineNum = 341;BA.debugLine="label14.TextColor = Colors.White"; +_label14.setTextColor(__c.Colors.White); + //BA.debugLineNum = 342;BA.debugLine="label14.Color = Colors.ARGB(58,255,255,255)"; +_label14.setColor(__c.Colors.ARGB((int) (58),(int) (255),(int) (255),(int) (255))); + //BA.debugLineNum = 353;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 354;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_PA_BSEGMENTA, CAT_PA_SEGMENTAV from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_FUTURO = '1' )"),new String[]{"PROMOS","PROMOS"}))); + }else { + //BA.debugLineNum = 356;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_PA_BSEGMENTA, CAT_PA_SEGMENTAV from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) AND PE_FUTURO = '0' )"),new String[]{"PROMOS","PROMOS"}))); + }; + //BA.debugLineNum = 360;BA.debugLine="Private yaComproPRO2265 As Boolean = Subs.revisa"; +_yacompropro2265 = _subs._revisapro2265 /*boolean*/ (ba,_subs._traecliente /*String*/ (ba)); + //BA.debugLineNum = 361;BA.debugLine="Private yaComproPRO3054 As Boolean = Subs.revisa"; +_yacompropro3054 = _subs._revisapro3054 /*boolean*/ (ba,_subs._traecliente /*String*/ (ba)); + //BA.debugLineNum = 362;BA.debugLine="Private yaComproPRO3055 As Boolean = Subs.revisa"; +_yacompropro3055 = _subs._revisapro3055 /*boolean*/ (ba,_subs._traecliente /*String*/ (ba)); + //BA.debugLineNum = 363;BA.debugLine="Private tipoCliente As Int = Subs.traeTipoClient"; +_tipocliente = _subs._traetipocliente /*int*/ (ba); + //BA.debugLineNum = 364;BA.debugLine="Log(c2.RowCount)"; +__c.LogImpl("365798233",BA.NumberToString(_c2.getRowCount()),0); + //BA.debugLineNum = 365;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 383;BA.debugLine="For i=0 To c2.RowCount - 1"; +{ +final int step55 = 1; +final int limit55 = (int) (_c2.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit55 ;_i = _i + step55 ) { + //BA.debugLineNum = 384;BA.debugLine="c2.Position = i"; +_c2.setPosition(_i); + //BA.debugLineNum = 385;BA.debugLine="Private muestraPromo As Boolean = True"; +_muestrapromo = __c.True; + //BA.debugLineNum = 386;BA.debugLine="Log($\"SEGMENTADA: ${c2.GetString(\"CAT_PA_BSEGM"; +__c.LogImpl("365798255",("SEGMENTADA: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_BSEGMENTA")))+""),0); + //BA.debugLineNum = 387;BA.debugLine="If c2.GetInt(\"CAT_PA_BSEGMENTA\") = 1 Then"; +if (_c2.GetInt("CAT_PA_BSEGMENTA")==1) { + //BA.debugLineNum = 388;BA.debugLine="LogColor(\"####### PROMO SEGMENTADA #### \"&"; +__c.LogImpl("365798257","####### PROMO SEGMENTADA #### "+_c2.GetString("CAT_GP_ID"),__c.Colors.Blue); + //BA.debugLineNum = 389;BA.debugLine="LogColor($\"####### SEGV: ${c2.GetString(\"CA"; +__c.LogImpl("365798258",("####### SEGV: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_SEGMENTAV")))+" ####"),__c.Colors.Blue); + //BA.debugLineNum = 390;BA.debugLine="LogColor($\"####### TIPOCLIE: ${tipoCliente}"; +__c.LogImpl("365798259",("####### TIPOCLIE: "+__c.SmartStringFormatter("",(Object)(_tipocliente))+" ####"),__c.Colors.Blue); + //BA.debugLineNum = 391;BA.debugLine="LogColor($\"####### ¿ENTRA?: ${c2.GetString("; +__c.LogImpl("365798260",("####### ¿ENTRA?: "+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente))))+" ####"),__c.Colors.Blue); + //BA.debugLineNum = 392;BA.debugLine="If Not(c2.GetString(\"CAT_PA_SEGMENTAV\").Conta"; +if (__c.Not(_c2.GetString("CAT_PA_SEGMENTAV").contains(BA.NumberToString(_tipocliente)))) { +_muestrapromo = __c.False;}; + }; + //BA.debugLineNum = 398;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G"; +_tm = new anywheresoftware.b4a.objects.collections.Map(); +_tm = _subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_c2.GetString("CAT_GP_ID"),_subs._traecliente /*String*/ (ba)); + //BA.debugLineNum = 399;BA.debugLine="Log($\"TM=${tm}\"$)"; +__c.LogImpl("365798268",("TM="+__c.SmartStringFormatter("",(Object)(_tm.getObject()))+""),0); + //BA.debugLineNum = 400;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral"; +if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) { + //BA.debugLineNum = 401;BA.debugLine="If yaComproPRO2265 And c2.GetString(\"CAT_GP_I"; +if (_yacompropro2265 && (_c2.GetString("CAT_GP_ID")).equals("PRO3015")) { + //BA.debugLineNum = 402;BA.debugLine="LogColor(\"Ya compro la PRO2265, ya no se mue"; +__c.LogImpl("365798271","Ya compro la PRO2265, ya no se muestra la PRO3015",__c.Colors.Red); + }else { + //BA.debugLineNum = 404;BA.debugLine="If (yaComproPRO3054 And c2.GetString(\"CAT_GP"; +if ((_yacompropro3054 && (_c2.GetString("CAT_GP_ID")).equals("PRO3054")) || (_yacompropro3055 && (_c2.GetString("CAT_GP_ID")).equals("PRO3055"))) { + //BA.debugLineNum = 406;BA.debugLine="LogColor(\"Ya compro prods de la PRO3054 o P"; +__c.LogImpl("365798275","Ya compro prods de la PRO3054 o PRO3055 o es cliente nuevo, ya no se muestra.",__c.Colors.Red); + }else { + //BA.debugLineNum = 408;BA.debugLine="If Subs.traeAlmacen = 88 Then"; +if ((_subs._traealmacen /*String*/ (ba)).equals(BA.NumberToString(88))) { + //BA.debugLineNum = 409;BA.debugLine="Log(\"SI ENTRE1\")"; +__c.LogImpl("365798278","SI ENTRE1",0); + //BA.debugLineNum = 410;BA.debugLine="Log(c2.GetString(\"CAT_GP_ID\"))"; +__c.LogImpl("365798279",_c2.GetString("CAT_GP_ID"),0); + //BA.debugLineNum = 411;BA.debugLine="If c2.GetString(\"CAT_GP_ID\") = \"MYKONOS_01"; +if ((_c2.GetString("CAT_GP_ID")).equals("MYKONOS_01") && _subs._traemontoprod /*boolean*/ (ba)) { + //BA.debugLineNum = 412;BA.debugLine="Log(\"SI ENTRE\")"; +__c.LogImpl("365798281","SI ENTRE",0); + //BA.debugLineNum = 413;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine"; +if (_muestrapromo) { +_lv_promos.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+_c2.GetString("CAT_GP_ALMACEN")+" $ "+_c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));}; + }else if((_c2.GetString("CAT_GP_ID")).equals("MYKONOS_01") == false) { + //BA.debugLineNum = 415;BA.debugLine="Log(\"SI ENTRE2\")"; +__c.LogImpl("365798284","SI ENTRE2",0); + //BA.debugLineNum = 416;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLine"; +if (_muestrapromo) { +_lv_promos.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+_c2.GetString("CAT_GP_ALMACEN")+" $ "+_c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));}; + }; + }else { + //BA.debugLineNum = 419;BA.debugLine="Log(\"SI ENTRE3\")"; +__c.LogImpl("365798288","SI ENTRE3",0); + //BA.debugLineNum = 420;BA.debugLine="If muestraPromo Then lv_promos.AddTwoLines"; +if (_muestrapromo) { +_lv_promos.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+_c2.GetString("CAT_GP_ALMACEN")+" $ "+_c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant")))));}; + }; + //BA.debugLineNum = 422;BA.debugLine="Log($\"################################${CRL"; +__c.LogImpl("365798291",("################################"+__c.SmartStringFormatter("",(Object)(__c.CRLF))+" "+__c.SmartStringFormatter("",(Object)(_muestrapromo))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"################################"),0); + }; + }; + }; + } +}; + //BA.debugLineNum = 433;BA.debugLine="label1.Height = 50dip"; +_label1.setHeight(__c.DipToCurrent((int) (50))); + //BA.debugLineNum = 434;BA.debugLine="label2.Height = 45dip"; +_label2.setHeight(__c.DipToCurrent((int) (45))); + //BA.debugLineNum = 435;BA.debugLine="label2.Top = label1.Height"; +_label2.setTop(_label1.getHeight()); + //BA.debugLineNum = 436;BA.debugLine="lv_promos.TwoLinesLayout.ItemHeight = 95dip"; +_lv_promos.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 437;BA.debugLine="Subs.SetDivider(lv_promos, Colors.White, 2)"; +_subs._setdivider /*String*/ (ba,_lv_promos,__c.Colors.White,(int) (2)); + }else { + //BA.debugLineNum = 439;BA.debugLine="ToastMessageShow(\"No hay PROMOS disponibles.\","; +__c.ToastMessageShow(BA.ObjectToCharSequence("No hay PROMOS disponibles."),__c.False); + }; + //BA.debugLineNum = 441;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 442;BA.debugLine="entro = \"4\""; +_entro = "4"; + }; + //BA.debugLineNum = 444;BA.debugLine="End Sub"; +return ""; +} +public void _lv_catalogos2_itemclick(int _position,Object _value) throws Exception{ +ResumableSub_lv_catalogos2_ItemClick rsub = new ResumableSub_lv_catalogos2_ItemClick(this,_position,_value); +rsub.resume(ba, null); +} +public static class ResumableSub_lv_catalogos2_ItemClick extends BA.ResumableSub { +public ResumableSub_lv_catalogos2_ItemClick(gunav2.keymon.com.mx.c_productos parent,int _position,Object _value) { +this.parent = parent; +this._position = _position; +this._value = _value; +} +gunav2.keymon.com.mx.c_productos parent; +int _position; +Object _value; +gunav2.keymon.com.mx.c_cliente _cliente = null; +String _iniciocontador = ""; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +anywheresoftware.b4a.objects.LabelWrapper _label13 = null; +anywheresoftware.b4a.objects.LabelWrapper _label14 = null; +int _i = 0; +anywheresoftware.b4a.objects.collections.Map _tm = null; +int step58; +int limit58; + +@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 = 447;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +parent._clv_prods_ll._asview().setVisible(parent.__c.False); + //BA.debugLineNum = 448;BA.debugLine="BUSCA.Text = \"\""; +parent._busca.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 449;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie"; +_cliente = (gunav2.keymon.com.mx.c_cliente)(parent._b4xpages._getpage /*Object*/ (ba,"Cliente")); + //BA.debugLineNum = 450;BA.debugLine="Log($\"value=${Value}\"$)"; +parent.__c.LogImpl("365863684",("value="+parent.__c.SmartStringFormatter("",_value)+""),0); + //BA.debugLineNum = 451;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N"; +if (true) break; + +case 1: +//if +this.state = 6; +if ((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N") == false) { +this.state = 3; +}else if((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N")) { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 6; + //BA.debugLineNum = 452;BA.debugLine="entro = \"3\""; +parent._entro = "3"; + //BA.debugLineNum = 453;BA.debugLine="marca = \"PROMOS\""; +parent._marca = "PROMOS"; + //BA.debugLineNum = 454;BA.debugLine="tipo = \"PROMOS\""; +parent._tipo = "PROMOS"; + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 456;BA.debugLine="entro = \"5\""; +parent._entro = "5"; + //BA.debugLineNum = 457;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +parent._b4xpages._showpage /*String*/ (ba,"Cliente"); + if (true) break; +; + //BA.debugLineNum = 459;BA.debugLine="If Value = \"PROMOCIONES\" Then"; + +case 6: +//if +this.state = 11; +if ((_value).equals((Object)("PROMOCIONES"))) { +this.state = 8; +}else { +this.state = 10; +}if (true) break; + +case 8: +//C +this.state = 11; + //BA.debugLineNum = 460;BA.debugLine="LogColor(\"Promos\", Colors.red)"; +parent.__c.LogImpl("365863694","Promos",parent.__c.Colors.Red); + //BA.debugLineNum = 461;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery2($\"select C"; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD = ? AND CAT_GP_TIPO = ? AND CAT_GP_SUBTIPO = ? AND CAT_GP_ID NOT IN (SELECT PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select cuenta from cuentaa) ) ORDER BY 1"),new String[]{"PROMOS",parent._marca,parent._tipo}))); + if (true) break; + +case 10: +//C +this.state = 11; + //BA.debugLineNum = 463;BA.debugLine="LogColor(\"Catalogo\", Colors.red)"; +parent.__c.LogImpl("365863697","Catalogo",parent.__c.Colors.Red); + //BA.debugLineNum = 464;BA.debugLine="c2=B4XPages.MainPage.skmt.ExecQuery($\"select CAT"; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_PRECIO, CAT_GP_ALMACEN, CAT_GP_IMG, CAT_GP_TIPOPROD, CAT_GP_INICIATIVA from "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._tabla /*String*/ ))+" where CAT_GP_PRECIO > 0 AND CAT_GP_ALMACEN > 0 and CAT_GP_TIPOPROD <> 'PROMOS' ")))); + if (true) break; +; + //BA.debugLineNum = 486;BA.debugLine="If Value = \"PORTAFOLIO\" Then"; + +case 11: +//if +this.state = 28; +if ((_value).equals((Object)("PORTAFOLIO"))) { +this.state = 13; +}else { +this.state = 15; +}if (true) break; + +case 13: +//C +this.state = 28; + //BA.debugLineNum = 487;BA.debugLine="lv_catalogos.Visible = False"; +parent._lv_catalogos.setVisible(parent.__c.False); + //BA.debugLineNum = 488;BA.debugLine="lv_promos.Visible = False"; +parent._lv_promos.setVisible(parent.__c.False); + //BA.debugLineNum = 489;BA.debugLine="lfila.text = \"PORTAFOLIO\""; +parent._lfila.setText(BA.ObjectToCharSequence("PORTAFOLIO")); + //BA.debugLineNum = 490;BA.debugLine="Log(\"PGS\")"; +parent.__c.LogImpl("365863724","PGS",0); + //BA.debugLineNum = 491;BA.debugLine="ProgressDialogShow(\"Cargando catalogo ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Cargando catalogo ...")); + //BA.debugLineNum = 492;BA.debugLine="Sleep(100)"; +parent.__c.Sleep(ba,this,(int) (100)); +this.state = 29; +return; +case 29: +//C +this.state = 28; +; + //BA.debugLineNum = 493;BA.debugLine="Private inicioContador As String = DateTime.Now"; +_iniciocontador = BA.NumberToString(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 494;BA.debugLine="llenaCatalogo(False)"; +parent._llenacatalogo(BA.ObjectToString(parent.__c.False)); + //BA.debugLineNum = 495;BA.debugLine="clv_prods_ll.AsView.Visible = True"; +parent._clv_prods_ll._asview().setVisible(parent.__c.True); + //BA.debugLineNum = 496;BA.debugLine="Log(\"PGH\")"; +parent.__c.LogImpl("365863730","PGH",0); + //BA.debugLineNum = 497;BA.debugLine="LogColor(\"TIEMPO DE PROCESO DEL CATALOGO: \" & (("; +parent.__c.LogImpl("365863731","TIEMPO DE PROCESO DEL CATALOGO: "+BA.NumberToString(((parent.__c.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),parent.__c.Colors.Red); + //BA.debugLineNum = 498;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 499;BA.debugLine="c2.Close"; +parent._c2.Close(); + if (true) break; + +case 15: +//C +this.state = 16; + //BA.debugLineNum = 501;BA.debugLine="Log(\"ENTRAMOS A PROMOS\")"; +parent.__c.LogImpl("365863735","ENTRAMOS A PROMOS",0); + //BA.debugLineNum = 502;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +parent._clv_prods_ll._asview().setVisible(parent.__c.False); + //BA.debugLineNum = 503;BA.debugLine="lv_promos.Visible = True"; +parent._lv_promos.setVisible(parent.__c.True); + //BA.debugLineNum = 504;BA.debugLine="lv_catalogos.Visible = False"; +parent._lv_catalogos.setVisible(parent.__c.False); + //BA.debugLineNum = 505;BA.debugLine="lv_promos.Clear"; +parent._lv_promos.Clear(); + //BA.debugLineNum = 506;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 507;BA.debugLine="label1 = lv_promos.TwoLinesLayout.Label"; +_label1 = parent._lv_promos.getTwoLinesLayout().Label; + //BA.debugLineNum = 508;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 509;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(parent.__c.Colors.Black); + //BA.debugLineNum = 510;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 511;BA.debugLine="label2 = lv_promos.TwoLinesLayout.SecondLabel"; +_label2 = parent._lv_promos.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 512;BA.debugLine="label2.TextSize = 15"; +_label2.setTextSize((float) (15)); + //BA.debugLineNum = 513;BA.debugLine="label2.TextColor = Colors.Black"; +_label2.setTextColor(parent.__c.Colors.Black); + //BA.debugLineNum = 514;BA.debugLine="Dim label13 As Label"; +_label13 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 515;BA.debugLine="label13 = lv_promos.TwoLinesAndBitmap.Label"; +_label13 = parent._lv_promos.getTwoLinesAndBitmap().Label; + //BA.debugLineNum = 516;BA.debugLine="label13.TextSize = 15"; +_label13.setTextSize((float) (15)); + //BA.debugLineNum = 517;BA.debugLine="label13.TextColor = Colors.Black"; +_label13.setTextColor(parent.__c.Colors.Black); + //BA.debugLineNum = 518;BA.debugLine="Dim label14 As Label"; +_label14 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 519;BA.debugLine="label14 = lv_promos.TwoLinesAndBitmap.SecondLabe"; +_label14 = parent._lv_promos.getTwoLinesAndBitmap().SecondLabel; + //BA.debugLineNum = 520;BA.debugLine="label14.TextSize = 15"; +_label14.setTextSize((float) (15)); + //BA.debugLineNum = 521;BA.debugLine="label14.TextColor = Colors.Black"; +_label14.setTextColor(parent.__c.Colors.Black); + //BA.debugLineNum = 522;BA.debugLine="lfila.text = \"PROMOCIONES\""; +parent._lfila.setText(BA.ObjectToCharSequence("PROMOCIONES")); + //BA.debugLineNum = 523;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 = 524;BA.debugLine="For i=0 To c2.RowCount -1"; +if (true) break; + +case 19: +//for +this.state = 26; +step58 = 1; +limit58 = (int) (parent._c2.getRowCount()-1); +_i = (int) (0) ; +this.state = 30; +if (true) break; + +case 30: +//C +this.state = 26; +if ((step58 > 0 && _i <= limit58) || (step58 < 0 && _i >= limit58)) this.state = 21; +if (true) break; + +case 31: +//C +this.state = 30; +_i = ((int)(0 + _i + step58)) ; +if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 525;BA.debugLine="c2.Position=i"; +parent._c2.setPosition(_i); + //BA.debugLineNum = 526;BA.debugLine="Private tm As Map = Subs.procesaPromocion(c2.G"; +_tm = new anywheresoftware.b4a.objects.collections.Map(); +_tm = parent._subs._procesapromocion /*anywheresoftware.b4a.objects.collections.Map*/ (ba,parent._c2.GetString("CAT_GP_ID"),parent._clienteid); + //BA.debugLineNum = 527;BA.debugLine="If tm.Get(\"status\") = \"ok\" Then 'Solo muestral"; +if (true) break; + +case 22: +//if +this.state = 25; +if ((_tm.Get((Object)("status"))).equals((Object)("ok"))) { +this.state = 24; +}if (true) break; + +case 24: +//C +this.state = 25; + //BA.debugLineNum = 528;BA.debugLine="lv_promos.AddTwoLines(c2.GetString(\"CAT_GP_NO"; +parent._lv_promos.AddTwoLines(BA.ObjectToCharSequence(parent._c2.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("# "+parent._c2.GetString("CAT_GP_ALMACEN")+" $ "+parent._c2.GetString("CAT_GP_PRECIO")+" F:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsFijosCant")))+" V:"+BA.ObjectToString(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_tm.Get((Object)("mp"))))).Get((Object)("prodsVariablesCant"))))); + if (true) break; + +case 25: +//C +this.state = 31; +; + if (true) break; +if (true) break; + +case 26: +//C +this.state = 27; +; + if (true) break; + +case 27: +//C +this.state = 28; +; + //BA.debugLineNum = 576;BA.debugLine="c2.Close"; +parent._c2.Close(); + if (true) break; + +case 28: +//C +this.state = -1; +; + //BA.debugLineNum = 578;BA.debugLine="entro = \"4\""; +parent._entro = "4"; + //BA.debugLineNum = 579;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _lv_prodspedido_itemlongclick(int _position,Object _value) throws Exception{ +String[] _x = null; +String _nom = ""; +int _i = 0; +String _cedis = ""; +String _sdate = ""; +String _stime = ""; +String _clie_id = ""; +String _usuario = ""; +int _j = 0; + //BA.debugLineNum = 1354;BA.debugLine="Private Sub lv_prodsPedido_ItemLongClick (Position"; + //BA.debugLineNum = 1355;BA.debugLine="Log(Value)"; +__c.LogImpl("367174401",BA.ObjectToString(_value),0); + //BA.debugLineNum = 1356;BA.debugLine="Private X() As String = Regex.Split(\" \", Value)"; +_x = __c.Regex.Split(" ",BA.ObjectToString(_value)); + //BA.debugLineNum = 1357;BA.debugLine="Log(X.Length)"; +__c.LogImpl("367174403",BA.NumberToString(_x.length),0); + //BA.debugLineNum = 1358;BA.debugLine="Private nom As String = \"\""; +_nom = ""; + //BA.debugLineNum = 1359;BA.debugLine="For i = 0 To X.Length -1"; +{ +final int step5 = 1; +final int limit5 = (int) (_x.length-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 1360;BA.debugLine="If X(i).Contains(CRLF) Then"; +if (_x[_i].contains(__c.CRLF)) { + }; + //BA.debugLineNum = 1362;BA.debugLine="If Not(X(i).Contains(CRLF)) Then"; +if (__c.Not(_x[_i].contains(__c.CRLF))) { + //BA.debugLineNum = 1363;BA.debugLine="nom = nom & \" \" & X(i)"; +_nom = _nom+" "+_x[_i]; + }else { + //BA.debugLineNum = 1365;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 1368;BA.debugLine="nom = nom.Trim"; +_nom = _nom.trim(); + //BA.debugLineNum = 1369;BA.debugLine="Private cedis As String = X(X.Length-1)"; +_cedis = _x[(int) (_x.length-1)]; + //BA.debugLineNum = 1370;BA.debugLine="Log(nom)"; +__c.LogImpl("367174416",_nom,0); + //BA.debugLineNum = 1371;BA.debugLine="Log(cedis)"; +__c.LogImpl("367174417",_cedis,0); + //BA.debugLineNum = 1372;BA.debugLine="Private sDate,sTime, clie_id, usuario As String"; +_sdate = ""; +_stime = ""; +_clie_id = ""; +_usuario = ""; + //BA.debugLineNum = 1374;BA.debugLine="result = Msgbox2(\"Seguro que desea borrar este a"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea borrar este articulo?"),BA.ObjectToCharSequence("Borrar Articulo"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 1375;BA.debugLine="If result = DialogResponse.POSITIVE Then"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 1376;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select PE_P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select PE_PROID,PE_CANT, PE_FOLIO FROM PEDIDO where pe_pronombre = ? and pe_cliente in (Select CUENTA from cuentaa) ",new String[]{BA.ObjectToString(_value)}))); + //BA.debugLineNum = 1377;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1378;BA.debugLine="Log(vamoaver.Get(Position))"; +__c.LogImpl("367174424",BA.ObjectToString(_vamoaver.Get(_position)),0); + //BA.debugLineNum = 1379;BA.debugLine="If vamoaver.Get(Position) = \"VENTA\" Then"; +if ((_vamoaver.Get(_position)).equals((Object)("VENTA"))) { + //BA.debugLineNum = 1380;BA.debugLine="Log(\"CAT_GUNAPROD2\")"; +__c.LogImpl("367174426","CAT_GUNAPROD2",0); + //BA.debugLineNum = 1381;BA.debugLine="Log(Position)"; +__c.LogImpl("367174427",BA.NumberToString(_position),0); + //BA.debugLineNum = 1382;BA.debugLine="Log(Value)"; +__c.LogImpl("367174428",BA.ObjectToString(_value),0); + //BA.debugLineNum = 1383;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD2\""; +_starter._tabla /*String*/ = "CAT_GUNAPROD2"; + }else { + //BA.debugLineNum = 1385;BA.debugLine="Log(\"CAT_GUNAPROD\")"; +__c.LogImpl("367174431","CAT_GUNAPROD",0); + //BA.debugLineNum = 1386;BA.debugLine="Log(Position)"; +__c.LogImpl("367174432",BA.NumberToString(_position),0); + //BA.debugLineNum = 1387;BA.debugLine="Log(Value)"; +__c.LogImpl("367174433",BA.ObjectToString(_value),0); + //BA.debugLineNum = 1388;BA.debugLine="Starter.tabla = \"CAT_GUNAPROD\""; +_starter._tabla /*String*/ = "CAT_GUNAPROD"; + }; + //BA.debugLineNum = 1447;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE_P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS, PE_PRONOMBRE FROM PEDIDO where (pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' or pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+" ') AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)")))); + //BA.debugLineNum = 1448;BA.debugLine="Log($\"select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDI"; +__c.LogImpl("367174494",("select PE_PROID,PE_CANT, PE_FOLIO, PE_CEDIS FROM PEDIDO where pe_pronombre = '"+__c.SmartStringFormatter("",(Object)(_nom))+"' AND PE_CEDIS = '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa)"),0); + //BA.debugLineNum = 1449;BA.debugLine="Log(c.RowCount)"; +__c.LogImpl("367174495",BA.NumberToString(_c.getRowCount()),0); + //BA.debugLineNum = 1450;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1453;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO INVENT_X_ENVIAR (ALMACEN , PROID , CANTIDAD) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_subs._traealmacen /*String*/ (ba)),(Object)(_c.GetString("PE_PROID")),(Object)((double)(Double.parseDouble(_c.GetString("PE_CANT")))*-1)})); + //BA.debugLineNum = 1460;BA.debugLine="If Not(IsNumber(cedis)) Then"; +if (__c.Not(__c.IsNumber(_cedis))) { + //BA.debugLineNum = 1461;BA.debugLine="j3 = B4XPages.MainPage.skmt.ExecQuery2(\"SELECT"; +_j3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CEDIS, PE_CANT,PE_PROID, PE_PRONOMBRE, PE_FOLIO FROM PEDIDO WHERE PE_CEDIS IN (SELECT PE_CEDIS FROM PEDIDO WHERE PE_CEDIS = ?)",new String[]{_cedis}))); + //BA.debugLineNum = 1463;BA.debugLine="LogColor(j3.RowCount,Colors.Yellow)"; +__c.LogImpl("367174509",BA.NumberToString(_j3.getRowCount()),__c.Colors.Yellow); + //BA.debugLineNum = 1464;BA.debugLine="If j3.RowCount > 0 Then"; +if (_j3.getRowCount()>0) { + //BA.debugLineNum = 1465;BA.debugLine="Log(\"Soy promo\")"; +__c.LogImpl("367174511","Soy promo",0); + //BA.debugLineNum = 1466;BA.debugLine="For j = 0 To j3.RowCount -1"; +{ +final int step45 = 1; +final int limit45 = (int) (_j3.getRowCount()-1); +_j = (int) (0) ; +for (;_j <= limit45 ;_j = _j + step45 ) { + //BA.debugLineNum = 1467;BA.debugLine="Log(\"aqui tronare?\")"; +__c.LogImpl("367174513","aqui tronare?",0); + //BA.debugLineNum = 1468;BA.debugLine="j3.Position = j"; +_j3.setPosition(_j); + //BA.debugLineNum = 1469;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 1470;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis= '"+__c.SmartStringFormatter("",(Object)(_cedis))+"' and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_FOLIO")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_j3.GetString("PE_PROID")))+"'")); + } +}; + //BA.debugLineNum = 1473;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select s"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))); + //BA.debugLineNum = 1474;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1475;BA.debugLine="If c.GetString(\"PC_NOART\") = Null Then"; +if (_c.GetString("PC_NOART")== null) { + //BA.debugLineNum = 1476;BA.debugLine="l_cant.Text = 0"; +_l_cant.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 1477;BA.debugLine="l_total2.Text = 0"; +_l_total2.setText(BA.ObjectToCharSequence(0)); + }else { + //BA.debugLineNum = 1479;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 1480;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")"; +_l_total2.setText(BA.ObjectToCharSequence(_c.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 1482;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 1484;BA.debugLine="j3.Close"; +_j3.Close(); + }else { + //BA.debugLineNum = 1487;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"update ${"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" set cat_gp_almacen = cat_gp_almacen + "+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_CANT")))+" where cat_gp_id = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 1488;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fr"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from pedido where pe_pronombre = ? and pe_cedis = ? and pe_cliente in (Select CUENTA from cuentaa) AND PE_FOLIO = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nom),(Object)(_cedis),(Object)(_c.GetString("PE_FOLIO"))})); + //BA.debugLineNum = 1489;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select su"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(PE_CANT) as PC_NOART, sum (PE_COSTO_TOT) as PC_MONTO from PEDIDO where PE_CLIENTE in (Select CUENTA from cuentaa) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP )"))); + //BA.debugLineNum = 1490;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1491;BA.debugLine="If c.GetString(\"PC_NOART\") = Null Then"; +if (_c.GetString("PC_NOART")== null) { + //BA.debugLineNum = 1492;BA.debugLine="l_cant.Text = 0"; +_l_cant.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 1493;BA.debugLine="l_total2.Text = 0"; +_l_total2.setText(BA.ObjectToCharSequence(0)); + }else { + //BA.debugLineNum = 1495;BA.debugLine="l_cant.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 1496;BA.debugLine="l_total2.Text = c.GetString(\"PC_MONTO\")"; +_l_total2.setText(BA.ObjectToCharSequence(_c.GetString("PC_MONTO"))); + }; + //BA.debugLineNum = 1498;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 1500;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1502;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1503;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1504;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1505;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 1506;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1507;BA.debugLine="clie_id = c.GetString(\"CUENTA\")"; +_clie_id = _c.GetString("CUENTA"); + //BA.debugLineNum = 1508;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select USUAR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 1509;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1510;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1511;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, count(*) as CUANTOS FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1512;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1513;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 1514;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1515;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert in"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clie_id),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._lat_gps /*String*/ )})); + //BA.debugLineNum = 1516;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }else { + //BA.debugLineNum = 1518;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 1519;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + }; + //BA.debugLineNum = 1522;BA.debugLine="b_terminar1_Click"; +_b_terminar1_click(); + }; + //BA.debugLineNum = 1527;BA.debugLine="End Sub"; +return ""; +} +public String _lv_promos_itemclick(int _position,Object _value) throws Exception{ +gunav2.keymon.com.mx.c_cliente _cliente = null; +gunav2.keymon.com.mx.c_promos _promos = null; + //BA.debugLineNum = 581;BA.debugLine="Sub lv_promos_ItemClick (Position As Int, Value As"; + //BA.debugLineNum = 582;BA.debugLine="clv_prods_ll.AsView.Visible = False"; +_clv_prods_ll._asview().setVisible(__c.False); + //BA.debugLineNum = 583;BA.debugLine="Dim cliente As C_Cliente = B4XPages.GetPage(\"Clie"; +_cliente = (gunav2.keymon.com.mx.c_cliente)(_b4xpages._getpage /*Object*/ (ba,"Cliente")); + //BA.debugLineNum = 585;BA.debugLine="If Value = \"PROMOCIONES\" And cliente.cuenta <> \"N"; +if ((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N") == false) { + //BA.debugLineNum = 586;BA.debugLine="entro = \"3\""; +_entro = "3"; + //BA.debugLineNum = 587;BA.debugLine="marca = \"PROMOS\""; +_marca = "PROMOS"; + //BA.debugLineNum = 588;BA.debugLine="tipo = \"PROMOS\""; +_tipo = "PROMOS"; + }else if((_value).equals((Object)("PROMOCIONES")) && (_cliente._cuenta /*String*/ ).equals("N")) { + //BA.debugLineNum = 590;BA.debugLine="entro = \"5\""; +_entro = "5"; + //BA.debugLineNum = 591;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + }; + //BA.debugLineNum = 593;BA.debugLine="If entro = \"3\" Then"; +if ((_entro).equals("3")) { + }else if((_entro).equals("4")) { + //BA.debugLineNum = 597;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PROID"); + //BA.debugLineNum = 598;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PROID VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); + //BA.debugLineNum = 599;BA.debugLine="Dim promos As C_Promos = B4XPages.GetPage(\"Promo"; +_promos = (gunav2.keymon.com.mx.c_promos)(_b4xpages._getpage /*Object*/ (ba,"Promos")); + //BA.debugLineNum = 600;BA.debugLine="promos.laPromo = Subs.traeProdIdDeBD.Get(\"id\")"; +_promos._lapromo /*String*/ = BA.ObjectToString(_subs._traeprodiddebd /*anywheresoftware.b4a.objects.collections.Map*/ (ba).Get((Object)("id"))); + //BA.debugLineNum = 601;BA.debugLine="promos.elCliente = Subs.traeUsuarioDeBD"; +_promos._elcliente /*String*/ = _subs._traeusuariodebd /*String*/ (ba); + //BA.debugLineNum = 602;BA.debugLine="B4XPages.ShowPage(\"Promos\")"; +_b4xpages._showpage /*String*/ (ba,"Promos"); + }; + //BA.debugLineNum = 604;BA.debugLine="End Sub"; +return ""; +} +public String _lv_promos_itemlongclick(int _position,Object _value) throws Exception{ +String _id = ""; + //BA.debugLineNum = 1269;BA.debugLine="Private Sub lv_promos_ItemLongClick (Position As I"; + //BA.debugLineNum = 1270;BA.debugLine="Log(\"Promo longclic = \"&Value)"; +__c.LogImpl("366781185","Promo longclic = "+BA.ObjectToString(_value),0); + //BA.debugLineNum = 1271;BA.debugLine="Private id As String = \"\""; +_id = ""; + //BA.debugLineNum = 1272;BA.debugLine="Dim c As Cursor = B4XPages.MainPage.skmt.ExecQuer"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID from "+__c.SmartStringFormatter("",(Object)(_starter._tabla /*String*/ ))+" where CAT_GP_TIPO = 'PROMOS' and CAT_GP_NOMBRE = '"+__c.SmartStringFormatter("",_value)+"'")))); + //BA.debugLineNum = 1273;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1274;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1275;BA.debugLine="id = c.GetString(\"CAT_GP_ID\")"; +_id = _c.GetString("CAT_GP_ID"); + }; + //BA.debugLineNum = 1277;BA.debugLine="l_info.Text = $\"ID: ${id}${CRLF}${Value}\"$"; +_l_info.setText(BA.ObjectToCharSequence(("ID: "+__c.SmartStringFormatter("",(Object)(_id))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",_value)+""))); + //BA.debugLineNum = 1278;BA.debugLine="l_info.Visible = True"; +_l_info.setVisible(__c.True); + //BA.debugLineNum = 1279;BA.debugLine="End Sub"; +return ""; +} +public String _lv_subtipo_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 1306;BA.debugLine="Private Sub lv_subtipo_ItemClick (Position As Int,"; + //BA.debugLineNum = 1320;BA.debugLine="End Sub"; +return ""; +} +public String _lv_tipo_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 1286;BA.debugLine="Private Sub lv_tipo_ItemClick (Position As Int, Va"; + //BA.debugLineNum = 1304;BA.debugLine="End Sub"; +return ""; +} +public String _p_devo_click() throws Exception{ + //BA.debugLineNum = 2441;BA.debugLine="Private Sub p_devo_Click"; + //BA.debugLineNum = 2443;BA.debugLine="End Sub"; +return ""; +} +public String _p_promodesc_click() throws Exception{ + //BA.debugLineNum = 2300;BA.debugLine="Private Sub p_promodesc_Click"; + //BA.debugLineNum = 2301;BA.debugLine="p_promodesc.Visible = False"; +_p_promodesc.setVisible(__c.False); + //BA.debugLineNum = 2302;BA.debugLine="End Sub"; +return ""; +} +public String _p_vistapreviatrans_click() throws Exception{ + //BA.debugLineNum = 1322;BA.debugLine="Private Sub p_vistaPreviaTrans_Click"; + //BA.debugLineNum = 1324;BA.debugLine="End Sub"; +return ""; +} +public String _pclv_addprods() throws Exception{ + //BA.debugLineNum = 271;BA.debugLine="Sub PCLV_AddProds"; + //BA.debugLineNum = 273;BA.debugLine="End Sub"; +return ""; +} +public Object _pclv_hintrequested(int _index) throws Exception{ +String _word = ""; + //BA.debugLineNum = 1972;BA.debugLine="Sub PCLV_HintRequested(Index As Int) As Object"; + //BA.debugLineNum = 1973;BA.debugLine="Dim word As String = listaHints.get(Index)"; +_word = BA.ObjectToString(_listahints.Get(_index)); + //BA.debugLineNum = 1974;BA.debugLine="Return word"; +if (true) return (Object)(_word); + //BA.debugLineNum = 1975;BA.debugLine="End Sub"; +return null; +} +public String _terminarpromoesp() throws Exception{ +int _i = 0; +String _pn = ""; + //BA.debugLineNum = 2278;BA.debugLine="Sub terminarpromoesp"; + //BA.debugLineNum = 2279;BA.debugLine="c2 = B4XPages.MainPage.skmt.ExecQuery($\"select *"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from "+__c.SmartStringFormatter("",(Object)(_subs._traetablaprods /*String*/ (ba,_tipo_venta)))+" WHERE CAT_GP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)")))); + //BA.debugLineNum = 2280;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 2281;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 2282;BA.debugLine="Subs.guardaProducto(c2.GetString(\"CAT_GP_ID\"), \""; +_subs._guardaproducto /*String*/ (ba,_c2.GetString("CAT_GP_ID"),"0",BA.NumberToString(1),_c2.GetString("CAT_GP_NOMBRE"),_c2.GetString("CAT_GP_ID"),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ); + //BA.debugLineNum = 2283;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select * f"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)"))); + //BA.debugLineNum = 2284;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2285;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 = 2286;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 2287;BA.debugLine="Private pn As String = Subs.traeProdNombre(c.G"; +_pn = _subs._traeprodnombre /*String*/ (ba,_c.GetString("CAT_DP_IDPROD")); + //BA.debugLineNum = 2288;BA.debugLine="Subs.guardaProducto(c2.GetString(\"CAT_GP_ID\"),"; +_subs._guardaproducto /*String*/ (ba,_c2.GetString("CAT_GP_ID"),_c.GetString("CAT_DP_PRECIO"),_c.GetString("CAT_DP_PZAS"),_pn,_c.GetString("CAT_DP_IDPROD"),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_rutausuario,BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ); + } +}; + }; + //BA.debugLineNum = 2291;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 2293;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 2294;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/gunav2/keymon/com/mx/c_promos.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_promos.java new file mode 100644 index 0000000..b3cb7d5 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_promos.java @@ -0,0 +1,1258 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class c_promos 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, "gunav2.keymon.com.mx.c_promos"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.c_promos.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.LabelWrapper _l_promodesc = null; +public anywheresoftware.b4a.objects.ListViewWrapper _lv_prodsfijos = null; +public b4a.example3.customlistview _clv_prodsvariabes = null; +public b4a.example3.customlistview _clv_prodsvariabes2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_prodsfijos = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_prodsvariables = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_prodsvariables2 = null; +public anywheresoftware.b4a.objects.ImageViewWrapper _i_prod = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_prodx = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_prods = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmenos2 = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_pcant = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_prodmas2 = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_pcant = null; +public int _totalprods = 0; +public int _prodsvar1 = 0; +public int _prodsvar2 = 0; +public int _prodsvarreq = 0; +public int _prodsvarreq_ = 0; +public int _prodsvarreq2 = 0; +public int _prodsvarreq2_ = 0; +public float _totalcompra = 0f; +public float _prodsfijostot = 0f; +public int _tpf = 0; +public int _tpf2 = 0; +public int _maxcantpromos = 0; +public anywheresoftware.b4a.objects.LabelWrapper _l_totprods = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_total = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_terminar1 = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_promociones = null; +public anywheresoftware.b4a.objects.collections.List _prodsids = null; +public anywheresoftware.b4a.objects.collections.List _prodscants = null; +public anywheresoftware.b4a.objects.collections.List _prodsprecios = null; +public anywheresoftware.b4a.objects.collections.List _prodsids2 = null; +public anywheresoftware.b4a.objects.collections.List _prodscants2 = null; +public anywheresoftware.b4a.objects.collections.List _prodsprecios2 = null; +public String _estapromo = ""; +public String _estecliente = ""; +public anywheresoftware.b4a.objects.ButtonWrapper _b_promomas = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_promomenos = null; +public anywheresoftware.b4a.objects.EditTextWrapper _et_promocant = null; +public anywheresoftware.b4a.objects.LabelWrapper _l_promoscant = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_continuar = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_prodsvariables = null; +public anywheresoftware.b4a.objects.PanelWrapper _p_prodsvariables2 = null; +public String _lapromo = ""; +public String _elcliente = ""; +public String _prodspedidoactual = ""; +public String _montopedidoactual = ""; +public anywheresoftware.b4a.objects.collections.Map _promosmap = null; +public anywheresoftware.b4a.objects.StringUtils _su = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _agregafijosalista(anywheresoftware.b4a.objects.collections.Map _mp,boolean _addlistitem) throws Exception{ +boolean _thislog = false; +int _cont = 0; +anywheresoftware.b4a.objects.collections.List _pf = null; +String _p = ""; +String _tpi = ""; +String _tpr = ""; +int _ntpi = 0; + //BA.debugLineNum = 638;BA.debugLine="Sub agregaFijosALista(mp As Map, addListItem As Bo"; + //BA.debugLineNum = 639;BA.debugLine="Private thisLog As Boolean = False"; +_thislog = __c.False; + //BA.debugLineNum = 640;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 641;BA.debugLine="prodsFijosTot = 0"; +_prodsfijostot = (float) (0); + //BA.debugLineNum = 642;BA.debugLine="Dim pf As List = mp.Get(\"prodsFijos\")"; +_pf = new anywheresoftware.b4a.objects.collections.List(); +_pf = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijos")))); + //BA.debugLineNum = 643;BA.debugLine="If pf.Size < 1 Then pf.Add(\"Sin productos fijos.\""; +if (_pf.getSize()<1) { +_pf.Add((Object)("Sin productos fijos."));}; + //BA.debugLineNum = 647;BA.debugLine="prodsIds.clear"; +_prodsids.Clear(); + //BA.debugLineNum = 648;BA.debugLine="prodsCants.clear"; +_prodscants.Clear(); + //BA.debugLineNum = 649;BA.debugLine="prodsPrecios.clear"; +_prodsprecios.Clear(); + //BA.debugLineNum = 650;BA.debugLine="prodsIds.Add(estaPromo)"; +_prodsids.Add((Object)(_estapromo)); + //BA.debugLineNum = 651;BA.debugLine="prodsCants.Add(et_promoCant.text.As(Int))"; +_prodscants.Add((Object)(((int)(Double.parseDouble(_et_promocant.getText()))))); + //BA.debugLineNum = 652;BA.debugLine="prodsPrecios.Add(0)"; +_prodsprecios.Add((Object)(0)); + //BA.debugLineNum = 653;BA.debugLine="For Each p As String In pf"; +{ +final anywheresoftware.b4a.BA.IterableList group12 = _pf; +final int groupLen12 = group12.getSize() +;int index12 = 0; +; +for (; index12 < groupLen12;index12++){ +_p = BA.ObjectToString(group12.Get(index12)); + //BA.debugLineNum = 655;BA.debugLine="If mp.Get(\"prodsFijosPiezas\").As(List).Size > 0"; +if (((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas"))))).getSize()>0) { + //BA.debugLineNum = 656;BA.debugLine="Private tpi As String = mp.Get(\"prodsFijosPieza"; +_tpi = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas"))))).Get(_cont)); + }else { + //BA.debugLineNum = 658;BA.debugLine="Private tpi As String = 0"; +_tpi = BA.NumberToString(0); + }; + //BA.debugLineNum = 660;BA.debugLine="If mp.Get(\"prodsFijosPrecios\").As(List).Size > 0"; +if (((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPrecios"))))).getSize()>0) { + //BA.debugLineNum = 661;BA.debugLine="Private tpr As String = mp.Get(\"prodsFijosPreci"; +_tpr = BA.ObjectToString(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPrecios"))))).Get(_cont)); + }else { + //BA.debugLineNum = 663;BA.debugLine="Private tpr As String = 0"; +_tpr = BA.NumberToString(0); + }; + //BA.debugLineNum = 665;BA.debugLine="prodsFijosTot = prodsFijosTot + (tpi * tpr)"; +_prodsfijostot = (float) (_prodsfijostot+((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_tpr)))); + //BA.debugLineNum = 666;BA.debugLine="If thisLog Then Log(\"|\"&tpi&\"|\"&p)"; +if (_thislog) { +__c.LogImpl("377201436","|"+_tpi+"|"+_p,0);}; + //BA.debugLineNum = 667;BA.debugLine="Private ntpi As Int = tpi * et_promoCant.text"; +_ntpi = (int) ((double)(Double.parseDouble(_tpi))*(double)(Double.parseDouble(_et_promocant.getText()))); + //BA.debugLineNum = 668;BA.debugLine="If addListItem And tpi > 0 Then lv_prodsFijos.Ad"; +if (_addlistitem && (double)(Double.parseDouble(_tpi))>0) { +_lv_prodsfijos.AddSingleLine(BA.ObjectToCharSequence(BA.NumberToString(_ntpi)+" "+_subs._traeprodnombre /*String*/ (ba,_p)+" - $"+_tpr));}; + //BA.debugLineNum = 669;BA.debugLine="cont = cont+1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 672;BA.debugLine="prodsIds.Add(p)"; +_prodsids.Add((Object)(_p)); + //BA.debugLineNum = 673;BA.debugLine="prodsCants.Add(tpi.As(Int)*et_promoCant.text.As("; +_prodscants.Add((Object)(((int)(Double.parseDouble(_tpi)))*((int)(Double.parseDouble(_et_promocant.getText()))))); + //BA.debugLineNum = 674;BA.debugLine="prodsPrecios.Add(tpr) '*et_promoCant.text.As(Int"; +_prodsprecios.Add((Object)(_tpr)); + } +}; + //BA.debugLineNum = 676;BA.debugLine="End Sub"; +return ""; +} +public String _b_continuar_click() throws Exception{ +int _t = 0; +String _pn = ""; +gunav2.keymon.com.mx.c_productos _prodspage = null; + //BA.debugLineNum = 1011;BA.debugLine="Private Sub b_continuar_Click"; + //BA.debugLineNum = 1012;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 1013;BA.debugLine="Log(\"============================================"; +__c.LogImpl("378053378","====================================================================",0); + //BA.debugLineNum = 1014;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro"; +{ +final int step3 = 1; +final int limit3 = (int) (_prodsids.getSize()-1); +_t = (int) (0) ; +for (;_t <= limit3 ;_t = _t + step3 ) { + //BA.debugLineNum = 1015;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods"; +_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(_prodsids.Get(_t))); + //BA.debugLineNum = 1016;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 1017;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios.Get(_t)),BA.ObjectToString(_prodscants.Get(_t)),_pn,BA.ObjectToString(_prodsids.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1)); + }else { + //BA.debugLineNum = 1019;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios.Get(_t)),BA.ObjectToString(_prodscants.Get(_t)),_pn,BA.ObjectToString(_prodsids.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0)); + }; + } +}; + //BA.debugLineNum = 1022;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr"; +{ +final int step11 = 1; +final int limit11 = (int) (_prodsids2.getSize()-1); +_t = (int) (0) ; +for (;_t <= limit11 ;_t = _t + step11 ) { + //BA.debugLineNum = 1023;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods"; +_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(_prodsids2.Get(_t))); + //BA.debugLineNum = 1024;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 1025;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios2.Get(_t)),BA.ObjectToString(_prodscants2.Get(_t)),_pn,BA.ObjectToString(_prodsids2.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1)); + }else { + //BA.debugLineNum = 1027;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios2.Get(_t)),BA.ObjectToString(_prodscants2.Get(_t)),_pn,BA.ObjectToString(_prodsids2.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0)); + }; + } +}; + //BA.debugLineNum = 1042;BA.debugLine="lv_prodsFijos.Clear"; +_lv_prodsfijos.Clear(); + //BA.debugLineNum = 1045;BA.debugLine="Private prodspage As C_Productos"; +_prodspage = new gunav2.keymon.com.mx.c_productos(); + //BA.debugLineNum = 1046;BA.debugLine="If prodspage.IsInitialized Then"; +if (_prodspage.IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 1047;BA.debugLine="prodspage.lv_catalogos.Visible = True"; +_prodspage._lv_catalogos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 1048;BA.debugLine="prodspage.lv_promos.Visible = False"; +_prodspage._lv_promos /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 1049;BA.debugLine="prodspage.clv_productos.AsView.Visible = False"; +_prodspage._clv_productos /*b4a.example3.customlistview*/ ._asview().setVisible(__c.False); + }; + //BA.debugLineNum = 1051;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/ = __c.True; + //BA.debugLineNum = 1052;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + //BA.debugLineNum = 1053;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 _precio = ""; +String _prodid = ""; +anywheresoftware.b4a.objects.collections.Map _tmpmap = null; + //BA.debugLineNum = 743;BA.debugLine="Sub b_prodMas_Click"; + //BA.debugLineNum = 744;BA.debugLine="If prodsVar1 < prodsVarReq Then"; +if (_prodsvar1<_prodsvarreq) { + //BA.debugLineNum = 745;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFrom"; +_index = _clv_prodsvariabes._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 746;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prodsvariabes._getpanel(_index); + //BA.debugLineNum = 747;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 749;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (4)); + //BA.debugLineNum = 752;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); + //BA.debugLineNum = 755;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then"; +if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { + //BA.debugLineNum = 756;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 = 757;BA.debugLine="cuentaProds"; +_cuentaprods(); + }; + //BA.debugLineNum = 761;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC"; +_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)]; + //BA.debugLineNum = 763;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC"; +_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)]; + //BA.debugLineNum = 764;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci"; +_tmpmap = new anywheresoftware.b4a.objects.collections.Map(); +_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(_estapromo)}); + //BA.debugLineNum = 766;BA.debugLine="promosMap.Put(prodId, tmpMap)"; +_promosmap.Put((Object)(_prodid),(Object)(_tmpmap.getObject())); + }; + //BA.debugLineNum = 772;BA.debugLine="End Sub"; +return ""; +} +public String _b_prodmas2_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 _precio = ""; +String _prodid = ""; +anywheresoftware.b4a.objects.collections.Map _tmpmap = null; + //BA.debugLineNum = 799;BA.debugLine="Sub b_prodMas2_Click"; + //BA.debugLineNum = 801;BA.debugLine="If prodsVar2 < prodsVarReq2 Then"; +if (_prodsvar2<_prodsvarreq2) { + //BA.debugLineNum = 802;BA.debugLine="Dim index As Int = clv_prodsVariabes2.GetItemFro"; +_index = _clv_prodsvariabes2._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 803;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes2.GetPane"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prodsvariabes2._getpanel(_index); + //BA.debugLineNum = 804;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 806;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (4)); + //BA.debugLineNum = 809;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.T"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); + //BA.debugLineNum = 811;BA.debugLine="If laCant.Text + 1 <= esteTag.get(1) Then"; +if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { + //BA.debugLineNum = 812;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 = 813;BA.debugLine="cuentaProds"; +_cuentaprods(); + }; + //BA.debugLineNum = 817;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laC"; +_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)]; + //BA.debugLineNum = 819;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laC"; +_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)]; + //BA.debugLineNum = 820;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":preci"; +_tmpmap = new anywheresoftware.b4a.objects.collections.Map(); +_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(_estapromo)}); + //BA.debugLineNum = 822;BA.debugLine="promosMap.Put(prodId, tmpMap)"; +_promosmap.Put((Object)(_prodid),(Object)(_tmpmap.getObject())); + }; + //BA.debugLineNum = 828;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; +String _precio = ""; +String _prodid = ""; +anywheresoftware.b4a.objects.collections.Map _tmpmap = null; + //BA.debugLineNum = 719;BA.debugLine="Sub b_prodMenos_Click"; + //BA.debugLineNum = 720;BA.debugLine="Dim index As Int = clv_prodsVariabes.GetItemFromV"; +_index = _clv_prodsvariabes._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 721;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes.GetPanel("; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prodsvariabes._getpanel(_index); + //BA.debugLineNum = 722;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 724;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (4)); + //BA.debugLineNum = 726;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 = 727;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 730;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa"; +_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)]; + //BA.debugLineNum = 732;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa"; +_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)]; + //BA.debugLineNum = 733;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio"; +_tmpmap = new anywheresoftware.b4a.objects.collections.Map(); +_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(_estapromo)}); + //BA.debugLineNum = 735;BA.debugLine="promosMap.Put(prodId, tmpMap)"; +_promosmap.Put((Object)(_prodid),(Object)(_tmpmap.getObject())); + //BA.debugLineNum = 736;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)"; +if ((_lacant.getText()).equals(BA.NumberToString(0))) { +_promosmap.Remove((Object)(_prodid));}; + //BA.debugLineNum = 738;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 741;BA.debugLine="End Sub"; +return ""; +} +public String _b_prodmenos2_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; +String _precio = ""; +String _prodid = ""; +anywheresoftware.b4a.objects.collections.Map _tmpmap = null; + //BA.debugLineNum = 775;BA.debugLine="Sub b_prodMenos2_Click"; + //BA.debugLineNum = 776;BA.debugLine="Dim index As Int = clv_prodsVariabes2.GetItemFrom"; +_index = _clv_prodsvariabes2._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 777;BA.debugLine="Dim pnl0 As B4XView = clv_prodsVariabes2.GetPanel"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_prodsvariabes2._getpanel(_index); + //BA.debugLineNum = 778;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 780;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(4)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (4)); + //BA.debugLineNum = 782;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 = 783;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 786;BA.debugLine="Private precio As String = Regex.Split(\"\\|\", laCa"; +_precio = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (0)]; + //BA.debugLineNum = 788;BA.debugLine="Private prodId As String = Regex.Split(\"\\|\", laCa"; +_prodid = __c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))[(int) (2)]; + //BA.debugLineNum = 789;BA.debugLine="Private tmpMap As Map = CreateMap(\"precio\":precio"; +_tmpmap = new anywheresoftware.b4a.objects.collections.Map(); +_tmpmap = __c.createMap(new Object[] {(Object)("precio"),(Object)(_precio),(Object)("cant"),(Object)(_lacant.getText()),(Object)("almacen"),(Object)(_estapromo)}); + //BA.debugLineNum = 791;BA.debugLine="promosMap.Put(prodId, tmpMap)"; +_promosmap.Put((Object)(_prodid),(Object)(_tmpmap.getObject())); + //BA.debugLineNum = 792;BA.debugLine="If laCant.Text = 0 Then promosMap.Remove(prodId)"; +if ((_lacant.getText()).equals(BA.NumberToString(0))) { +_promosmap.Remove((Object)(_prodid));}; + //BA.debugLineNum = 794;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 797;BA.debugLine="End Sub"; +return ""; +} +public String _b_promomas_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; + //BA.debugLineNum = 935;BA.debugLine="Private Sub b_promoMas_Click"; + //BA.debugLineNum = 937;BA.debugLine="If laPromo = \"MYKONOS_01\" Then"; +if ((_lapromo).equals("MYKONOS_01")) { + //BA.debugLineNum = 938;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull( SUM (PE_COSTO_TOT),0) As suma FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 939;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 940;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 941;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt.E"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT DISTINCT CAT_PE_MONTO FROM CAT_PROMO_ESP"))); + //BA.debugLineNum = 942;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 943;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 945;BA.debugLine="If c.GetString(\"suma\") >= 300 And c.GetString("; +if ((double)(Double.parseDouble(_c.GetString("suma")))>=300 && (double)(Double.parseDouble(_c.GetString("suma")))<600) { + //BA.debugLineNum = 946;BA.debugLine="maxCantPromos = 1"; +_maxcantpromos = (int) (1); + }else if((double)(Double.parseDouble(_c.GetString("suma")))>=600 && (double)(Double.parseDouble(_c.GetString("suma")))<900) { + //BA.debugLineNum = 948;BA.debugLine="maxCantPromos = 2"; +_maxcantpromos = (int) (2); + }else if((double)(Double.parseDouble(_c.GetString("suma")))>=900) { + //BA.debugLineNum = 950;BA.debugLine="maxCantPromos = 3"; +_maxcantpromos = (int) (3); + }; + }; + }; + }; + //BA.debugLineNum = 958;BA.debugLine="If et_promoCant.Text < maxCantPromos Then"; +if ((double)(Double.parseDouble(_et_promocant.getText()))<_maxcantpromos) { + //BA.debugLineNum = 959;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) +"; +_et_promocant.setText(BA.ObjectToCharSequence(((int)(Double.parseDouble(_et_promocant.getText())))+1)); + //BA.debugLineNum = 960;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 *"; +_l_prodsfijos.setText(BA.ObjectToCharSequence(("Productos fijos ("+__c.SmartStringFormatter("",(Object)(_tpf2*((int)(Double.parseDouble(_et_promocant.getText())))))+")"))); + //BA.debugLineNum = 961;BA.debugLine="l_prodsVariables.Text = $\"Productos variables re"; +_l_prodsvariables.setText(BA.ObjectToCharSequence(("Productos variables requeridos: "+__c.SmartStringFormatter("",(Object)(_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getText())))))+""))); + //BA.debugLineNum = 962;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2"; +_l_prodsvariables2.setText(BA.ObjectToCharSequence(("Productos variables2 requeridos: "+__c.SmartStringFormatter("",(Object)(_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText())))))+""))); + //BA.debugLineNum = 963;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)"; +_tpf = (int) (_tpf2*((int)(Double.parseDouble(_et_promocant.getText())))); + //BA.debugLineNum = 964;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.A"; +_prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getText())))); + //BA.debugLineNum = 965;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text"; +_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText())))); + //BA.debugLineNum = 966;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, P"; +__c.LogImpl("377922335",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0); + }; + //BA.debugLineNum = 968;BA.debugLine="If et_promoCant.text > maxCantPromos Then et_prom"; +if ((double)(Double.parseDouble(_et_promocant.getText()))>_maxcantpromos) { +_et_promocant.setText(BA.ObjectToCharSequence(_maxcantpromos));}; + //BA.debugLineNum = 969;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 970;BA.debugLine="End Sub"; +return ""; +} +public String _b_promomenos_click() throws Exception{ + //BA.debugLineNum = 921;BA.debugLine="Private Sub b_promoMenos_Click"; + //BA.debugLineNum = 922;BA.debugLine="If et_promoCant.Text > 1 Then"; +if ((double)(Double.parseDouble(_et_promocant.getText()))>1) { + //BA.debugLineNum = 923;BA.debugLine="et_promoCant.Text = et_promoCant.Text.As(Int) -"; +_et_promocant.setText(BA.ObjectToCharSequence(((int)(Double.parseDouble(_et_promocant.getText())))-1)); + }; + //BA.debugLineNum = 925;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf2 * e"; +_l_prodsfijos.setText(BA.ObjectToCharSequence(("Productos fijos ("+__c.SmartStringFormatter("",(Object)(_tpf2*((int)(Double.parseDouble(_et_promocant.getText())))))+")"))); + //BA.debugLineNum = 926;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req"; +_l_prodsvariables.setText(BA.ObjectToCharSequence(("Productos variables requeridos: "+__c.SmartStringFormatter("",(Object)(_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getText())))))+""))); + //BA.debugLineNum = 927;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2 r"; +_l_prodsvariables2.setText(BA.ObjectToCharSequence(("Productos variables2 requeridos: "+__c.SmartStringFormatter("",(Object)(_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText())))))+""))); + //BA.debugLineNum = 928;BA.debugLine="tpf = tpf2 * et_promoCant.Text.As(Int)"; +_tpf = (int) (_tpf2*((int)(Double.parseDouble(_et_promocant.getText())))); + //BA.debugLineNum = 929;BA.debugLine="prodsVarReq = prodsVarReq_ * et_promoCant.Text.As"; +_prodsvarreq = (int) (_prodsvarreq_*((int)(Double.parseDouble(_et_promocant.getText())))); + //BA.debugLineNum = 930;BA.debugLine="prodsVarReq2 = prodsVarReq2_ * et_promoCant.Text."; +_prodsvarreq2 = (int) (_prodsvarreq2_*((int)(Double.parseDouble(_et_promocant.getText())))); + //BA.debugLineNum = 931;BA.debugLine="Log($\"Max promos=${et_promoCant.Text.As(Int)}, Pr"; +__c.LogImpl("377856778",("Max promos="+__c.SmartStringFormatter("",(Object)(((int)(Double.parseDouble(_et_promocant.getText())))))+", Prods fijos="+__c.SmartStringFormatter("",(Object)(_tpf))+", "),0); + //BA.debugLineNum = 932;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 933;BA.debugLine="End Sub"; +return ""; +} +public String _b_terminar1_click() throws Exception{ +int _t = 0; +String _pn = ""; + //BA.debugLineNum = 972;BA.debugLine="Private Sub b_terminar1_Click"; + //BA.debugLineNum = 973;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 974;BA.debugLine="Log(\"============================================"; +__c.LogImpl("377987842","====================================================================",0); + //BA.debugLineNum = 975;BA.debugLine="For t = 0 To prodsIds.Size - 1 'Guardamos los pro"; +{ +final int step3 = 1; +final int limit3 = (int) (_prodsids.getSize()-1); +_t = (int) (0) ; +for (;_t <= limit3 ;_t = _t + step3 ) { + //BA.debugLineNum = 976;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods"; +_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(_prodsids.Get(_t))); + //BA.debugLineNum = 977;BA.debugLine="If prodsCants.Get(t) > 0 Then"; +if ((double)(BA.ObjectToNumber(_prodscants.Get(_t)))>0) { + //BA.debugLineNum = 978;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUT"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 979;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prods"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios.Get(_t)),BA.ObjectToString(_prodscants.Get(_t)),_pn,BA.ObjectToString(_prodsids.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1)); + }else { + //BA.debugLineNum = 981;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prods"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios.Get(_t)),BA.ObjectToString(_prodscants.Get(_t)),_pn,BA.ObjectToString(_prodsids.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0)); + }; + }; + } +}; + //BA.debugLineNum = 985;BA.debugLine="For t = 0 To prodsIds2.Size - 1 'Guardamos los pr"; +{ +final int step13 = 1; +final int limit13 = (int) (_prodsids2.getSize()-1); +_t = (int) (0) ; +for (;_t <= limit13 ;_t = _t + step13 ) { + //BA.debugLineNum = 986;BA.debugLine="Private pn As String = Subs.traeProdNombre(prods"; +_pn = _subs._traeprodnombre /*String*/ (ba,BA.ObjectToString(_prodsids2.Get(_t))); + //BA.debugLineNum = 987;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTU"; +if ((_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 988;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios2.Get(_t)),BA.ObjectToString(_prodscants2.Get(_t)),_pn,BA.ObjectToString(_prodsids2.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(1)); + }else { + //BA.debugLineNum = 990;BA.debugLine="Subs.guardaProductoSinGestion(estaPromo, prodsP"; +_subs._guardaproductosingestion /*String*/ (ba,_estapromo,BA.ObjectToString(_prodsprecios2.Get(_t)),BA.ObjectToString(_prodscants2.Get(_t)),_pn,BA.ObjectToString(_prodsids2.Get(_t)),_subs._traecliente /*String*/ (ba),_subs._traefecha /*String*/ (ba),_subs._traeusuariodebd /*String*/ (ba),_subs._traeruta /*String*/ (ba),BA.NumberToString(0),_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._tipo_venta /*String*/ ,BA.NumberToString(0)); + }; + } +}; + //BA.debugLineNum = 1005;BA.debugLine="lv_prodsFijos.Clear"; +_lv_prodsfijos.Clear(); + //BA.debugLineNum = 1006;BA.debugLine="B4XPages.MainPage.bTerminarClicked = True"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._bterminarclicked /*boolean*/ = __c.True; + //BA.debugLineNum = 1007;BA.debugLine="B4XPages.ShowPage(\"productos\")"; +_b4xpages._showpage /*String*/ (ba,"productos"); + //BA.debugLineNum = 1008;BA.debugLine="B4XPages.MainPage.productos.b_terminar1_Click"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._productos /*gunav2.keymon.com.mx.c_productos*/ ._b_terminar1_click /*String*/ (); + //BA.debugLineNum = 1009;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 465;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 467;BA.debugLine="prodsIds.Initialize"; +_prodsids.Initialize(); + //BA.debugLineNum = 468;BA.debugLine="prodsCants.Initialize"; +_prodscants.Initialize(); + //BA.debugLineNum = 469;BA.debugLine="prodsPrecios.Initialize"; +_prodsprecios.Initialize(); + //BA.debugLineNum = 470;BA.debugLine="prodsIds2.Initialize"; +_prodsids2.Initialize(); + //BA.debugLineNum = 471;BA.debugLine="prodsCants2.Initialize"; +_prodscants2.Initialize(); + //BA.debugLineNum = 472;BA.debugLine="prodsPrecios2.Initialize"; +_prodsprecios2.Initialize(); + //BA.debugLineNum = 473;BA.debugLine="Dim m As Map = Subs.traeTotalesClienteActual"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = _subs._traetotalesclienteactual /*anywheresoftware.b4a.objects.collections.Map*/ (ba); + //BA.debugLineNum = 474;BA.debugLine="prodsPedidoActual = m.Get(\"productos\")"; +_prodspedidoactual = BA.ObjectToString(_m.Get((Object)("productos"))); + //BA.debugLineNum = 475;BA.debugLine="montoPedidoActual = m.Get(\"monto\")"; +_montopedidoactual = BA.ObjectToString(_m.Get((Object)("monto"))); + //BA.debugLineNum = 477;BA.debugLine="If laPromo <> \"\" Then muestraPromo(laPromo, elCli"; +if ((_lapromo).equals("") == false) { +_muestrapromo(_lapromo,_elcliente);}; + //BA.debugLineNum = 478;BA.debugLine="Log(laPromo)"; +__c.LogImpl("377070349",_lapromo,0); + //BA.debugLineNum = 479;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 450;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 451;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 453;BA.debugLine="Root.LoadLayout(\"promociones\")"; +_root.LoadLayout("promociones",ba); + //BA.debugLineNum = 455;BA.debugLine="p_promociones.Height= Root.Height"; +_p_promociones.setHeight(_root.getHeight()); + //BA.debugLineNum = 456;BA.debugLine="p_promociones.Width= Root.Width"; +_p_promociones.setWidth(_root.getWidth()); + //BA.debugLineNum = 457;BA.debugLine="promosMap.Initialize"; +_promosmap.Initialize(); + //BA.debugLineNum = 458;BA.debugLine="p_promociones.Top=0"; +_p_promociones.setTop((int) (0)); + //BA.debugLineNum = 459;BA.debugLine="p_promociones.Left=0"; +_p_promociones.setLeft((int) (0)); + //BA.debugLineNum = 460;BA.debugLine="b_terminar1.Left = Root.Width - (b_terminar1.Widt"; +_b_terminar1.setLeft((int) (_root.getWidth()-(_b_terminar1.getWidth()+10))); + //BA.debugLineNum = 461;BA.debugLine="b_continuar.Left = Root.Width - b_terminar1.Width"; +_b_continuar.setLeft((int) (_root.getWidth()-_b_terminar1.getWidth()-(_b_continuar.getWidth()+20))); + //BA.debugLineNum = 462;BA.debugLine="Subs.centraPanel(p_promociones,Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_promociones,_root.getWidth()); + //BA.debugLineNum = 463;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 398;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 399;BA.debugLine="Private Root As B4XView 'ignore"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 400;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 401;BA.debugLine="Private l_promoDesc As Label"; +_l_promodesc = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 402;BA.debugLine="Private lv_prodsFijos As ListView"; +_lv_prodsfijos = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 403;BA.debugLine="Private clv_prodsVariabes, clv_prodsVariabes2 As"; +_clv_prodsvariabes = new b4a.example3.customlistview(); +_clv_prodsvariabes2 = new b4a.example3.customlistview(); + //BA.debugLineNum = 404;BA.debugLine="Private l_prodsFijos As Label"; +_l_prodsfijos = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 405;BA.debugLine="Private l_prodsVariables, l_prodsVariables2 As La"; +_l_prodsvariables = new anywheresoftware.b4a.objects.LabelWrapper(); +_l_prodsvariables2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 406;BA.debugLine="Private i_prod As ImageView"; +_i_prod = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 407;BA.debugLine="Private l_prodX As Label"; +_l_prodx = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 408;BA.debugLine="Private p_prods As Panel"; +_p_prods = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 409;BA.debugLine="Private b_prodMenos, b_prodMenos2 As Button"; +_b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper(); +_b_prodmenos2 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 410;BA.debugLine="Private et_pCant As EditText"; +_et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 411;BA.debugLine="Private b_prodMas, b_prodMas2 As Button"; +_b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper(); +_b_prodmas2 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 412;BA.debugLine="Private l_pCant As Label"; +_l_pcant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 413;BA.debugLine="Dim totalProds As Int = 0"; +_totalprods = (int) (0); + //BA.debugLineNum = 414;BA.debugLine="Dim prodsVar1 As Int = 0"; +_prodsvar1 = (int) (0); + //BA.debugLineNum = 415;BA.debugLine="Dim prodsVar2 As Int = 0"; +_prodsvar2 = (int) (0); + //BA.debugLineNum = 416;BA.debugLine="Dim prodsVarReq As Int = 0"; +_prodsvarreq = (int) (0); + //BA.debugLineNum = 417;BA.debugLine="Dim prodsVarReq_ As Int = 0"; +_prodsvarreq_ = (int) (0); + //BA.debugLineNum = 418;BA.debugLine="Dim prodsVarReq2 As Int = 0"; +_prodsvarreq2 = (int) (0); + //BA.debugLineNum = 419;BA.debugLine="Dim prodsVarReq2_ As Int = 0"; +_prodsvarreq2_ = (int) (0); + //BA.debugLineNum = 420;BA.debugLine="Dim totalCompra As Float = 0"; +_totalcompra = (float) (0); + //BA.debugLineNum = 421;BA.debugLine="Dim prodsFijosTot As Float = 0"; +_prodsfijostot = (float) (0); + //BA.debugLineNum = 422;BA.debugLine="Dim tpf As Int = 0"; +_tpf = (int) (0); + //BA.debugLineNum = 423;BA.debugLine="Dim tpf2 As Int = 0"; +_tpf2 = (int) (0); + //BA.debugLineNum = 424;BA.debugLine="Dim maxCantPromos As Int = 1"; +_maxcantpromos = (int) (1); + //BA.debugLineNum = 425;BA.debugLine="Private l_totProds As Label"; +_l_totprods = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 426;BA.debugLine="Private l_total As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 427;BA.debugLine="Private b_terminar1 As Button"; +_b_terminar1 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 428;BA.debugLine="Private p_promociones As Panel"; +_p_promociones = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 429;BA.debugLine="Dim prodsIds, prodsCants, prodsPrecios, prodsIds2"; +_prodsids = new anywheresoftware.b4a.objects.collections.List(); +_prodscants = new anywheresoftware.b4a.objects.collections.List(); +_prodsprecios = new anywheresoftware.b4a.objects.collections.List(); +_prodsids2 = new anywheresoftware.b4a.objects.collections.List(); +_prodscants2 = new anywheresoftware.b4a.objects.collections.List(); +_prodsprecios2 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 430;BA.debugLine="Dim estaPromo, esteCliente As String"; +_estapromo = ""; +_estecliente = ""; + //BA.debugLineNum = 431;BA.debugLine="Private b_promoMas As Button"; +_b_promomas = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 432;BA.debugLine="Private b_promoMenos As Button"; +_b_promomenos = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 433;BA.debugLine="Private et_promoCant As EditText"; +_et_promocant = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 434;BA.debugLine="Private l_promosCant As Label"; +_l_promoscant = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 435;BA.debugLine="Private b_continuar As Button"; +_b_continuar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 436;BA.debugLine="Private p_prodsVariables, p_prodsVariables2 As Pa"; +_p_prodsvariables = new anywheresoftware.b4a.objects.PanelWrapper(); +_p_prodsvariables2 = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 437;BA.debugLine="Dim laPromo = \"\", elCliente = \"\" As String"; +_lapromo = ""; +_elcliente = ""; + //BA.debugLineNum = 438;BA.debugLine="Dim prodsPedidoActual As String"; +_prodspedidoactual = ""; + //BA.debugLineNum = 439;BA.debugLine="Dim montoPedidoActual As String"; +_montopedidoactual = ""; + //BA.debugLineNum = 440;BA.debugLine="Dim promosMap As Map"; +_promosmap = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 441;BA.debugLine="Dim su As StringUtils"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 442;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 678;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; + //BA.debugLineNum = 679;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 680;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 681;BA.debugLine="p.LoadLayout(\"prodItem1\")"; +_p.LoadLayout("prodItem1",ba); + //BA.debugLineNum = 682;BA.debugLine="l_prodX.TextSize = 15"; +_l_prodx.setTextSize((float) (15)); + //BA.debugLineNum = 683;BA.debugLine="l_prodX.Text = Text"; +_l_prodx.setText(BA.ObjectToCharSequence(_text)); + //BA.debugLineNum = 684;BA.debugLine="l_prodX.TextSize = 15"; +_l_prodx.setTextSize((float) (15)); + //BA.debugLineNum = 687;BA.debugLine="p_prods.height = su.MeasureMultilineTextHeight(l_"; +_p_prods.setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_l_prodx.getObject()),BA.ObjectToCharSequence(_l_prodx.getText()))+20)); + //BA.debugLineNum = 688;BA.debugLine="If p_prods.Height < Height Then p_prods.Height ="; +if (_p_prods.getHeight()<_height) { +_p_prods.setHeight(_height);}; + //BA.debugLineNum = 689;BA.debugLine="l_prodX.Height = p_prods.Height"; +_l_prodx.setHeight(_p_prods.getHeight()); + //BA.debugLineNum = 690;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId"; +_l_pcant.setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid)); + //BA.debugLineNum = 691;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId"; +_et_pcant.setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid)); + //BA.debugLineNum = 692;BA.debugLine="et_pCant.BringToFront"; +_et_pcant.BringToFront(); + //BA.debugLineNum = 694;BA.debugLine="p.Height = p_prods.Height"; +_p.setHeight(_p_prods.getHeight()); + //BA.debugLineNum = 695;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 = 696;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _text,String _preciou,int _inv,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 698;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str"; + //BA.debugLineNum = 699;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 700;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 701;BA.debugLine="p.LoadLayout(\"prodItem2\")"; +_p.LoadLayout("prodItem2",ba); + //BA.debugLineNum = 702;BA.debugLine="l_prodX.TextSize = 15"; +_l_prodx.setTextSize((float) (15)); + //BA.debugLineNum = 703;BA.debugLine="l_prodX.Text = Text"; +_l_prodx.setText(BA.ObjectToCharSequence(_text)); + //BA.debugLineNum = 704;BA.debugLine="l_prodX.TextSize = 15"; +_l_prodx.setTextSize((float) (15)); + //BA.debugLineNum = 707;BA.debugLine="p_prods.height = su.MeasureMultilineTextHeight(l_"; +_p_prods.setHeight((int) (_su.MeasureMultilineTextHeight((android.widget.TextView)(_l_prodx.getObject()),BA.ObjectToCharSequence(_l_prodx.getText()))+20)); + //BA.debugLineNum = 708;BA.debugLine="If p_prods.Height < Height Then p_prods.Height ="; +if (_p_prods.getHeight()<_height) { +_p_prods.setHeight(_height);}; + //BA.debugLineNum = 709;BA.debugLine="l_prodX.Height = p_prods.Height"; +_l_prodx.setHeight(_p_prods.getHeight()); + //BA.debugLineNum = 711;BA.debugLine="l_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId"; +_l_pcant.setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid)); + //BA.debugLineNum = 712;BA.debugLine="et_pCant.Tag = precioU&\"|\"&inv&\"|\"&prodId"; +_et_pcant.setTag((Object)(_preciou+"|"+BA.NumberToString(_inv)+"|"+_prodid)); + //BA.debugLineNum = 713;BA.debugLine="et_pCant.BringToFront"; +_et_pcant.BringToFront(); + //BA.debugLineNum = 715;BA.debugLine="p.Height = p_prods.Height"; +_p.setHeight(_p_prods.getHeight()); + //BA.debugLineNum = 716;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 = 717;BA.debugLine="End Sub"; +return null; +} +public String _cuentaprods() throws Exception{ +boolean _thislog = false; +float _tcpf = 0f; +int _pf = 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; +anywheresoftware.b4a.objects.B4XViewWrapper _cant2 = null; + //BA.debugLineNum = 836;BA.debugLine="Sub cuentaProds"; + //BA.debugLineNum = 839;BA.debugLine="Private thisLog As Boolean = False"; +_thislog = __c.False; + //BA.debugLineNum = 841;BA.debugLine="prodsIds2.Clear"; +_prodsids2.Clear(); + //BA.debugLineNum = 842;BA.debugLine="prodsCants2.Clear"; +_prodscants2.Clear(); + //BA.debugLineNum = 843;BA.debugLine="prodsPrecios2.Clear"; +_prodsprecios2.Clear(); + //BA.debugLineNum = 844;BA.debugLine="lv_prodsFijos.Clear"; +_lv_prodsfijos.Clear(); + //BA.debugLineNum = 845;BA.debugLine="prodsVar1 = 0"; +_prodsvar1 = (int) (0); + //BA.debugLineNum = 846;BA.debugLine="prodsVar2 = 0"; +_prodsvar2 = (int) (0); + //BA.debugLineNum = 847;BA.debugLine="agregaFijosALista(Subs.traePromo(estaPromo, esteC"; +_agregafijosalista(_subs._traepromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_estapromo,_estecliente),__c.True); + //BA.debugLineNum = 849;BA.debugLine="Private tcpf As Float = 0 'Total de compra de pro"; +_tcpf = (float) (0); + //BA.debugLineNum = 850;BA.debugLine="For pf = 0 To prodsIds.Size - 1"; +{ +final int step10 = 1; +final int limit10 = (int) (_prodsids.getSize()-1); +_pf = (int) (0) ; +for (;_pf <= limit10 ;_pf = _pf + step10 ) { + //BA.debugLineNum = 851;BA.debugLine="If thisLog Then Log($\"${tcpf} + ${prodsCants.Get"; +if (_thislog) { +__c.LogImpl("377725711",(""+__c.SmartStringFormatter("",(Object)(_tcpf))+" + "+__c.SmartStringFormatter("",_prodscants.Get(_pf))+" * "+__c.SmartStringFormatter("",_prodsprecios.Get(_pf))+" = "+__c.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))))+""),0);}; + //BA.debugLineNum = 852;BA.debugLine="tcpf = tcpf + (prodsPrecios.Get(pf) * prodsCants"; +_tcpf = (float) (_tcpf+((double)(BA.ObjectToNumber(_prodsprecios.Get(_pf)))*(double)(BA.ObjectToNumber(_prodscants.Get(_pf))))); + } +}; + //BA.debugLineNum = 855;BA.debugLine="totalCompra = tcpf"; +_totalcompra = _tcpf; + //BA.debugLineNum = 856;BA.debugLine="totalProds = tpf 'Cantidad total de productos fij"; +_totalprods = _tpf; + //BA.debugLineNum = 858;BA.debugLine="For i = 0 To clv_prodsVariabes.GetSize - 1"; +{ +final int step16 = 1; +final int limit16 = (int) (_clv_prodsvariabes._getsize()-1); +_i = (int) (0) ; +for (;_i <= limit16 ;_i = _i + step16 ) { + //BA.debugLineNum = 859;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes.GetPan"; +_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p0 = _clv_prodsvariabes._getpanel(_i); + //BA.debugLineNum = 860;BA.debugLine="Private p As B4XView = p0.GetView(0)"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _p0.GetView((int) (0)); + //BA.debugLineNum = 861;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView("; +_cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_cant1 = _p.GetView((int) (2)).GetView((int) (4)); + //BA.debugLineNum = 862;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0"; +if ((_cant1.getText()).equals("")) { +_cant1.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 863;BA.debugLine="totalProds = totalProds + cant1.Text"; +_totalprods = (int) (_totalprods+(double)(Double.parseDouble(_cant1.getText()))); + //BA.debugLineNum = 864;BA.debugLine="prodsVar1 = prodsVar1 + cant1.Text"; +_prodsvar1 = (int) (_prodsvar1+(double)(Double.parseDouble(_cant1.getText()))); + //BA.debugLineNum = 865;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag()))); + //BA.debugLineNum = 866;BA.debugLine="If cant1.Text > esteTag.Get(1) Then cant1.Text ="; +if ((double)(Double.parseDouble(_cant1.getText()))>(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { +_cant1.setText(BA.ObjectToCharSequence(_estetag.Get((int) (1))));}; + //BA.debugLineNum = 867;BA.debugLine="If cant1.Text > 0 Then"; +if ((double)(Double.parseDouble(_cant1.getText()))>0) { + //BA.debugLineNum = 869;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c"; +_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText())))); + //BA.debugLineNum = 870;BA.debugLine="If thisLog Then Log($\"Cant: ${cant1.Text}, Suma"; +if (_thislog) { +__c.LogImpl("377725730",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant1.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);}; + //BA.debugLineNum = 871;BA.debugLine="prodsIds2.Add(esteTag.Get(2))"; +_prodsids2.Add(_estetag.Get((int) (2))); + //BA.debugLineNum = 872;BA.debugLine="prodsCants2.Add(cant1.Text)"; +_prodscants2.Add((Object)(_cant1.getText())); + //BA.debugLineNum = 873;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))"; +_prodsprecios2.Add(_estetag.Get((int) (0))); + }; + //BA.debugLineNum = 875;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$"; +_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""))); + //BA.debugLineNum = 876;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$"; +_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_totalprods))+""))); + } +}; + //BA.debugLineNum = 879;BA.debugLine="For i = 0 To clv_prodsVariabes2.GetSize - 1"; +{ +final int step35 = 1; +final int limit35 = (int) (_clv_prodsvariabes2._getsize()-1); +_i = (int) (0) ; +for (;_i <= limit35 ;_i = _i + step35 ) { + //BA.debugLineNum = 880;BA.debugLine="Private p0 As B4XView = clv_prodsVariabes2.GetPa"; +_p0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p0 = _clv_prodsvariabes2._getpanel(_i); + //BA.debugLineNum = 881;BA.debugLine="Private p As B4XView = p0.GetView(0)"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _p0.GetView((int) (0)); + //BA.debugLineNum = 882;BA.debugLine="Private cant2 As B4XView = p.GetView(2).GetView("; +_cant2 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_cant2 = _p.GetView((int) (2)).GetView((int) (4)); + //BA.debugLineNum = 883;BA.debugLine="totalProds = totalProds + cant2.Text"; +_totalprods = (int) (_totalprods+(double)(Double.parseDouble(_cant2.getText()))); + //BA.debugLineNum = 884;BA.debugLine="prodsVar2 = prodsVar2 + cant2.Text"; +_prodsvar2 = (int) (_prodsvar2+(double)(Double.parseDouble(_cant2.getText()))); + //BA.debugLineNum = 885;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", cant"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant2.getTag()))); + //BA.debugLineNum = 886;BA.debugLine="If cant2.Text > esteTag.Get(1) Then cant2.Text ="; +if ((double)(Double.parseDouble(_cant2.getText()))>(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))) { +_cant2.setText(BA.ObjectToCharSequence(_estetag.Get((int) (1))));}; + //BA.debugLineNum = 887;BA.debugLine="If cant2.Text > 0 Then"; +if ((double)(Double.parseDouble(_cant2.getText()))>0) { + //BA.debugLineNum = 889;BA.debugLine="totalCompra = totalCompra + (esteTag.get(0) * c"; +_totalcompra = (float) (_totalcompra+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText())))); + //BA.debugLineNum = 890;BA.debugLine="If thisLog Then Log($\"Cant: ${cant2.Text}, Suma"; +if (_thislog) { +__c.LogImpl("377725750",("Cant: "+__c.SmartStringFormatter("",(Object)(_cant2.getText()))+", Suma: "+__c.SmartStringFormatter("",(Object)(_totalcompra))+""),0);}; + //BA.debugLineNum = 891;BA.debugLine="prodsIds2.Add(esteTag.Get(2))"; +_prodsids2.Add(_estetag.Get((int) (2))); + //BA.debugLineNum = 892;BA.debugLine="prodsCants2.Add(cant2.Text)"; +_prodscants2.Add((Object)(_cant2.getText())); + //BA.debugLineNum = 893;BA.debugLine="prodsPrecios2.Add(esteTag.get(0))"; +_prodsprecios2.Add(_estetag.Get((int) (0))); + }; + //BA.debugLineNum = 895;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$"; +_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""))); + //BA.debugLineNum = 896;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$"; +_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_totalprods))+""))); + } +}; + //BA.debugLineNum = 899;BA.debugLine="If thisLog Then Log($\"Total Prods: ${totalProds},"; +if (_thislog) { +__c.LogImpl("377725759",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0);}; + //BA.debugLineNum = 900;BA.debugLine="l_total.Text = $\"Total: $$1.2{totalCompra}\"$"; +_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""))); + //BA.debugLineNum = 901;BA.debugLine="l_totProds.text = $\"Productos: ${totalProds}\"$"; +_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_totalprods))+""))); + //BA.debugLineNum = 902;BA.debugLine="If totalProds < prodsVarReq + prodsVarReq2 + tpf"; +if (_totalprods<_prodsvarreq+_prodsvarreq2+_tpf || _totalprods>_prodsvarreq+_prodsvarreq2+_tpf) { + //BA.debugLineNum = 904;BA.debugLine="b_terminar1.Visible = False"; +_b_terminar1.setVisible(__c.False); + //BA.debugLineNum = 905;BA.debugLine="b_continuar.Visible = False"; +_b_continuar.setVisible(__c.False); + }else { + //BA.debugLineNum = 908;BA.debugLine="b_terminar1.Visible = True"; +_b_terminar1.setVisible(__c.True); + //BA.debugLineNum = 909;BA.debugLine="b_continuar.Visible = True"; +_b_continuar.setVisible(__c.True); + }; + //BA.debugLineNum = 911;BA.debugLine="If thisLog Then LogColor($\"${prodsIds}${CRLF}${pr"; +if (_thislog) { +__c.LogImpl("377725771",(""+__c.SmartStringFormatter("",(Object)(_prodsids.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios.getObject()))+""),__c.Colors.Blue);}; + //BA.debugLineNum = 912;BA.debugLine="If thisLog Then LogColor($\"${prodsIds2}${CRLF}${p"; +if (_thislog) { +__c.LogImpl("377725772",(""+__c.SmartStringFormatter("",(Object)(_prodsids2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodscants2.getObject()))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_prodsprecios2.getObject()))+""),__c.Colors.Magenta);}; + //BA.debugLineNum = 914;BA.debugLine="End Sub"; +return ""; +} +public String _et_pcant_focuschanged(boolean _hasfocus) throws Exception{ + //BA.debugLineNum = 916;BA.debugLine="Private Sub et_pCant_FocusChanged (HasFocus As Boo"; + //BA.debugLineNum = 917;BA.debugLine="LogColor(\"focus changed\", Colors.Magenta)"; +__c.LogImpl("377791233","focus changed",__c.Colors.Magenta); + //BA.debugLineNum = 918;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 919;BA.debugLine="End Sub"; +return ""; +} +public String _et_pcant_textchanged(String _old,String _new) throws Exception{ + //BA.debugLineNum = 831;BA.debugLine="Private Sub et_pCant_TextChanged (Old As String, N"; + //BA.debugLineNum = 833;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 834;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 445;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 446;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 447;BA.debugLine="End Sub"; +return null; +} +public String _muestrapromo(String _promo,String _cliente) throws Exception{ +boolean _thislog = false; +anywheresoftware.b4a.objects.collections.Map _mp = null; +anywheresoftware.b4a.objects.collections.Map _prodspromo = null; +anywheresoftware.b4a.objects.collections.Map _invdisppromo = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.objects.collections.List _listapv = null; +anywheresoftware.b4a.objects.collections.List _listapreciospv = null; +anywheresoftware.b4a.objects.collections.List _listapv2 = null; +anywheresoftware.b4a.objects.collections.List _listapreciospv2 = null; +anywheresoftware.b4a.objects.collections.List _pv = null; +anywheresoftware.b4a.objects.collections.List _pv2 = null; +int _pfp = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +String _p = ""; +String _indicepv = ""; +String _esteprecio = ""; +anywheresoftware.b4a.objects.collections.Map _thisprod = null; +String _indicepv2 = ""; + //BA.debugLineNum = 482;BA.debugLine="Sub muestraPromo(promo As String, cliente As Strin"; + //BA.debugLineNum = 483;BA.debugLine="Private thisLog As Boolean = False"; +_thislog = __c.False; + //BA.debugLineNum = 485;BA.debugLine="estaPromo = promo"; +_estapromo = _promo; + //BA.debugLineNum = 486;BA.debugLine="esteCliente = cliente"; +_estecliente = _cliente; + //BA.debugLineNum = 487;BA.debugLine="Private mp As Map = Subs.traePromo(promo, cliente"; +_mp = new anywheresoftware.b4a.objects.collections.Map(); +_mp = _subs._traepromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo,_cliente); + //BA.debugLineNum = 488;BA.debugLine="Private prodsPromo As Map = mp.Get(\"productos\") '"; +_prodspromo = new anywheresoftware.b4a.objects.collections.Map(); +_prodspromo = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_mp.Get((Object)("productos")))); + //BA.debugLineNum = 489;BA.debugLine="Private invDispPromo As Map = Subs.traemosInventa"; +_invdisppromo = new anywheresoftware.b4a.objects.collections.Map(); +_invdisppromo = _subs._traemosinventariodisponibleparapromo /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_promo); + //BA.debugLineNum = 491;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods"; +if (_thislog) { +__c.LogImpl("377135881","Max promos por inv de prods FIJOS: "+BA.NumberToString(_subs._revisamaxpromosprodsfijosporinventario /*int*/ (ba,_mp)),0);}; + //BA.debugLineNum = 492;BA.debugLine="If thisLog Then Log(\"Max promos por inv de prods"; +if (_thislog) { +__c.LogImpl("377135882","Max promos por inv de prods VARIABLES: "+BA.NumberToString(_subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp)),0);}; + //BA.debugLineNum = 493;BA.debugLine="maxCantPromos = Subs.revisaMaxPromosProdsVariable"; +_maxcantpromos = _subs._revisamaxpromosprodsvariablesporinventario /*int*/ (ba,_mp); + //BA.debugLineNum = 494;BA.debugLine="et_promoCant.Text = 1"; +_et_promocant.setText(BA.ObjectToCharSequence(1)); + //BA.debugLineNum = 496;BA.debugLine="If laPromo = \"MYKONOS_01\" Then"; +if ((_lapromo).equals("MYKONOS_01")) { + //BA.debugLineNum = 497;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull( SUM (PE_COSTO_TOT),0) As suma FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 498;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 499;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 500;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt.E"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT DISTINCT CAT_PE_MONTO FROM CAT_PROMO_ESP"))); + //BA.debugLineNum = 501;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 502;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 504;BA.debugLine="If c.GetString(\"suma\") >= 300 And c.GetString("; +if ((double)(Double.parseDouble(_c.GetString("suma")))>=300 && (double)(Double.parseDouble(_c.GetString("suma")))<600) { + //BA.debugLineNum = 505;BA.debugLine="l_promosCant.text = \"Max promos: \" & 1"; +_l_promoscant.setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(1))); + }else if((double)(Double.parseDouble(_c.GetString("suma")))>=600 && (double)(Double.parseDouble(_c.GetString("suma")))<900) { + //BA.debugLineNum = 507;BA.debugLine="l_promosCant.text = \"Max promos: \" & 2"; +_l_promoscant.setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(2))); + }else if((double)(Double.parseDouble(_c.GetString("suma")))>=900) { + //BA.debugLineNum = 509;BA.debugLine="l_promosCant.text = \"Max promos: \" & 3"; +_l_promoscant.setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(3))); + }; + }; + }; + }else { + //BA.debugLineNum = 515;BA.debugLine="l_promosCant.text = \"Max promos: \" & maxCantProm"; +_l_promoscant.setText(BA.ObjectToCharSequence("Max promos: "+BA.NumberToString(_maxcantpromos))); + }; + //BA.debugLineNum = 519;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 520;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 521;BA.debugLine="If thisLog Then Log(mp)"; +if (_thislog) { +__c.LogImpl("377135911",BA.ObjectToString(_mp),0);}; + //BA.debugLineNum = 522;BA.debugLine="If thisLog Then Log(prodsPromo)"; +if (_thislog) { +__c.LogImpl("377135912",BA.ObjectToString(_prodspromo),0);}; + //BA.debugLineNum = 523;BA.debugLine="Private listaPV As List = mp.Get(\"prodsVariables\""; +_listapv = new anywheresoftware.b4a.objects.collections.List(); +_listapv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables")))); + //BA.debugLineNum = 524;BA.debugLine="Private listaPreciosPV As List = mp.Get(\"prodsVar"; +_listapreciospv = new anywheresoftware.b4a.objects.collections.List(); +_listapreciospv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariablesPrecios")))); + //BA.debugLineNum = 525;BA.debugLine="Private listaPV2 As List = mp.Get(\"prodsVariables"; +_listapv2 = new anywheresoftware.b4a.objects.collections.List(); +_listapv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2")))); + //BA.debugLineNum = 526;BA.debugLine="Private listaPreciosPV2 As List = mp.Get(\"prodsVa"; +_listapreciospv2 = new anywheresoftware.b4a.objects.collections.List(); +_listapreciospv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariablesPrecios2")))); + //BA.debugLineNum = 531;BA.debugLine="l_promoDesc.Text = cs.Color(Colors.RGB(100,149,23"; +_l_promodesc.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence("Promocion: ")).Pop().Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence(_promo)).Append(BA.ObjectToCharSequence(__c.CRLF)).Append(BA.ObjectToCharSequence(_mp.Get((Object)("descripcion")))).PopAll().getObject())); + //BA.debugLineNum = 532;BA.debugLine="prodsFijosTot = 0"; +_prodsfijostot = (float) (0); + //BA.debugLineNum = 535;BA.debugLine="Dim pv As List = mp.Get(\"prodsVariables\")"; +_pv = new anywheresoftware.b4a.objects.collections.List(); +_pv = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables")))); + //BA.debugLineNum = 536;BA.debugLine="Dim pv2 As List = mp.Get(\"prodsVariables2\")"; +_pv2 = new anywheresoftware.b4a.objects.collections.List(); +_pv2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsVariables2")))); + //BA.debugLineNum = 537;BA.debugLine="If thisLog Then Log(mp)"; +if (_thislog) { +__c.LogImpl("377135927",BA.ObjectToString(_mp),0);}; + //BA.debugLineNum = 538;BA.debugLine="tpf = 0"; +_tpf = (int) (0); + //BA.debugLineNum = 539;BA.debugLine="For Each pfp As Int In mp.Get(\"prodsFijosPiezas\")"; +{ +final anywheresoftware.b4a.BA.IterableList group44 = ((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mp.Get((Object)("prodsFijosPiezas"))))); +final int groupLen44 = group44.getSize() +;int index44 = 0; +; +for (; index44 < groupLen44;index44++){ +_pfp = (int)(BA.ObjectToNumber(group44.Get(index44))); + //BA.debugLineNum = 540;BA.debugLine="tpf = tpf + pfp"; +_tpf = (int) (_tpf+_pfp); + } +}; + //BA.debugLineNum = 542;BA.debugLine="tpf2 = tpf"; +_tpf2 = _tpf; + //BA.debugLineNum = 544;BA.debugLine="l_prodsFijos.Text = $\"Productos fijos (${tpf})\"$"; +_l_prodsfijos.setText(BA.ObjectToCharSequence(("Productos fijos ("+__c.SmartStringFormatter("",(Object)(_tpf))+")"))); + //BA.debugLineNum = 545;BA.debugLine="prodsVarReq = mp.Get(\"prodsVariablesRequeridos\")"; +_prodsvarreq = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariablesRequeridos")))); + //BA.debugLineNum = 546;BA.debugLine="prodsVarReq_ = prodsVarReq"; +_prodsvarreq_ = _prodsvarreq; + //BA.debugLineNum = 547;BA.debugLine="prodsVarReq2 = mp.Get(\"prodsVariables2Requeridos\""; +_prodsvarreq2 = (int)(BA.ObjectToNumber(_mp.Get((Object)("prodsVariables2Requeridos")))); + //BA.debugLineNum = 548;BA.debugLine="prodsVarReq2_ = prodsVarReq2"; +_prodsvarreq2_ = _prodsvarreq2; + //BA.debugLineNum = 550;BA.debugLine="l_prodsVariables.Text = $\"Productos variables req"; +_l_prodsvariables.setText(BA.ObjectToCharSequence(("Productos variables requeridos: "+__c.SmartStringFormatter("",(Object)(_prodsvarreq))+""))); + //BA.debugLineNum = 551;BA.debugLine="l_prodsVariables2.Text = $\"Productos variables2 r"; +_l_prodsvariables2.setText(BA.ObjectToCharSequence(("Productos variables2 requeridos: "+__c.SmartStringFormatter("",(Object)(_prodsvarreq2))+""))); + //BA.debugLineNum = 552;BA.debugLine="If prodsVarReq = 0 Then"; +if (_prodsvarreq==0) { + //BA.debugLineNum = 553;BA.debugLine="p_prodsVariables.Visible = False"; +_p_prodsvariables.setVisible(__c.False); + }else { + //BA.debugLineNum = 555;BA.debugLine="p_prodsVariables.Visible = True"; +_p_prodsvariables.setVisible(__c.True); + }; + //BA.debugLineNum = 558;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 559;BA.debugLine="label1 = lv_prodsFijos.SingleLineLayout.Label"; +_label1 = _lv_prodsfijos.getSingleLineLayout().Label; + //BA.debugLineNum = 560;BA.debugLine="label1.TextSize = 13"; +_label1.setTextSize((float) (13)); + //BA.debugLineNum = 561;BA.debugLine="label1.TextColor = Colors.black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 562;BA.debugLine="lv_prodsFijos.SingleLineLayout.ItemHeight = 30dip"; +_lv_prodsfijos.getSingleLineLayout().setItemHeight(__c.DipToCurrent((int) (30))); + //BA.debugLineNum = 563;BA.debugLine="lv_prodsFijos.Clear"; +_lv_prodsfijos.Clear(); + //BA.debugLineNum = 565;BA.debugLine="lv_prodsFijos.Clear"; +_lv_prodsfijos.Clear(); + //BA.debugLineNum = 566;BA.debugLine="agregaFijosALista(mp, True)"; +_agregafijosalista(_mp,__c.True); + //BA.debugLineNum = 567;BA.debugLine="If thisLog Then Log(\"Total prods fijos = \" & prod"; +if (_thislog) { +__c.LogImpl("377135957","Total prods fijos = "+BA.NumberToString(_prodsfijostot),0);}; + //BA.debugLineNum = 569;BA.debugLine="l_totProds.text = $\"Productos: ${tpf}\"$"; +_l_totprods.setText(BA.ObjectToCharSequence(("Productos: "+__c.SmartStringFormatter("",(Object)(_tpf))+""))); + //BA.debugLineNum = 570;BA.debugLine="l_total.Text = $\"Total: $$1.2{prodsFijosTot}\"$"; +_l_total.setText(BA.ObjectToCharSequence(("Total: $"+__c.SmartStringFormatter("1.2",(Object)(_prodsfijostot))+""))); + //BA.debugLineNum = 576;BA.debugLine="If thisLog Then Log($\"PV1: ${pv.Size}, ${pv}\"$)"; +if (_thislog) { +__c.LogImpl("377135966",("PV1: "+__c.SmartStringFormatter("",(Object)(_pv.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv.getObject()))+""),0);}; + //BA.debugLineNum = 577;BA.debugLine="If thisLog Then Log($\"PV2: ${pv2.Size}, ${pv2}\"$)"; +if (_thislog) { +__c.LogImpl("377135967",("PV2: "+__c.SmartStringFormatter("",(Object)(_pv2.getSize()))+", "+__c.SmartStringFormatter("",(Object)(_pv2.getObject()))+""),0);}; + //BA.debugLineNum = 578;BA.debugLine="If thisLog Then Log(\"invDisp=\" & invDispPromo)"; +if (_thislog) { +__c.LogImpl("377135968","invDisp="+BA.ObjectToString(_invdisppromo),0);}; + //BA.debugLineNum = 579;BA.debugLine="clv_prodsVariabes.Clear"; +_clv_prodsvariabes._clear(); + //BA.debugLineNum = 580;BA.debugLine="clv_prodsVariabes2.Clear"; +_clv_prodsvariabes2._clear(); + //BA.debugLineNum = 581;BA.debugLine="For Each p As String In pv"; +{ +final anywheresoftware.b4a.BA.IterableList group76 = _pv; +final int groupLen76 = group76.getSize() +;int index76 = 0; +; +for (; index76 < groupLen76;index76++){ +_p = BA.ObjectToString(group76.Get(index76)); + //BA.debugLineNum = 582;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta"; +if (_invdisppromo.ContainsKey((Object)(_p))) { + //BA.debugLineNum = 583;BA.debugLine="Private indicePV = listaPV.IndexOf(p)"; +_indicepv = BA.NumberToString(_listapv.IndexOf((Object)(_p))); + //BA.debugLineNum = 585;BA.debugLine="Private estePrecio = listaPreciosPV.Get(indiceP"; +_esteprecio = BA.ObjectToString(_listapreciospv.Get((int)(Double.parseDouble(_indicepv)))); + //BA.debugLineNum = 590;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)"; +_thisprod = new anywheresoftware.b4a.objects.collections.Map(); +_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p)))); + //BA.debugLineNum = 591;BA.debugLine="If thisLog Then Log(thisProd)"; +if (_thislog) { +__c.LogImpl("377135981",BA.ObjectToString(_thisprod),0);}; + //BA.debugLineNum = 592;BA.debugLine="clv_prodsVariabes.Add(CreateListItem(Subs.traeP"; +_clv_prodsvariabes._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p)); + }; + } +}; + //BA.debugLineNum = 596;BA.debugLine="For Each p As String In pv2"; +{ +final anywheresoftware.b4a.BA.IterableList group85 = _pv2; +final int groupLen85 = group85.getSize() +;int index85 = 0; +; +for (; index85 < groupLen85;index85++){ +_p = BA.ObjectToString(group85.Get(index85)); + //BA.debugLineNum = 597;BA.debugLine="If invDispPromo.ContainsKey(p) Then 'Si no esta"; +if (_invdisppromo.ContainsKey((Object)(_p))) { + //BA.debugLineNum = 602;BA.debugLine="Private indicePV2 = listaPV2.IndexOf(p)"; +_indicepv2 = BA.NumberToString(_listapv2.IndexOf((Object)(_p))); + //BA.debugLineNum = 605;BA.debugLine="Private estePrecio = listaPreciosPV2.Get(indice"; +_esteprecio = BA.ObjectToString(_listapreciospv2.Get((int)(Double.parseDouble(_indicepv2)))); + //BA.debugLineNum = 610;BA.debugLine="Private thisProd As Map = prodsPromo.Get(p)"; +_thisprod = new anywheresoftware.b4a.objects.collections.Map(); +_thisprod = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodspromo.Get((Object)(_p)))); + //BA.debugLineNum = 611;BA.debugLine="If thisLog Then Log(thisProd)"; +if (_thislog) { +__c.LogImpl("377136001",BA.ObjectToString(_thisprod),0);}; + //BA.debugLineNum = 612;BA.debugLine="clv_prodsVariabes2.Add(CreateListItem2(Subs.tra"; +_clv_prodsvariabes2._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_subs._traeprodnombre /*String*/ (ba,_p)+__c.CRLF+"Hay "+BA.ObjectToString(_invdisppromo.Get((Object)(_p)))+" $"+_esteprecio,_esteprecio,(int)(BA.ObjectToNumber(_invdisppromo.Get((Object)(_p)))),_clv_prodsvariabes2._asview().getWidth(),__c.DipToCurrent((int) (50)),(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(__c.Null)),_p).getObject())),(Object)(_p)); + }; + } +}; + //BA.debugLineNum = 615;BA.debugLine="If pv2.Size = 0 Then"; +if (_pv2.getSize()==0) { + //BA.debugLineNum = 617;BA.debugLine="l_prodsVariables2.Visible = False"; +_l_prodsvariables2.setVisible(__c.False); + //BA.debugLineNum = 618;BA.debugLine="p_prodsVariables2.Visible = False"; +_p_prodsvariables2.setVisible(__c.False); + //BA.debugLineNum = 620;BA.debugLine="p_prodsVariables.Height = 410dip"; +_p_prodsvariables.setHeight(__c.DipToCurrent((int) (410))); + //BA.debugLineNum = 621;BA.debugLine="clv_prodsVariabes.GetBase.Height = p_prodsVariab"; +_clv_prodsvariabes._getbase().setHeight((int) (_p_prodsvariables.getHeight()-20)); + //BA.debugLineNum = 625;BA.debugLine="clv_prodsVariabes.Base_Resize(clv_prodsVariabes."; +_clv_prodsvariabes._base_resize(_clv_prodsvariabes._getbase().getWidth(),_p_prodsvariables.getHeight()-20); + }else { + //BA.debugLineNum = 627;BA.debugLine="l_prodsVariables2.Visible = True"; +_l_prodsvariables2.setVisible(__c.True); + //BA.debugLineNum = 628;BA.debugLine="p_prodsVariables2.Visible = True"; +_p_prodsvariables2.setVisible(__c.True); + //BA.debugLineNum = 629;BA.debugLine="p_prodsVariables.Height = 210dip"; +_p_prodsvariables.setHeight(__c.DipToCurrent((int) (210))); + //BA.debugLineNum = 630;BA.debugLine="clv_prodsVariabes.GetBase.Height = p_prodsVariab"; +_clv_prodsvariabes._getbase().setHeight((int) (_p_prodsvariables.getHeight()-20)); + }; + //BA.debugLineNum = 632;BA.debugLine="b_terminar1.Visible = False"; +_b_terminar1.setVisible(__c.False); + //BA.debugLineNum = 633;BA.debugLine="b_continuar.Visible = False"; +_b_continuar.setVisible(__c.False); + //BA.debugLineNum = 634;BA.debugLine="cuentaProds"; +_cuentaprods(); + //BA.debugLineNum = 635;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/gunav2/keymon/com/mx/c_ticketsdia.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_ticketsdia.java new file mode 100644 index 0000000..1adf1d9 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_ticketsdia.java @@ -0,0 +1,518 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_ticketsdia"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 anywheresoftware.b4a.objects.PanelWrapper _p_ticketsdia = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; +public String _ruta = ""; +public anywheresoftware.b4a.objects.ListViewWrapper _listview1 = null; +public anywheresoftware.b4a.objects.ButtonWrapper _b_noventa = null; +public String _nombre_boton = ""; +public String _stime = ""; +public anywheresoftware.b4a.objects.LabelWrapper _l_ventanoventa = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public boolean _activity_keypress(int _key) throws Exception{ + //BA.debugLineNum = 135;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean"; + //BA.debugLineNum = 137;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; +if (_key==__c.KeyCodes.KEYCODE_BACK) { + //BA.debugLineNum = 139;BA.debugLine="B4XPages.ShowPage(\"principal\")"; +_b4xpages._showpage /*String*/ (ba,"principal"); + }; + //BA.debugLineNum = 143;BA.debugLine="Return False"; +if (true) return __c.False; + //BA.debugLineNum = 144;BA.debugLine="End Sub"; +return false; +} +public String _b_noventa_click() throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null; + //BA.debugLineNum = 162;BA.debugLine="Sub b_noventa_Click"; + //BA.debugLineNum = 163;BA.debugLine="If nombre_boton = \"NOVENTA\" Then"; +if ((_nombre_boton).equals("NOVENTA")) { + //BA.debugLineNum = 164;BA.debugLine="nombre_boton = \"VENTA\""; +_nombre_boton = "VENTA"; + //BA.debugLineNum = 165;BA.debugLine="b_noventa.Text =\"VENTA\""; +_b_noventa.setText(BA.ObjectToCharSequence("VENTA")); + //BA.debugLineNum = 166;BA.debugLine="L_ventanoventa.Text = \"Clientes sin venta\""; +_l_ventanoventa.setText(BA.ObjectToCharSequence("Clientes sin venta")); + //BA.debugLineNum = 167;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select NV_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select NV_CLIENTE,NV_MOTIVO,NV_COMM, (select CAT_CL_NOMBRE from kmt_info3 where cat_cl_codigo = NV_CLIENTE ) as NOMBRE FROM NOVENTA ORDER BY NV_CLIENTE asc"))); + //BA.debugLineNum = 168;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 169;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 170;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step8 = 1; +final int limit8 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit8 ;_i = _i + step8 ) { + //BA.debugLineNum = 171;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 172;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 173;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 174;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 175;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 176;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 177;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 178;BA.debugLine="label2.TextSize = 10"; +_label2.setTextSize((float) (10)); + //BA.debugLineNum = 179;BA.debugLine="label2.TextColor = Colors.Blue"; +_label2.setTextColor(__c.Colors.Blue); + //BA.debugLineNum = 180;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"NV_CLIENTE\""; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("NV_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Motivo #"+_c.GetString("NV_MOTIVO")+" Comentario $"+_c.GetString("NV_COMM"))); + } +}; + }; + }else { + //BA.debugLineNum = 184;BA.debugLine="nombre_boton = \"NOVENTA\""; +_nombre_boton = "NOVENTA"; + //BA.debugLineNum = 185;BA.debugLine="b_noventa.Text =\"NO VENTA\""; +_b_noventa.setText(BA.ObjectToCharSequence("NO VENTA")); + //BA.debugLineNum = 186;BA.debugLine="L_ventanoventa.Text = \"Clientes con venta\""; +_l_ventanoventa.setText(BA.ObjectToCharSequence("Clientes con venta")); + //BA.debugLineNum = 187;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 188;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PC_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PC_CLIENTE,PC_MONTO,PC_NOART,(select CAT_CL_NOMBRE from kmt_info3 where cat_cl_codigo = pc_cliente ) as NOMBRE FROM PEDIDO_CLIENTE ORDER BY PC_FECHA asc"))); + //BA.debugLineNum = 191;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 192;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 193;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step29 = 1; +final int limit29 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit29 ;_i = _i + step29 ) { + //BA.debugLineNum = 194;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 195;BA.debugLine="Log(C.GetString(\"PC_CLIENTE\"))"; +__c.LogImpl("368616225",_c.GetString("PC_CLIENTE"),0); + //BA.debugLineNum = 196;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Ex"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE = ? and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{_c.GetString("PC_CLIENTE"),"","null"}))); + //BA.debugLineNum = 197;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)"; +__c.LogImpl("368616227",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow); + //BA.debugLineNum = 198;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 199;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Ex"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, IFNULL(SUM(PE_CANT),0) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ? and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL ) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP)",new String[]{_c.GetString("PC_CLIENTE"),"","null"}))); + //BA.debugLineNum = 200;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 201;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt"; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE, IFNULL(SUM(PE_CANT),0) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ? and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP)",new String[]{_c.GetString("PC_CLIENTE"),"","null"}))); + //BA.debugLineNum = 202;BA.debugLine="s5.Position = 0"; +_s5.setPosition((int) (0)); + //BA.debugLineNum = 203;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 204;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 205;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 206;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 207;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 208;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 209;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 210;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 211;BA.debugLine="label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 212;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 214;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 215;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 216;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface"; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 218;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+BA.NumberToString(((double)(Double.parseDouble(_s.GetString("CANT_CLIE")))+(double)(Double.parseDouble(_s5.GetString("CANT_CLIE")))))+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE")))); + //BA.debugLineNum = 219;BA.debugLine="s.Close"; +_s.Close(); + }else if(_s3.getRowCount()==0) { + //BA.debugLineNum = 221;BA.debugLine="Log(s3.RowCount)"; +__c.LogImpl("368616251",BA.NumberToString(_s3.getRowCount()),0); + //BA.debugLineNum = 222;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Ex"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ?",new String[]{_c.GetString("PC_CLIENTE")}))); + //BA.debugLineNum = 223;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 225;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 226;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 227;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 228;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 229;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 230;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 231;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 232;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 233;BA.debugLine="label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 234;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 236;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 237;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 238;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface"; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 239;BA.debugLine="Log(c.GetString(\"PC_CLIENTE\"))"; +__c.LogImpl("368616269",_c.GetString("PC_CLIENTE"),0); + //BA.debugLineNum = 240;BA.debugLine="Log(c.GetString(\"NOMBRE\"))"; +__c.LogImpl("368616270",_c.GetString("NOMBRE"),0); + //BA.debugLineNum = 241;BA.debugLine="Log(s.GetString(\"CANT_CLIE\"))"; +__c.LogImpl("368616271",_s.GetString("CANT_CLIE"),0); + //BA.debugLineNum = 242;BA.debugLine="Log(c.GetString(\"PC_CLIENTE\"))"; +__c.LogImpl("368616272",_c.GetString("PC_CLIENTE"),0); + //BA.debugLineNum = 243;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+_s.GetString("CANT_CLIE")+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE")))); + //BA.debugLineNum = 244;BA.debugLine="s.Close"; +_s.Close(); + }; + } +}; + }; + //BA.debugLineNum = 249;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 251;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s5 = null; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; + //BA.debugLineNum = 58;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 59;BA.debugLine="nombre_boton = \"NOVENTA\""; +_nombre_boton = "NOVENTA"; + //BA.debugLineNum = 60;BA.debugLine="L_ventanoventa.Text = \"Clientes con venta\""; +_l_ventanoventa.setText(BA.ObjectToCharSequence("Clientes con venta")); + //BA.debugLineNum = 61;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 62;BA.debugLine="ListView1.Height = Root.Height * 0.70"; +_listview1.setHeight((int) (_root.getHeight()*0.70)); + //BA.debugLineNum = 63;BA.debugLine="p_ticketsdia.Height = Root.Height * 0.80"; +_p_ticketsdia.setHeight((int) (_root.getHeight()*0.80)); + //BA.debugLineNum = 64;BA.debugLine="p_ticketsdia.Width = Root.Width * 0.90"; +_p_ticketsdia.setWidth((int) (_root.getWidth()*0.90)); + //BA.debugLineNum = 66;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PC_CLI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PC_CLIENTE,PC_MONTO,PC_NOART,(select CAT_CL_NOMBRE from kmt_info3 where cat_cl_codigo = pc_cliente ) as NOMBRE FROM PEDIDO_CLIENTE ORDER BY PC_FECHA asc"))); + //BA.debugLineNum = 69;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 70;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 71;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step10 = 1; +final int limit10 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit10 ;_i = _i + step10 ) { + //BA.debugLineNum = 72;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 75;BA.debugLine="Private s3 As Cursor=B4XPages.MainPage.skmt.Exe"; +_s3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select * FROM PEDIDO WHERE PE_CLIENTE = ? and PE_RECALCULO <> ? OR PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL",new String[]{_c.GetString("PC_CLIENTE"),"","null"}))); + //BA.debugLineNum = 76;BA.debugLine="LogColor(s3.RowCount,Colors.Yellow)"; +__c.LogImpl("368354066",BA.NumberToString(_s3.getRowCount()),__c.Colors.Yellow); + //BA.debugLineNum = 77;BA.debugLine="If s3.RowCount > 0 Then"; +if (_s3.getRowCount()>0) { + //BA.debugLineNum = 79;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exe"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, IFNULL(SUM(PE_CANT),0) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ? and (PE_RECALCULO = ? or PE_RECALCULO = ? or PE_RECALCULO IS NULL ) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP)",new String[]{_c.GetString("PC_CLIENTE"),"","null"}))); + //BA.debugLineNum = 80;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 81;BA.debugLine="Private s5 As Cursor = B4XPages.MainPage.skmt."; +_s5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(PE_RECALCULOTOT),0) as TOTAL_CLIE, IFNULL(SUM(PE_CANT),0) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ? and (PE_RECALCULO <> ? or PE_RECALCULO <> ? OR PE_RECALCULO IS NOT NULL) AND PE_PROID NOT IN (SELECT CAT_PA_ID FROM PROMOS_COMP)",new String[]{_c.GetString("PC_CLIENTE"),"","null"}))); + //BA.debugLineNum = 82;BA.debugLine="s5.Position = 0"; +_s5.setPosition((int) (0)); + //BA.debugLineNum = 87;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 88;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 89;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 90;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 91;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 92;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 93;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 94;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 95;BA.debugLine="label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 96;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 98;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 99;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface."; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 100;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface."; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 101;BA.debugLine="Log(1)"; +__c.LogImpl("368354091",BA.NumberToString(1),0); + //BA.debugLineNum = 103;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE\""; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+BA.NumberToString(((double)(Double.parseDouble(_s.GetString("CANT_CLIE")))+(double)(Double.parseDouble(_s5.GetString("CANT_CLIE")))))+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE")))); + //BA.debugLineNum = 104;BA.debugLine="s.Close"; +_s.Close(); + }else if(_s3.getRowCount()==0) { + //BA.debugLineNum = 106;BA.debugLine="Private s As Cursor=B4XPages.MainPage.skmt.Exe"; +_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)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select iFNULL(sum(pe_costo_tot),0) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE = ?",new String[]{_c.GetString("PC_CLIENTE")}))); + //BA.debugLineNum = 107;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 109;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 110;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 111;BA.debugLine="label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 112;BA.debugLine="label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 113;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 114;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 115;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 116;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 117;BA.debugLine="label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 118;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 120;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 121;BA.debugLine="label1.Typeface = Typeface.CreateNew(Typeface."; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 122;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface."; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 123;BA.debugLine="Log(2)"; +__c.LogImpl("368354113",BA.NumberToString(2),0); + //BA.debugLineNum = 124;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE\""; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("NOMBRE")+" Cantidad #"+_s.GetString("CANT_CLIE")+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE")))); + //BA.debugLineNum = 125;BA.debugLine="s.Close"; +_s.Close(); + }; + } +}; + }; + //BA.debugLineNum = 129;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 130;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 = 23;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 24;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 26;BA.debugLine="ruta = File.DirInternal"; +_ruta = __c.File.getDirInternal(); + //BA.debugLineNum = 27;BA.debugLine="Root.LoadLayout(\"ticketsdia\")"; +_root.LoadLayout("ticketsdia",ba); + //BA.debugLineNum = 29;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (__c.File.Exists(_ruta,"kmt.db")==__c.False) { + //BA.debugLineNum = 30;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +__c.File.Copy(__c.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 32;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select PC_CLI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PC_CLIENTE,PC_MONTO,PC_NOART FROM PEDIDO_CLIENTE ORDER BY PC_FECHA asc"))); + //BA.debugLineNum = 33;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 34;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 35;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step10 = 1; +final int limit10 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit10 ;_i = _i + step10 ) { + //BA.debugLineNum = 36;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 37;BA.debugLine="Dim Label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 38;BA.debugLine="Label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 39;BA.debugLine="Label1.TextSize = 20"; +_label1.setTextSize((float) (20)); + //BA.debugLineNum = 40;BA.debugLine="Label1.TextColor = Colors.White"; +_label1.setTextColor(__c.Colors.White); + //BA.debugLineNum = 41;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 42;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 43;BA.debugLine="label2.TextSize = 20"; +_label2.setTextSize((float) (20)); + //BA.debugLineNum = 44;BA.debugLine="label2.TextColor = Colors.White"; +_label2.setTextColor(__c.Colors.White); + //BA.debugLineNum = 45;BA.debugLine="Label1.Height = 25dip"; +_label1.setHeight(__c.DipToCurrent((int) (25))); + //BA.debugLineNum = 46;BA.debugLine="label2.Height = 60dip"; +_label2.setHeight(__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 48;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 95dip"; +_listview1.getTwoLinesLayout().setItemHeight(__c.DipToCurrent((int) (95))); + //BA.debugLineNum = 49;BA.debugLine="Label1.Typeface = Typeface.CreateNew(Typeface.D"; +_label1.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 50;BA.debugLine="label2.Typeface = Typeface.CreateNew(Typeface.D"; +_label2.setTypeface(__c.Typeface.CreateNew(__c.Typeface.DEFAULT_BOLD,__c.Typeface.STYLE_BOLD)); + //BA.debugLineNum = 51;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"PC_CLIENTE\")"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("PC_CLIENTE")),BA.ObjectToCharSequence("Cantidad #"+_c.GetString("PC_NOART")+" SubTotal $"+_subs._calculatotalconpromoxrango /*String*/ (ba,_c.GetString("PC_CLIENTE")))); + } +}; + }; + //BA.debugLineNum = 54;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_ticketsdia As Panel"; +_p_ticketsdia = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 6;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Dim S As Cursor"; +_s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Dim b_noventa As Button"; +_b_noventa = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim nombre_boton As String"; +_nombre_boton = ""; + //BA.debugLineNum = 12;BA.debugLine="Dim STIME As String"; +_stime = ""; + //BA.debugLineNum = 14;BA.debugLine="Private L_ventanoventa As Label"; +_l_ventanoventa = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 15;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 18;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 19;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 20;BA.debugLine="End Sub"; +return null; +} +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 145;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 146;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); + //BA.debugLineNum = 147;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); + //BA.debugLineNum = 148;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 149;BA.debugLine="STIME=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 150;BA.debugLine="s=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT("; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS FROM HIST_STAY_STORE WHERE HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)"))); + //BA.debugLineNum = 151;BA.debugLine="s.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 152;BA.debugLine="If s.GetString(\"CUANTOS\") = 1 Then"; +if ((_s.GetString("CUANTOS")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 153;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_IN = ? where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + }else { + //BA.debugLineNum = 155;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_STAY_STORE(HSS_CODIGO, HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); + //BA.debugLineNum = 156;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"UPDATE HIS"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("UPDATE HIST_STAY_STORE set HSS_IN = ? where HSS_IN = 0 AND HSS_CODIGO In (select cuenta from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_stime)})); + }; + //BA.debugLineNum = 158;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 159;BA.debugLine="B4XPages.ShowPage(\"cliente\")"; +_b4xpages._showpage /*String*/ (ba,"cliente"); + //BA.debugLineNum = 160;BA.debugLine="End Sub"; +return ""; +} +public String _p_ticketsdia_click() throws Exception{ + //BA.debugLineNum = 253;BA.debugLine="Private Sub p_ticketsdia_Click"; + //BA.debugLineNum = 255;BA.debugLine="End Sub"; +return ""; +} +public String _regresar_click() throws Exception{ + //BA.debugLineNum = 132;BA.debugLine="Sub Regresar_Click"; + //BA.debugLineNum = 133;BA.debugLine="B4XPages.ShowPage(\"cliente\")"; +_b4xpages._showpage /*String*/ (ba,"cliente"); + //BA.debugLineNum = 134;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/gunav2/keymon/com/mx/c_updateavailable.java b/B4A/Objects/src/gunav2/keymon/com/mx/c_updateavailable.java new file mode 100644 index 0000000..a85e1eb --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/c_updateavailable.java @@ -0,0 +1,249 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.c_updateavailable"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.c_updateavailable parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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("378315530","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 /*gunav2.keymon.com.mx.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 = 42;BA.debugLine="public Sub CanRequestPackageInstalls As Boolean"; + //BA.debugLineNum = 44;BA.debugLine="Dim ctxt As JavaObject"; +_ctxt = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 45;BA.debugLine="ctxt.InitializeContext"; +_ctxt.InitializeContext(ba); + //BA.debugLineNum = 46;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 = 47;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag"; +if (true) return BA.ObjectToBoolean(_packagemanager.RunMethod("canRequestPackageInstalls",(Object[])(__c.Null))); + //BA.debugLineNum = 48;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 = 50;BA.debugLine="Sub ofreceActualizacion"; + //BA.debugLineNum = 51;BA.debugLine="If Msgbox2(appUpdater.newApp.newMsg,\"Actualizació"; +if (__c.Msgbox2(BA.ObjectToCharSequence(_appupdater._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .newMsg /*String*/ ),BA.ObjectToCharSequence("Actualización disponible"),"Si","","No",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) { + //BA.debugLineNum = 53;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")"; +__c.CallSubDelayed(ba,(Object)(_appupdater.getObject()),"download_newApk"); + }; + //BA.debugLineNum = 55;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (); + //BA.debugLineNum = 57;BA.debugLine="StartActivity(Main)"; +__c.StartActivity(ba,(Object)(_main.getObject())); + //BA.debugLineNum = 61;BA.debugLine="End Sub"; +return ""; +} +public String _sinactualizacion() throws Exception{ + //BA.debugLineNum = 63;BA.debugLine="Sub sinActualizacion"; + //BA.debugLineNum = 69;BA.debugLine="Msgbox(appUpdater.newApp.okMsg, \"Aplicación al c"; +__c.Msgbox(BA.ObjectToCharSequence(_appupdater._newapp /*gunav2.keymon.com.mx.appupdater._mnewversion*/ .okMsg /*String*/ ),BA.ObjectToCharSequence("Aplicación al corriente"),ba); + //BA.debugLineNum = 74;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; +_b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (); + //BA.debugLineNum = 78;BA.debugLine="B4XPages.ShowPage(\"login\")"; +_b4xpages._showpage /*String*/ (ba,"login"); + //BA.debugLineNum = 79;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/gunav2/keymon/com/mx/cameraexclass.java b/B4A/Objects/src/gunav2/keymon/com/mx/cameraexclass.java new file mode 100644 index 0000000..9dafac9 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/cameraexclass.java @@ -0,0 +1,621 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.cameraexclass"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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("380740356","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("378839816","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("379495174",BA.ObjectToString(__c.LastException(ba)),0); + }; + //BA.debugLineNum = 145;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.cameraexclass._camerainfoandid _findcamera(boolean _frontcamera) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.cameraexclass._camerasize _getpicturesize() throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.cameraexclass._camerasize _getpreviewsize() throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.cameraexclass._camerasize[] _getsupportedpicturessizes() throws Exception{ +anywheresoftware.b4a.objects.collections.List _list1 = null; +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.cameraexclass._camerasize[_list1.getSize()]; +{ +int d0 = _cs.length; +for (int i0 = 0;i0 < d0;i0++) { +_cs[i0] = new gunav2.keymon.com.mx.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("380412679","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; +gunav2.keymon.com.mx.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("378774288",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/gunav2/keymon/com/mx/cl_appupdate.java b/B4A/Objects/src/gunav2/keymon/com/mx/cl_appupdate.java new file mode 100644 index 0000000..2445cb8 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/cl_appupdate.java @@ -0,0 +1,1788 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.cl_appupdate"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.cl_appupdate parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.cl_appupdate parent; +gunav2.keymon.com.mx.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("929949953","---- 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("929949957",(""+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 gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 174;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)"; +parent.__c.LogImpl("929949968",("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("929949975",("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("929949977",(""+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("929949979",(""+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("929949981",(""+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(gunav2.keymon.com.mx.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("928966933",("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("930015489","---- 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("930015493",__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("930015496",__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("930277636",(""+__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("930277641",(""+__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(gunav2.keymon.com.mx.cl_appupdate parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.cl_appupdate parent; +gunav2.keymon.com.mx.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("930343169","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("930343173",(""+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 gunav2.keymon.com.mx.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("930343181","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 = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 327;BA.debugLine="Log(\"after\")"; +parent.__c.LogImpl("930343183","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("930343185",("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("930343192",(""+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("930343195",(""+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("930343199",(""+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("930343202",(""+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("930343204",(""+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("929818881","---- 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(gunav2.keymon.com.mx.cl_appupdate parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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("929884417","---- 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(gunav2.keymon.com.mx.cl_appupdate parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.cl_appupdate parent; +gunav2.keymon.com.mx.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("930146561",(""+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 gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.httpjob) result[0]; +; + //BA.debugLineNum = 256;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)"; +parent.__c.LogImpl("930146571",("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("930146579",("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("930146581",(""+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("930146583",("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("930146585",(""+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("930146589",(""+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("930146591",(""+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("930146598",(""+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(gunav2.keymon.com.mx.cl_appupdate parent,boolean _pstatus) { +this.parent = parent; +this._pstatus = _pstatus; +} +gunav2.keymon.com.mx.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("930081025","---- 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("930081028",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("930081038",(""+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("930081043",(""+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("930081046",(""+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("930081051",(""+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/gunav2/keymon/com/mx/cpdf.java b/B4A/Objects/src/gunav2/keymon/com/mx/cpdf.java new file mode 100644 index 0000000..68c0ca6 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/cpdf.java @@ -0,0 +1,1969 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class cpdf 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, "gunav2.keymon.com.mx.cpdf"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.cpdf.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 _fxui = null; +public String _ftextencoding = ""; +public String _flibversion = ""; +public String _fpdfversion = ""; +public double _funitfactor = 0; +public gunav2.keymon.com.mx.cpdf._tpdfcontext _fcontext = null; +public anywheresoftware.b4a.objects.collections.Map _fproperties = null; +public anywheresoftware.b4a.objects.collections.List _fobjs = null; +public int _fpage = 0; +public anywheresoftware.b4a.objects.collections.List _fpages = null; +public anywheresoftware.b4a.objects.collections.List _fusedimages = null; +public anywheresoftware.b4a.objects.collections.List _fusedfonts = null; +public anywheresoftware.b4a.objects.collections.Map _ffontsinfos = null; +public double _pagesizea3portraitwidth = 0; +public double _pagesizea3portraitheight = 0; +public double _pagesizea4portraitwidth = 0; +public double _pagesizea4portraitheight = 0; +public double _pagesizea5portraitwidth = 0; +public double _pagesizea5portraitheight = 0; +public double _pagesizeletterportraitwidth = 0; +public double _pagesizeletterportraitheight = 0; +public double _pagesizelegalportraitwidth = 0; +public double _pagesizelegalportraitheight = 0; +public double _pagesizea3landscapewidth = 0; +public double _pagesizea3landscapeheight = 0; +public double _pagesizea4landscapewidth = 0; +public double _pagesizea4landscapeheight = 0; +public double _pagesizea5landscapewidth = 0; +public double _pagesizea5landscapeheight = 0; +public double _pagesizeletterlandscapewidth = 0; +public double _pagesizeletterlandscapeheight = 0; +public double _pagesizelegallandscapewidth = 0; +public double _pagesizelegallandscapeheight = 0; +public String _fontcourier = ""; +public String _fonthelvetica = ""; +public String _fonttimes = ""; +public String _fontsymbol = ""; +public String _fontzapfdingbats = ""; +public int _fontnormal = 0; +public int _fontbold = 0; +public int _fontitalic = 0; +public int _fontunderline = 0; +public int _fontstrikethrough = 0; +public String _propertyauthor = ""; +public String _propertycreator = ""; +public String _propertyproducer = ""; +public String _propertytitle = ""; +public String _propertysubject = ""; +public String _propertykeywords = ""; +public String _rectangleborderonly = ""; +public String _rectanglefillonly = ""; +public String _rectangleborderandfill = ""; +public String _alignleft = ""; +public String _aligncenter = ""; +public String _alignright = ""; +public String _alignjusify = ""; +public int _compressalways = 0; +public int _compressifsmaller = 0; +public int _compressnever = 0; +public double[] _colorblack = null; +public double[] _colorwhite = null; +public double[] _colorgray = null; +public double[] _colorred = null; +public double[] _colorgreen = null; +public double[] _colorblue = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static class _tpdfcontext{ +public boolean IsInitialized; +public double fX; +public double fY; +public String fFontFamily; +public double fFontSize; +public int fFontStyle; +public double[] fFontColor; +public double fDrawWidth; +public double[] fDrawColor; +public double[] fFillColor; +public void Initialize() { +IsInitialized = true; +fX = 0; +fY = 0; +fFontFamily = ""; +fFontSize = 0; +fFontStyle = 0; +fFontColor = new double[(int) (3)]; +; +fDrawWidth = 0; +fDrawColor = new double[(int) (3)]; +; +fFillColor = new double[(int) (3)]; +; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public static class _tpdfpage{ +public boolean IsInitialized; +public double fWidth; +public double fHeight; +public String fBuffer; +public void Initialize() { +IsInitialized = true; +fWidth = 0; +fHeight = 0; +fBuffer = ""; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public static class _tpdfimageinfo{ +public boolean IsInitialized; +public int fError; +public int fWidth; +public int fHeight; +public int fBPP; +public int fColorSpace; +public int fCompression; +public int fFilter; +public int fInterlacing; +public byte[] fData; +public byte[] fPalette; +public void Initialize() { +IsInitialized = true; +fError = 0; +fWidth = 0; +fHeight = 0; +fBPP = 0; +fColorSpace = 0; +fCompression = 0; +fFilter = 0; +fInterlacing = 0; +fData = new byte[0]; +; +fPalette = new byte[0]; +; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public static class _tpdffontinfo{ +public boolean IsInitialized; +public int[] fCharsWidths; +public int fYUnderline; +public int fHUnderline; +public int fYStrikeThrough; +public int fHStrikeThrough; +public int fYBottom; +public int fYTop; +public void Initialize() { +IsInitialized = true; +fCharsWidths = new int[(int) (256)]; +; +fYUnderline = 0; +fHUnderline = 0; +fYStrikeThrough = 0; +fHStrikeThrough = 0; +fYBottom = 0; +fYTop = 0; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public static class _tpdftextsize{ +public boolean IsInitialized; +public double fWidth; +public double fTop; +public double fBottom; +public double fHeight; +public void Initialize() { +IsInitialized = true; +fWidth = 0; +fTop = 0; +fBottom = 0; +fHeight = 0; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public static class _tpdfmultilinetextsize{ +public boolean IsInitialized; +public double fWidth; +public double fHeight; +public anywheresoftware.b4a.objects.collections.List fParagraphs; +public void Initialize() { +IsInitialized = true; +fWidth = 0; +fHeight = 0; +fParagraphs = new anywheresoftware.b4a.objects.collections.List(); +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public String _calcfontkey(String _afamily,int _astyle) throws Exception{ + //BA.debugLineNum = 421;BA.debugLine="private Sub calcFontKey(afamily As String,astyle A"; + //BA.debugLineNum = 422;BA.debugLine="If afamily=\"zapfdingbats\" Or afamily=\"Symbol\" The"; +if ((_afamily).equals("zapfdingbats") || (_afamily).equals("Symbol")) { + //BA.debugLineNum = 423;BA.debugLine="astyle=Bit.And(astyle,Bit.Not(Bit.Or(fontBold,fo"; +_astyle = __c.Bit.And(_astyle,__c.Bit.Not(__c.Bit.Or(_fontbold,_fontitalic))); + }; + //BA.debugLineNum = 425;BA.debugLine="If Bit.And(astyle,fontBold)<>0 And Bit.And(astyle"; +if (__c.Bit.And(_astyle,_fontbold)!=0 && __c.Bit.And(_astyle,_fontitalic)!=0) { + //BA.debugLineNum = 426;BA.debugLine="Return afamily & \"-BoldOblique\""; +if (true) return _afamily+"-BoldOblique"; + }; + //BA.debugLineNum = 428;BA.debugLine="If Bit.And(astyle,fontBold)<>0 Then"; +if (__c.Bit.And(_astyle,_fontbold)!=0) { + //BA.debugLineNum = 429;BA.debugLine="Return afamily & \"-Bold\""; +if (true) return _afamily+"-Bold"; + }; + //BA.debugLineNum = 431;BA.debugLine="If Bit.And(astyle,fontItalic)<>0 Then"; +if (__c.Bit.And(_astyle,_fontitalic)!=0) { + //BA.debugLineNum = 432;BA.debugLine="Return afamily & \"-Oblique\""; +if (true) return _afamily+"-Oblique"; + }; + //BA.debugLineNum = 434;BA.debugLine="If afamily=\"Times\" Then"; +if ((_afamily).equals("Times")) { + //BA.debugLineNum = 435;BA.debugLine="Return \"Times-Roman\""; +if (true) return "Times-Roman"; + }; + //BA.debugLineNum = 437;BA.debugLine="Return afamily"; +if (true) return _afamily; + //BA.debugLineNum = 438;BA.debugLine="End Sub"; +return ""; +} +public byte[] _catalogwrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; + //BA.debugLineNum = 209;BA.debugLine="private Sub catalogWrite As Byte()"; + //BA.debugLineNum = 210;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 211;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 212;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj <> endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 213;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 214;BA.debugLine="Return bb.toarray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 215;BA.debugLine="End Sub"; +return null; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 12;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 13;BA.debugLine="Type TPDFContext(fX As Double,fY As Double, _"; +; + //BA.debugLineNum = 16;BA.debugLine="Type TPDFPage(fWidth As Double,fHeight As Double,"; +; + //BA.debugLineNum = 17;BA.debugLine="Type TPDFImageInfo(fError As Int,fWidth As Int,fH"; +; + //BA.debugLineNum = 18;BA.debugLine="Type TPDFFontInfo(fCharsWidths(256) As Int,fYUnde"; +; + //BA.debugLineNum = 19;BA.debugLine="Type TPDFTextSize(fWidth As Double,fTop As Double"; +; + //BA.debugLineNum = 20;BA.debugLine="Type TPDFMultilineTextSize(fWidth As Double,fHeig"; +; + //BA.debugLineNum = 23;BA.debugLine="Private fXUI As XUI"; +_fxui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 26;BA.debugLine="Private const fTextEncoding As String=\"cp1252\""; +_ftextencoding = "cp1252"; + //BA.debugLineNum = 28;BA.debugLine="Private fLibVersion As String"; +_flibversion = ""; + //BA.debugLineNum = 29;BA.debugLine="Private fPDFVersion As String"; +_fpdfversion = ""; + //BA.debugLineNum = 31;BA.debugLine="Private fUnitFactor As Double"; +_funitfactor = 0; + //BA.debugLineNum = 33;BA.debugLine="Private fContext As TPDFContext"; +_fcontext = new gunav2.keymon.com.mx.cpdf._tpdfcontext(); + //BA.debugLineNum = 35;BA.debugLine="Private fProperties As Map"; +_fproperties = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 37;BA.debugLine="Private fObjs As List"; +_fobjs = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 39;BA.debugLine="Private fPage As Int"; +_fpage = 0; + //BA.debugLineNum = 41;BA.debugLine="Private fPages As List"; +_fpages = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 43;BA.debugLine="Private fUsedImages As List"; +_fusedimages = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 45;BA.debugLine="Private fUsedFonts As List"; +_fusedfonts = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 47;BA.debugLine="Private fFontsInfos As Map"; +_ffontsinfos = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 50;BA.debugLine="Public const pageSizeA3PortraitWidth As Double=-8"; +_pagesizea3portraitwidth = -841.89; + //BA.debugLineNum = 51;BA.debugLine="Public const pageSizeA3PortraitHeight As Double=-"; +_pagesizea3portraitheight = -1190.55; + //BA.debugLineNum = 54;BA.debugLine="Public const pageSizeA4PortraitWidth As Double=-3"; +_pagesizea4portraitwidth = -370; + //BA.debugLineNum = 55;BA.debugLine="Public const pageSizeA4PortraitHeight As Double=-"; +_pagesizea4portraitheight = -72; + //BA.debugLineNum = 56;BA.debugLine="Public const pageSizeA5PortraitWidth As Double=-4"; +_pagesizea5portraitwidth = -420.94; + //BA.debugLineNum = 57;BA.debugLine="Public const pageSizeA5PortraitHeight As Double=-"; +_pagesizea5portraitheight = -595.28; + //BA.debugLineNum = 58;BA.debugLine="Public const pageSizeLetterPortraitWidth As Doubl"; +_pagesizeletterportraitwidth = -612; + //BA.debugLineNum = 59;BA.debugLine="Public const pageSizeLetterPortraitHeight As Doub"; +_pagesizeletterportraitheight = -792; + //BA.debugLineNum = 60;BA.debugLine="Public const pageSizeLegalPortraitWidth As Double"; +_pagesizelegalportraitwidth = -612; + //BA.debugLineNum = 61;BA.debugLine="Public const pageSizeLegalPortraitHeight As Doubl"; +_pagesizelegalportraitheight = -1008; + //BA.debugLineNum = 62;BA.debugLine="Public const pageSizeA3LandscapeWidth As Double=-"; +_pagesizea3landscapewidth = -1190.55; + //BA.debugLineNum = 63;BA.debugLine="Public const pageSizeA3LandscapeHeight As Double="; +_pagesizea3landscapeheight = -841.89; + //BA.debugLineNum = 64;BA.debugLine="Public const pageSizeA4LandscapeWidth As Double=-"; +_pagesizea4landscapewidth = -841.89; + //BA.debugLineNum = 65;BA.debugLine="Public const pageSizeA4LandscapeHeight As Double="; +_pagesizea4landscapeheight = -595.28; + //BA.debugLineNum = 66;BA.debugLine="Public const pageSizeA5LandscapeWidth As Double=-"; +_pagesizea5landscapewidth = -595.28; + //BA.debugLineNum = 67;BA.debugLine="Public const pageSizeA5LandscapeHeight As Double="; +_pagesizea5landscapeheight = -420.94; + //BA.debugLineNum = 68;BA.debugLine="Public const pageSizeLetterLandscapeWidth As Doub"; +_pagesizeletterlandscapewidth = -792; + //BA.debugLineNum = 69;BA.debugLine="Public const pageSizeLetterLandscapeHeight As Dou"; +_pagesizeletterlandscapeheight = -612; + //BA.debugLineNum = 70;BA.debugLine="Public const pageSizeLegalLandscapeWidth As Doubl"; +_pagesizelegallandscapewidth = -1008; + //BA.debugLineNum = 71;BA.debugLine="Public const pageSizeLegalLandscapeHeight As Doub"; +_pagesizelegallandscapeheight = -612; + //BA.debugLineNum = 74;BA.debugLine="Public const fontCourier As String=\"Courier\""; +_fontcourier = "Courier"; + //BA.debugLineNum = 75;BA.debugLine="Public const fontHelvetica As String=\"Helvetica\""; +_fonthelvetica = "Helvetica"; + //BA.debugLineNum = 76;BA.debugLine="Public const fontTimes As String=\"Times\""; +_fonttimes = "Times"; + //BA.debugLineNum = 77;BA.debugLine="Public const fontSymbol As String=\"Symbol\""; +_fontsymbol = "Symbol"; + //BA.debugLineNum = 78;BA.debugLine="Public const fontZapfdingbats As String=\"zapfding"; +_fontzapfdingbats = "zapfdingbats"; + //BA.debugLineNum = 81;BA.debugLine="Public const fontNormal As Int=0"; +_fontnormal = (int) (0); + //BA.debugLineNum = 82;BA.debugLine="Public const fontBold As Int=1"; +_fontbold = (int) (1); + //BA.debugLineNum = 83;BA.debugLine="Public const fontItalic As Int=2"; +_fontitalic = (int) (2); + //BA.debugLineNum = 84;BA.debugLine="Public const fontUnderline As Int=4"; +_fontunderline = (int) (4); + //BA.debugLineNum = 85;BA.debugLine="Public const fontStrikeThrough As Int=8"; +_fontstrikethrough = (int) (8); + //BA.debugLineNum = 88;BA.debugLine="Public const PropertyAuthor As String=\"Author\""; +_propertyauthor = "Author"; + //BA.debugLineNum = 89;BA.debugLine="Public const PropertyCreator As String=\"Creator\""; +_propertycreator = "Creator"; + //BA.debugLineNum = 90;BA.debugLine="Public const PropertyProducer As String=\"Producer"; +_propertyproducer = "Producer"; + //BA.debugLineNum = 91;BA.debugLine="Public const PropertyTitle As String=\"Title\""; +_propertytitle = "Title"; + //BA.debugLineNum = 92;BA.debugLine="Public const PropertySubject As String=\"Subject\""; +_propertysubject = "Subject"; + //BA.debugLineNum = 93;BA.debugLine="Public const PropertyKeywords As String=\"Keywords"; +_propertykeywords = "Keywords"; + //BA.debugLineNum = 96;BA.debugLine="Public const RectangleBorderOnly As String=\"S\""; +_rectangleborderonly = "S"; + //BA.debugLineNum = 97;BA.debugLine="Public const RectangleFillOnly As String=\"f\""; +_rectanglefillonly = "f"; + //BA.debugLineNum = 98;BA.debugLine="Public const RectangleBorderAndFill As String=\"B\""; +_rectangleborderandfill = "B"; + //BA.debugLineNum = 101;BA.debugLine="Public const AlignLeft As String=\"L\""; +_alignleft = "L"; + //BA.debugLineNum = 102;BA.debugLine="Public const AlignCenter As String=\"C\""; +_aligncenter = "C"; + //BA.debugLineNum = 103;BA.debugLine="Public const AlignRight As String=\"R\""; +_alignright = "R"; + //BA.debugLineNum = 104;BA.debugLine="Public const AlignJusify As String=\"J\""; +_alignjusify = "J"; + //BA.debugLineNum = 107;BA.debugLine="Public const CompressAlways As Int=0"; +_compressalways = (int) (0); + //BA.debugLineNum = 108;BA.debugLine="Public const CompressIfSmaller As Int=1"; +_compressifsmaller = (int) (1); + //BA.debugLineNum = 109;BA.debugLine="Public const CompressNever As Int=2"; +_compressnever = (int) (2); + //BA.debugLineNum = 111;BA.debugLine="Public const colorBlack(3) As Double=Array As Dou"; +_colorblack = new double[]{0,0,0}; + //BA.debugLineNum = 112;BA.debugLine="Public const colorWhite(3) As Double=Array As Dou"; +_colorwhite = new double[]{1,1,1}; + //BA.debugLineNum = 113;BA.debugLine="Public const colorGray(3) As Double=Array As Doub"; +_colorgray = new double[]{0.5,0.5,0.5}; + //BA.debugLineNum = 114;BA.debugLine="Public const colorRed(3) As Double=Array As Doubl"; +_colorred = new double[]{1,0,0}; + //BA.debugLineNum = 115;BA.debugLine="Public const colorGreen(3) As Double=Array As Dou"; +_colorgreen = new double[]{0,1,0}; + //BA.debugLineNum = 116;BA.debugLine="Public const colorBlue(3) As Double=Array As Doub"; +_colorblue = new double[]{0,0,1}; + //BA.debugLineNum = 118;BA.debugLine="End Sub"; +return ""; +} +public String _contentadd(int _apage,String _acontent) throws Exception{ +anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; + //BA.debugLineNum = 441;BA.debugLine="private Sub contentAdd(apage As Int,acontent As St"; + //BA.debugLineNum = 442;BA.debugLine="Dim sb As StringBuilder"; +_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 443;BA.debugLine="sb.Initialize"; +_sb.Initialize(); + //BA.debugLineNum = 444;BA.debugLine="sb.Append(fPages.Get(apage).As(TPDFPage).fbuffer)"; +_sb.Append(((gunav2.keymon.com.mx.cpdf._tpdfpage)(_fpages.Get(_apage))).fBuffer /*String*/ ); + //BA.debugLineNum = 445;BA.debugLine="sb.Append(acontent)"; +_sb.Append(_acontent); + //BA.debugLineNum = 446;BA.debugLine="fPages.Get(apage).As(TPDFPage).fbuffer=sb.ToStrin"; +((gunav2.keymon.com.mx.cpdf._tpdfpage)(_fpages.Get(_apage))).fBuffer /*String*/ = _sb.ToString(); + //BA.debugLineNum = 447;BA.debugLine="End Sub"; +return ""; +} +public byte[] _contentswrite(int _acompress) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +int _i = 0; + //BA.debugLineNum = 248;BA.debugLine="private Sub contentsWrite(acompress As Int) As Byt"; + //BA.debugLineNum = 249;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 250;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 251;BA.debugLine="For i=0 To fPages.Size-1"; +{ +final int step3 = 1; +final int limit3 = (int) (_fpages.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit3 ;_i = _i + step3 ) { + //BA.debugLineNum = 252;BA.debugLine="bb.append(contentWrite(acompress,i))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_contentwrite(_acompress,_i)); + } +}; + //BA.debugLineNum = 254;BA.debugLine="Return bb.toarray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 255;BA.debugLine="End Sub"; +return null; +} +public byte[] _contentwrite(int _acompress,int _apage) throws Exception{ +String _compress = ""; +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +byte[] _c = null; +String _filter = ""; +anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null; +byte[] _b = null; + //BA.debugLineNum = 257;BA.debugLine="private Sub contentWrite(acompress As Int,apage As"; + //BA.debugLineNum = 258;BA.debugLine="Dim const compress As String=\"/Filter/FlateDecode"; +_compress = "/Filter/FlateDecode"; + //BA.debugLineNum = 259;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 260;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 262;BA.debugLine="Dim c() As Byte=fPages.Get(apage).As(TPDFPage).fB"; +_c = ((gunav2.keymon.com.mx.cpdf._tpdfpage)(_fpages.Get(_apage))).fBuffer /*String*/ .getBytes(_ftextencoding); + //BA.debugLineNum = 263;BA.debugLine="Dim filter As String=\"\""; +_filter = ""; + //BA.debugLineNum = 265;BA.debugLine="If acompress<>CompressNever Then"; +if (_acompress!=_compressnever) { + //BA.debugLineNum = 266;BA.debugLine="Dim cs As CompressedStreams"; +_cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); + //BA.debugLineNum = 267;BA.debugLine="Dim b() As Byte=cs.CompressBytes(c,\"zlib\")"; +_b = _cs.CompressBytes(_c,"zlib"); + //BA.debugLineNum = 268;BA.debugLine="If acompress=CompressAlways Or b.Length+compress"; +if (_acompress==_compressalways || _b.length+_compress.length()<_c.length) { + //BA.debugLineNum = 269;BA.debugLine="c=b"; +_c = _b; + //BA.debugLineNum = 270;BA.debugLine="filter=compress"; +_filter = _compress; + }; + }; + //BA.debugLineNum = 274;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj <<${filter}/Len"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1))+" 0 obj <<"+__c.SmartStringFormatter("",(Object)(_filter))+"/Length "+__c.SmartStringFormatter("",(Object)(_c.length))+">>"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"stream"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 275;BA.debugLine="bb.Append(c)"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_c); + //BA.debugLineNum = 276;BA.debugLine="bb.Append($\"${Chr(10)}endstream${Chr(10)}endobj${"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"endstream"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 277;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 278;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 279;BA.debugLine="End Sub"; +return null; +} +public String _convertimage(String _adir,String _afile) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _img = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; + //BA.debugLineNum = 796;BA.debugLine="private Sub convertImage(adir As String,afile As S"; + //BA.debugLineNum = 798;BA.debugLine="Dim img As B4XBitmap"; +_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); + //BA.debugLineNum = 799;BA.debugLine="img=fXUI.LoadBitmap(adir,afile)"; +_img = _fxui.LoadBitmap(_adir,_afile); + //BA.debugLineNum = 800;BA.debugLine="Dim out As OutputStream=File.OpenOutput(adir,afil"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out = __c.File.OpenOutput(_adir,_afile+".jpg",__c.False); + //BA.debugLineNum = 801;BA.debugLine="img.WriteToStream(out,100,\"JPEG\")"; +_img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG")); + //BA.debugLineNum = 802;BA.debugLine="out.close"; +_out.Close(); + //BA.debugLineNum = 805;BA.debugLine="Dim img As B4XBitmap"; +_img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); + //BA.debugLineNum = 806;BA.debugLine="img=fXUI.LoadBitmap(adir,afile & \".jpg\")"; +_img = _fxui.LoadBitmap(_adir,_afile+".jpg"); + //BA.debugLineNum = 807;BA.debugLine="Dim out As OutputStream=File.OpenOutput(adir,afil"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out = __c.File.OpenOutput(_adir,_afile+".png",__c.False); + //BA.debugLineNum = 808;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 = 809;BA.debugLine="out.close"; +_out.Close(); + //BA.debugLineNum = 811;BA.debugLine="File.Delete(adir,afile & \".jpg\")"; +__c.File.Delete(_adir,_afile+".jpg"); + //BA.debugLineNum = 812;BA.debugLine="Return afile & \".png\""; +if (true) return _afile+".png"; + //BA.debugLineNum = 813;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.cpdf._tpdffontinfo _createfontinfo(int[] _acharswidths,int _ayunderline,int _ahunderline,int _aystrikethrough,int _ahstrikethrough,int _aytop,int _aybottom) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdffontinfo _fi = null; + //BA.debugLineNum = 136;BA.debugLine="private Sub createFontInfo(acharsWidths() As Int,a"; + //BA.debugLineNum = 137;BA.debugLine="Dim fi As TPDFFontInfo"; +_fi = new gunav2.keymon.com.mx.cpdf._tpdffontinfo(); + //BA.debugLineNum = 138;BA.debugLine="fi.Initialize"; +_fi.Initialize(); + //BA.debugLineNum = 140;BA.debugLine="fi.fCharsWidths=acharsWidths"; +_fi.fCharsWidths /*int[]*/ = _acharswidths; + //BA.debugLineNum = 142;BA.debugLine="fi.fYUnderline=ayunderline"; +_fi.fYUnderline /*int*/ = _ayunderline; + //BA.debugLineNum = 144;BA.debugLine="fi.fHUnderline=ahunderline"; +_fi.fHUnderline /*int*/ = _ahunderline; + //BA.debugLineNum = 146;BA.debugLine="fi.fYStrikeThrough=aystrikethrough"; +_fi.fYStrikeThrough /*int*/ = _aystrikethrough; + //BA.debugLineNum = 148;BA.debugLine="fi.fHStrikeThrough=ahstrikethrough"; +_fi.fHStrikeThrough /*int*/ = _ahstrikethrough; + //BA.debugLineNum = 150;BA.debugLine="fi.fYTop=aytop"; +_fi.fYTop /*int*/ = _aytop; + //BA.debugLineNum = 152;BA.debugLine="fi.fybottom=aybottom"; +_fi.fYBottom /*int*/ = _aybottom; + //BA.debugLineNum = 153;BA.debugLine="Return fi"; +if (true) return _fi; + //BA.debugLineNum = 154;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf._tpdfpage _createpage(double _awidth,double _aheight,String _abuffer) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdfpage _p = null; + //BA.debugLineNum = 455;BA.debugLine="private Sub createPage(awidth As Double,aheight As"; + //BA.debugLineNum = 456;BA.debugLine="Dim p As TPDFPage"; +_p = new gunav2.keymon.com.mx.cpdf._tpdfpage(); + //BA.debugLineNum = 457;BA.debugLine="p.Initialize"; +_p.Initialize(); + //BA.debugLineNum = 458;BA.debugLine="p.fWidth=awidth"; +_p.fWidth /*double*/ = _awidth; + //BA.debugLineNum = 459;BA.debugLine="p.fHeight=aheight"; +_p.fHeight /*double*/ = _aheight; + //BA.debugLineNum = 460;BA.debugLine="p.fBuffer=abuffer"; +_p.fBuffer /*String*/ = _abuffer; + //BA.debugLineNum = 461;BA.debugLine="Return p"; +if (true) return _p; + //BA.debugLineNum = 462;BA.debugLine="End Sub"; +return null; +} +public String _escapetext(String _atext) throws Exception{ + //BA.debugLineNum = 450;BA.debugLine="private Sub escapeText(atext As String) As String"; + //BA.debugLineNum = 451;BA.debugLine="Return atext.Replace(\"\\\",\"\\\\\").Replace(\"(\",\"\\(\")."; +if (true) return _atext.replace("\\","\\\\").replace("(","\\(").replace(")","\\)"); + //BA.debugLineNum = 452;BA.debugLine="End Sub"; +return ""; +} +public int _findimagekey(String _akey) throws Exception{ +int _i = 0; + //BA.debugLineNum = 617;BA.debugLine="private Sub findImageKey(akey As String) As Int"; + //BA.debugLineNum = 618;BA.debugLine="For i=0 To fUsedImages.Size-1"; +{ +final int step1 = 1; +final int limit1 = (int) (_fusedimages.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit1 ;_i = _i + step1 ) { + //BA.debugLineNum = 619;BA.debugLine="If fUsedImages.Get(i).As(Map).Get(\"path\")=akey T"; +if ((((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_fusedimages.Get(_i)))).Get((Object)("path"))).equals((Object)(_akey))) { + //BA.debugLineNum = 620;BA.debugLine="Return i"; +if (true) return _i; + }; + } +}; + //BA.debugLineNum = 623;BA.debugLine="Return -1"; +if (true) return (int) (-1); + //BA.debugLineNum = 624;BA.debugLine="End Sub"; +return 0; +} +public byte[] _fontswrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +int _i = 0; + //BA.debugLineNum = 305;BA.debugLine="private Sub fontsWrite As Byte()"; + //BA.debugLineNum = 306;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 307;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 308;BA.debugLine="For i=0 To fUsedFonts.Size-1"; +{ +final int step3 = 1; +final int limit3 = (int) (_fusedfonts.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit3 ;_i = _i + step3 ) { + //BA.debugLineNum = 309;BA.debugLine="bb.append(fontWrite(i))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_fontwrite(_i)); + } +}; + //BA.debugLineNum = 311;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 312;BA.debugLine="End Sub"; +return null; +} +public byte[] _fontwrite(int _afont) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +String _c = ""; + //BA.debugLineNum = 314;BA.debugLine="private Sub fontWrite(afont As Int) As Byte()"; + //BA.debugLineNum = 315;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 316;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 317;BA.debugLine="Dim c As String=fUsedFonts.Get(afont)"; +_c = BA.ObjectToString(_fusedfonts.Get(_afont)); + //BA.debugLineNum = 318;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj << /Type /Font"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1))+" 0 obj << /Type /Font /Subtype /Type1 /BaseFont /"+__c.SmartStringFormatter("",(Object)(_c))+" /Encoding /WinAnsiEncoding>> endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 319;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 320;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 321;BA.debugLine="End Sub"; +return null; +} +public byte[] _footerwrite() throws Exception{ + //BA.debugLineNum = 416;BA.debugLine="private Sub footerWrite As Byte()"; + //BA.debugLineNum = 417;BA.debugLine="Return \"%%EOF\".GetBytes(fTextEncoding)"; +if (true) return "%%EOF".getBytes(_ftextencoding); + //BA.debugLineNum = 418;BA.debugLine="End Sub"; +return null; +} +public String _gcreationdate() throws Exception{ +String _z = ""; + //BA.debugLineNum = 192;BA.debugLine="private Sub gCreationDate As String"; + //BA.debugLineNum = 193;BA.debugLine="DateTime.DateFormat=\"yyyyMMdd\""; +__c.DateTime.setDateFormat("yyyyMMdd"); + //BA.debugLineNum = 194;BA.debugLine="DateTime.TimeFormat=\"hhmmss\""; +__c.DateTime.setTimeFormat("hhmmss"); + //BA.debugLineNum = 195;BA.debugLine="Dim z As String=NumberFormat2(DateTime.TimeZoneOf"; +_z = __c.NumberFormat2(__c.DateTime.getTimeZoneOffset(),(int) (2),(int) (2),(int) (2),__c.False); + //BA.debugLineNum = 196;BA.debugLine="z=IIf(z.SubString2(0,1)<>\"-\",\"+\",\"\") & z"; +_z = BA.ObjectToString((((_z.substring((int) (0),(int) (1))).equals("-") == false) ? ((Object)("+")) : ((Object)(""))))+_z; + //BA.debugLineNum = 197;BA.debugLine="z=z.SubString2(0,3) & \"'\" & z.SubString(4) & \"'\""; +_z = _z.substring((int) (0),(int) (3))+"'"+_z.substring((int) (4))+"'"; + //BA.debugLineNum = 198;BA.debugLine="Return \"D:\" & DateTime.Date(DateTime.Now) & DateT"; +if (true) return "D:"+__c.DateTime.Date(__c.DateTime.getNow())+__c.DateTime.Time(__c.DateTime.getNow())+_z; + //BA.debugLineNum = 199;BA.debugLine="End Sub"; +return ""; +} +public String _glibversion() throws Exception{ + //BA.debugLineNum = 996;BA.debugLine="public Sub glibversion As String"; + //BA.debugLineNum = 997;BA.debugLine="Return fLibVersion"; +if (true) return _flibversion; + //BA.debugLineNum = 998;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.cpdf._tpdfmultilinetextsize _gmultilinetextsize(double _awidth,String _atext) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdfmultilinetextsize _mts = null; +gunav2.keymon.com.mx.cpdf._tpdftextsize _ts = null; +char _c = '\0'; +String _l = ""; +String[] _paragraphs = null; +String _p = ""; +int _j = 0; +anywheresoftware.b4a.objects.collections.List _lines = null; +int _i = 0; + //BA.debugLineNum = 943;BA.debugLine="public Sub gMultilineTextSize(awidth As Double,ate"; + //BA.debugLineNum = 944;BA.debugLine="Dim mts As TPDFMultilineTextSize"; +_mts = new gunav2.keymon.com.mx.cpdf._tpdfmultilinetextsize(); + //BA.debugLineNum = 945;BA.debugLine="Dim ts As TPDFTextSize"; +_ts = new gunav2.keymon.com.mx.cpdf._tpdftextsize(); + //BA.debugLineNum = 946;BA.debugLine="Dim c As Char"; +_c = '\0'; + //BA.debugLineNum = 947;BA.debugLine="Dim l As String=\"\""; +_l = ""; + //BA.debugLineNum = 948;BA.debugLine="mts.Initialize"; +_mts.Initialize(); + //BA.debugLineNum = 949;BA.debugLine="mts.fParagraphs.Initialize"; +_mts.fParagraphs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); + //BA.debugLineNum = 950;BA.debugLine="mts.fWidth=awidth"; +_mts.fWidth /*double*/ = _awidth; + //BA.debugLineNum = 952;BA.debugLine="Dim paragraphs() As String=Regex.Split(CRLF,atext"; +_paragraphs = __c.Regex.Split(__c.CRLF,_atext); + //BA.debugLineNum = 953;BA.debugLine="Dim p As String"; +_p = ""; + //BA.debugLineNum = 954;BA.debugLine="For j=0 To paragraphs.Length-1"; +{ +final int step10 = 1; +final int limit10 = (int) (_paragraphs.length-1); +_j = (int) (0) ; +for (;_j <= limit10 ;_j = _j + step10 ) { + //BA.debugLineNum = 955;BA.debugLine="Dim lines As List"; +_lines = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 956;BA.debugLine="lines.Initialize"; +_lines.Initialize(); + //BA.debugLineNum = 957;BA.debugLine="mts.fParagraphs.Add(lines)"; +_mts.fParagraphs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_lines.getObject())); + //BA.debugLineNum = 958;BA.debugLine="p=paragraphs(j)"; +_p = _paragraphs[_j]; + //BA.debugLineNum = 959;BA.debugLine="l=\"\""; +_l = ""; + //BA.debugLineNum = 960;BA.debugLine="For i=0 To p.Length-1"; +{ +final int step16 = 1; +final int limit16 = (int) (_p.length()-1); +_i = (int) (0) ; +for (;_i <= limit16 ;_i = _i + step16 ) { + //BA.debugLineNum = 961;BA.debugLine="c=p.CharAt(i)"; +_c = _p.charAt(_i); + //BA.debugLineNum = 962;BA.debugLine="If Asc(c)>31 Then"; +if (__c.Asc(_c)>31) { + //BA.debugLineNum = 963;BA.debugLine="l=l & c"; +_l = _l+BA.ObjectToString(_c); + //BA.debugLineNum = 964;BA.debugLine="ts=gTextSize(l)"; +_ts = _gtextsize(_l); + //BA.debugLineNum = 965;BA.debugLine="If ts.fWidth>awidth Then"; +if (_ts.fWidth /*double*/ >_awidth) { + //BA.debugLineNum = 966;BA.debugLine="l=MultilineTextSizeAddLine(mts,ts,l,awidth)"; +_l = _multilinetextsizeaddline(_mts,_ts,_l,_awidth); + }; + }; + } +}; + //BA.debugLineNum = 970;BA.debugLine="ts=gTextSize(l)"; +_ts = _gtextsize(_l); + //BA.debugLineNum = 971;BA.debugLine="l=MultilineTextSizeAddLine(mts,ts,l,awidth)"; +_l = _multilinetextsizeaddline(_mts,_ts,_l,_awidth); + } +}; + //BA.debugLineNum = 974;BA.debugLine="Return mts"; +if (true) return _mts; + //BA.debugLineNum = 975;BA.debugLine="End Sub"; +return null; +} +public int _gpage() throws Exception{ + //BA.debugLineNum = 659;BA.debugLine="public Sub gPage As Int"; + //BA.debugLineNum = 660;BA.debugLine="Return fPage+1"; +if (true) return (int) (_fpage+1); + //BA.debugLineNum = 661;BA.debugLine="End Sub"; +return 0; +} +public double _gpageheight(int _apage) throws Exception{ + //BA.debugLineNum = 640;BA.debugLine="public Sub gPageHeight(apage As Int) As Double"; + //BA.debugLineNum = 641;BA.debugLine="Return fPages.Get(apage-1).As(TPDFPage).fHeight/f"; +if (true) return ((gunav2.keymon.com.mx.cpdf._tpdfpage)(_fpages.Get((int) (_apage-1)))).fHeight /*double*/ /(double)_funitfactor; + //BA.debugLineNum = 642;BA.debugLine="End Sub"; +return 0; +} +public int _gpagescount() throws Exception{ + //BA.debugLineNum = 628;BA.debugLine="public Sub gPagesCount As Int"; + //BA.debugLineNum = 629;BA.debugLine="Return fPages.size"; +if (true) return _fpages.getSize(); + //BA.debugLineNum = 630;BA.debugLine="End Sub"; +return 0; +} +public double _gpagewidth(int _apage) throws Exception{ + //BA.debugLineNum = 634;BA.debugLine="public Sub gPageWidth(apage As Int) As Double"; + //BA.debugLineNum = 635;BA.debugLine="Return fPages.Get(apage-1).As(TPDFPage).fWidth/fU"; +if (true) return ((gunav2.keymon.com.mx.cpdf._tpdfpage)(_fpages.Get((int) (_apage-1)))).fWidth /*double*/ /(double)_funitfactor; + //BA.debugLineNum = 636;BA.debugLine="End Sub"; +return 0; +} +public gunav2.keymon.com.mx.cpdf._tpdftextsize _gtextsize(String _atext) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +gunav2.keymon.com.mx.cpdf._tpdftextsize _ts = null; +gunav2.keymon.com.mx.cpdf._tpdffontinfo _fi = null; +double _w = 0; +int _i = 0; + //BA.debugLineNum = 904;BA.debugLine="public Sub gTextSize(atext As String) As TPDFTextS"; + //BA.debugLineNum = 905;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 906;BA.debugLine="Dim ts As TPDFTextSize"; +_ts = new gunav2.keymon.com.mx.cpdf._tpdftextsize(); + //BA.debugLineNum = 907;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 908;BA.debugLine="bb.Append(atext.GetBytes(fTextEncoding))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_atext.getBytes(_ftextencoding)); + //BA.debugLineNum = 909;BA.debugLine="ts.Initialize"; +_ts.Initialize(); + //BA.debugLineNum = 910;BA.debugLine="Dim fi As TPDFFontInfo=fFontsInfos.Get(calcFontKe"; +_fi = ((gunav2.keymon.com.mx.cpdf._tpdffontinfo)(_ffontsinfos.Get((Object)(_calcfontkey(_fcontext.fFontFamily /*String*/ ,_fcontext.fFontStyle /*int*/ ))))); + //BA.debugLineNum = 911;BA.debugLine="Dim w As Double"; +_w = 0; + //BA.debugLineNum = 912;BA.debugLine="For i=0 To bb.Length-1"; +{ +final int step8 = 1; +final int limit8 = (int) (_bb._getlength /*int*/ ()-1); +_i = (int) (0) ; +for (;_i <= limit8 ;_i = _i + step8 ) { + //BA.debugLineNum = 913;BA.debugLine="w=w+fi.fCharsWidths(ToUnsigned(bb.InternalBuffer"; +_w = _w+_fi.fCharsWidths /*int[]*/ [_tounsigned(_bb._getinternalbuffer /*byte[]*/ ()[_i])]; + } +}; + //BA.debugLineNum = 915;BA.debugLine="ts.fWidth=w*fContext.fFontSize/1000/fUnitFactor"; +_ts.fWidth /*double*/ = _w*_fcontext.fFontSize /*double*/ /(double)1000/(double)_funitfactor; + //BA.debugLineNum = 916;BA.debugLine="ts.fTop=fi.fYTop*fContext.fFontSize/1000/fUnitFac"; +_ts.fTop /*double*/ = _fi.fYTop /*int*/ *_fcontext.fFontSize /*double*/ /(double)1000/(double)_funitfactor; + //BA.debugLineNum = 917;BA.debugLine="ts.fBottom=fi.fYBottom*fContext.fFontSize/1000/fU"; +_ts.fBottom /*double*/ = _fi.fYBottom /*int*/ *_fcontext.fFontSize /*double*/ /(double)1000/(double)_funitfactor; + //BA.debugLineNum = 918;BA.debugLine="ts.fHeight=ts.fBottom-ts.fTop"; +_ts.fHeight /*double*/ = _ts.fBottom /*double*/ -_ts.fTop /*double*/ ; + //BA.debugLineNum = 919;BA.debugLine="Return ts"; +if (true) return _ts; + //BA.debugLineNum = 920;BA.debugLine="End Sub"; +return null; +} +public double _gx() throws Exception{ + //BA.debugLineNum = 987;BA.debugLine="public Sub gX As Double"; + //BA.debugLineNum = 988;BA.debugLine="Return fContext.fX"; +if (true) return _fcontext.fX /*double*/ ; + //BA.debugLineNum = 989;BA.debugLine="End Sub"; +return 0; +} +public double _gy() throws Exception{ + //BA.debugLineNum = 991;BA.debugLine="public Sub gy As Double"; + //BA.debugLineNum = 992;BA.debugLine="Return fContext.fy"; +if (true) return _fcontext.fY /*double*/ ; + //BA.debugLineNum = 993;BA.debugLine="End Sub"; +return 0; +} +public byte[] _headerwrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; + //BA.debugLineNum = 202;BA.debugLine="private Sub headerWrite As Byte()"; + //BA.debugLineNum = 203;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 204;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 205;BA.debugLine="bb.Append($\"%PDF-${NumberFormat2(fPDFVersion,1,1,"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("%PDF-"+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((double)(Double.parseDouble(_fpdfversion)),(int) (1),(int) (1),(int) (1),__c.False)))+""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 206;BA.debugLine="Return bb.toarray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 207;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf._tpdfimageinfo _imageinfo(String _adir,String _afile) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdfimageinfo _ii = null; +anywheresoftware.b4a.randomaccessfile.RandomAccessFile _raf = null; +long _rafpos = 0L; +gunav2.keymon.com.mx.b4xbytesbuilder _bbdata = null; +gunav2.keymon.com.mx.b4xbytesbuilder _bbpalette = null; +int _chunklength = 0; +String _chunktype = ""; +byte[] _b = null; + //BA.debugLineNum = 478;BA.debugLine="private Sub imageInfo(adir As String,afile As Stri"; + //BA.debugLineNum = 479;BA.debugLine="Dim ii As TPDFImageInfo"; +_ii = new gunav2.keymon.com.mx.cpdf._tpdfimageinfo(); + //BA.debugLineNum = 480;BA.debugLine="Dim raf As RandomAccessFile"; +_raf = new anywheresoftware.b4a.randomaccessfile.RandomAccessFile(); + //BA.debugLineNum = 481;BA.debugLine="Dim rafpos As Long"; +_rafpos = 0L; + //BA.debugLineNum = 482;BA.debugLine="Dim bbData As B4XBytesBuilder"; +_bbdata = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 483;BA.debugLine="Dim bbPalette As B4XBytesBuilder"; +_bbpalette = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 485;BA.debugLine="bbData.Initialize"; +_bbdata._initialize /*String*/ (ba); + //BA.debugLineNum = 486;BA.debugLine="bbPalette.Initialize"; +_bbpalette._initialize /*String*/ (ba); + //BA.debugLineNum = 487;BA.debugLine="ii.Initialize"; +_ii.Initialize(); + //BA.debugLineNum = 488;BA.debugLine="ii.fError=0"; +_ii.fError /*int*/ = (int) (0); + //BA.debugLineNum = 489;BA.debugLine="raf.Initialize(adir,afile,True)"; +_raf.Initialize(_adir,_afile,__c.True); + //BA.debugLineNum = 490;BA.debugLine="rafpos=0"; +_rafpos = (long) (0); + //BA.debugLineNum = 494;BA.debugLine="If rafReadString(raf,rafpos,8)<>Chr(137) & \"PNG\""; +if ((_rafreadstring(_raf,_rafpos,(long) (8))).equals(BA.ObjectToString(__c.Chr((int) (137)))+"PNG"+BA.ObjectToString(__c.Chr((int) (13)))+BA.ObjectToString(__c.Chr((int) (10)))+BA.ObjectToString(__c.Chr((int) (26)))+BA.ObjectToString(__c.Chr((int) (10)))) == false) { + //BA.debugLineNum = 495;BA.debugLine="ii.fError=1"; +_ii.fError /*int*/ = (int) (1); + }; + //BA.debugLineNum = 497;BA.debugLine="rafpos=rafpos+8"; +_rafpos = (long) (_rafpos+8); + //BA.debugLineNum = 500;BA.debugLine="Dim chunkLength As Int"; +_chunklength = 0; + //BA.debugLineNum = 501;BA.debugLine="Dim chunkType As String"; +_chunktype = ""; + //BA.debugLineNum = 502;BA.debugLine="Do While (ii.fError=0) And (chunkType<>\"IEND\")"; +while ((_ii.fError /*int*/ ==0) && ((_chunktype).equals("IEND") == false)) { + //BA.debugLineNum = 503;BA.debugLine="chunkLength=raf.ReadInt(rafpos)"; +_chunklength = _raf.ReadInt(_rafpos); + //BA.debugLineNum = 504;BA.debugLine="rafpos=rafpos+4"; +_rafpos = (long) (_rafpos+4); + //BA.debugLineNum = 505;BA.debugLine="chunkType=rafReadString(raf,rafpos,4)"; +_chunktype = _rafreadstring(_raf,_rafpos,(long) (4)); + //BA.debugLineNum = 506;BA.debugLine="rafpos=rafpos+4"; +_rafpos = (long) (_rafpos+4); + //BA.debugLineNum = 507;BA.debugLine="Select chunkType"; +switch (BA.switchObjectToInt(_chunktype,"IHDR","IDAT","PLTE")) { +case 0: { + //BA.debugLineNum = 510;BA.debugLine="ii.fWidth=raf.ReadInt(rafpos)"; +_ii.fWidth /*int*/ = _raf.ReadInt(_rafpos); + //BA.debugLineNum = 511;BA.debugLine="rafpos=rafpos+4"; +_rafpos = (long) (_rafpos+4); + //BA.debugLineNum = 513;BA.debugLine="ii.fHeight=raf.ReadInt(rafpos)"; +_ii.fHeight /*int*/ = _raf.ReadInt(_rafpos); + //BA.debugLineNum = 514;BA.debugLine="rafpos=rafpos+4"; +_rafpos = (long) (_rafpos+4); + //BA.debugLineNum = 516;BA.debugLine="ii.fBPP=raf.ReadUnsignedByte(rafpos)"; +_ii.fBPP /*int*/ = _raf.ReadUnsignedByte(_rafpos); + //BA.debugLineNum = 517;BA.debugLine="If ii.fBPP>8 Then"; +if (_ii.fBPP /*int*/ >8) { + //BA.debugLineNum = 518;BA.debugLine="ii.fError=2"; +_ii.fError /*int*/ = (int) (2); + }; + //BA.debugLineNum = 520;BA.debugLine="rafpos=rafpos+1"; +_rafpos = (long) (_rafpos+1); + //BA.debugLineNum = 522;BA.debugLine="ii.fColorSpace=raf.ReadUnsignedByte(rafpos)"; +_ii.fColorSpace /*int*/ = _raf.ReadUnsignedByte(_rafpos); + //BA.debugLineNum = 523;BA.debugLine="If ii.fColorSpace<>0 And ii.fColorSpace<>2 And"; +if (_ii.fColorSpace /*int*/ !=0 && _ii.fColorSpace /*int*/ !=2 && _ii.fColorSpace /*int*/ !=3 && _ii.fColorSpace /*int*/ !=4) { + //BA.debugLineNum = 524;BA.debugLine="ii.FError=3"; +_ii.fError /*int*/ = (int) (3); + }; + //BA.debugLineNum = 526;BA.debugLine="rafpos=rafpos+1"; +_rafpos = (long) (_rafpos+1); + //BA.debugLineNum = 528;BA.debugLine="ii.FCompression=raf.ReadUnsignedByte(rafpos)"; +_ii.fCompression /*int*/ = _raf.ReadUnsignedByte(_rafpos); + //BA.debugLineNum = 529;BA.debugLine="If ii.FCompression<>0 Then"; +if (_ii.fCompression /*int*/ !=0) { + //BA.debugLineNum = 530;BA.debugLine="ii.FError=4"; +_ii.fError /*int*/ = (int) (4); + }; + //BA.debugLineNum = 532;BA.debugLine="rafpos=rafpos+1"; +_rafpos = (long) (_rafpos+1); + //BA.debugLineNum = 534;BA.debugLine="ii.FFilter=raf.ReadUnsignedByte(rafpos)"; +_ii.fFilter /*int*/ = _raf.ReadUnsignedByte(_rafpos); + //BA.debugLineNum = 535;BA.debugLine="If ii.FFilter<>0 Then"; +if (_ii.fFilter /*int*/ !=0) { + //BA.debugLineNum = 536;BA.debugLine="ii.FError=5"; +_ii.fError /*int*/ = (int) (5); + }; + //BA.debugLineNum = 538;BA.debugLine="rafpos=rafpos+1"; +_rafpos = (long) (_rafpos+1); + //BA.debugLineNum = 540;BA.debugLine="ii.FInterlacing=raf.ReadUnsignedByte(rafpos)"; +_ii.fInterlacing /*int*/ = _raf.ReadUnsignedByte(_rafpos); + //BA.debugLineNum = 541;BA.debugLine="If ii.FInterlacing<>0 Then"; +if (_ii.fInterlacing /*int*/ !=0) { + //BA.debugLineNum = 542;BA.debugLine="ii.FError=6"; +_ii.fError /*int*/ = (int) (6); + }; + //BA.debugLineNum = 544;BA.debugLine="rafpos=rafpos+1"; +_rafpos = (long) (_rafpos+1); + break; } +case 1: { + //BA.debugLineNum = 547;BA.debugLine="Dim b(chunkLength) As Byte"; +_b = new byte[_chunklength]; +; + //BA.debugLineNum = 548;BA.debugLine="raf.ReadBytes(b,0,chunkLength,rafpos)"; +_raf.ReadBytes(_b,(int) (0),_chunklength,_rafpos); + //BA.debugLineNum = 549;BA.debugLine="bbData.Append(b)"; +_bbdata._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_b); + //BA.debugLineNum = 550;BA.debugLine="rafpos=rafpos+chunkLength"; +_rafpos = (long) (_rafpos+_chunklength); + break; } +case 2: { + //BA.debugLineNum = 553;BA.debugLine="Dim b(chunkLength) As Byte"; +_b = new byte[_chunklength]; +; + //BA.debugLineNum = 554;BA.debugLine="raf.ReadBytes(b,0,chunkLength,rafpos)"; +_raf.ReadBytes(_b,(int) (0),_chunklength,_rafpos); + //BA.debugLineNum = 555;BA.debugLine="bbPalette.Append(b)"; +_bbpalette._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_b); + //BA.debugLineNum = 556;BA.debugLine="rafpos=rafpos+chunkLength"; +_rafpos = (long) (_rafpos+_chunklength); + break; } +default: { + //BA.debugLineNum = 560;BA.debugLine="rafpos=rafpos+chunkLength"; +_rafpos = (long) (_rafpos+_chunklength); + break; } +} +; + //BA.debugLineNum = 563;BA.debugLine="rafpos=rafpos+4"; +_rafpos = (long) (_rafpos+4); + } +; + //BA.debugLineNum = 566;BA.debugLine="raf.close"; +_raf.Close(); + //BA.debugLineNum = 567;BA.debugLine="ii.fData=bbData.ToArray"; +_ii.fData /*byte[]*/ = _bbdata._toarray /*byte[]*/ (); + //BA.debugLineNum = 568;BA.debugLine="ii.fPalette=bbPalette.ToArray"; +_ii.fPalette /*byte[]*/ = _bbpalette._toarray /*byte[]*/ (); + //BA.debugLineNum = 570;BA.debugLine="Return ii"; +if (true) return _ii; + //BA.debugLineNum = 571;BA.debugLine="End Sub"; +return null; +} +public String _imagekey(String _adir,String _afile) throws Exception{ + //BA.debugLineNum = 473;BA.debugLine="private Sub imageKey(adir As String,afile As Strin"; + //BA.debugLineNum = 474;BA.debugLine="Return adir & afile"; +if (true) return _adir+_afile; + //BA.debugLineNum = 475;BA.debugLine="End Sub"; +return ""; +} +public byte[] _imageswrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +int _i = 0; + //BA.debugLineNum = 323;BA.debugLine="private Sub imagesWrite As Byte()"; + //BA.debugLineNum = 324;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 325;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 326;BA.debugLine="For i=0 To fUsedImages.Size-1"; +{ +final int step3 = 1; +final int limit3 = (int) (_fusedimages.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit3 ;_i = _i + step3 ) { + //BA.debugLineNum = 327;BA.debugLine="bb.append(imageWrite(i))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_imagewrite(_i)); + } +}; + //BA.debugLineNum = 329;BA.debugLine="Return bb.toarray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 330;BA.debugLine="End Sub"; +return null; +} +public byte[] _imagewrite(int _aimage) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +gunav2.keymon.com.mx.cpdf._tpdfimageinfo _ii = null; +String _cs = ""; + //BA.debugLineNum = 332;BA.debugLine="private Sub imageWrite(aimage As Int) As Byte()"; + //BA.debugLineNum = 333;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 334;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 335;BA.debugLine="Dim ii As TPDFImageInfo=fUsedImages.Get(aimage).A"; +_ii = (gunav2.keymon.com.mx.cpdf._tpdfimageinfo)(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_fusedimages.Get(_aimage)))).Get((Object)("info"))); + //BA.debugLineNum = 336;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj${Chr(10)}<>"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 344;BA.debugLine="bb.Append($\"/Length ${ii.fData.length}>>${Chr(10)"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/Length "+__c.SmartStringFormatter("",(Object)(_ii.fData /*byte[]*/ .length))+">>"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"stream"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 345;BA.debugLine="bb.Append(ii.fdata)"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_ii.fData /*byte[]*/ ); + //BA.debugLineNum = 346;BA.debugLine="bb.Append($\"${Chr(10)}endstream${Chr(10)}endobj${"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"endstream"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 347;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 348;BA.debugLine="If cs=\"Indexed\" Then"; +if ((_cs).equals("Indexed")) { + //BA.debugLineNum = 349;BA.debugLine="bb.Append(paletteWrite(ii.fPalette))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_palettewrite(_ii.fPalette /*byte[]*/ )); + }; + //BA.debugLineNum = 351;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 352;BA.debugLine="End Sub"; +return null; +} +public String _initfontsinfos() throws Exception{ + //BA.debugLineNum = 156;BA.debugLine="private Sub initFontsInfos"; + //BA.debugLineNum = 157;BA.debugLine="fFontsInfos.Initialize"; +_ffontsinfos.Initialize(); + //BA.debugLineNum = 158;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Courier\",fontNormal)"; +_ffontsinfos.Put((Object)(_calcfontkey("Courier",_fontnormal)),(Object)(_createfontinfo(new int[]{(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 159;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Courier\",fontBold),c"; +_ffontsinfos.Put((Object)(_calcfontkey("Courier",_fontbold)),(Object)(_createfontinfo(new int[]{(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 160;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Courier\",fontItalic)"; +_ffontsinfos.Put((Object)(_calcfontkey("Courier",_fontitalic)),(Object)(_createfontinfo(new int[]{(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 161;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Courier\",fontBold+fo"; +_ffontsinfos.Put((Object)(_calcfontkey("Courier",(int) (_fontbold+_fontitalic))),(Object)(_createfontinfo(new int[]{(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600),(int) (600)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 162;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Helvetica\",fontNorma"; +_ffontsinfos.Put((Object)(_calcfontkey("Helvetica",_fontnormal)),(Object)(_createfontinfo(new int[]{(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (355),(int) (556),(int) (556),(int) (889),(int) (667),(int) (191),(int) (333),(int) (333),(int) (389),(int) (584),(int) (278),(int) (333),(int) (278),(int) (278),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (278),(int) (278),(int) (584),(int) (584),(int) (584),(int) (556),(int) (1015),(int) (667),(int) (667),(int) (722),(int) (722),(int) (667),(int) (611),(int) (778),(int) (722),(int) (278),(int) (500),(int) (667),(int) (556),(int) (833),(int) (722),(int) (778),(int) (667),(int) (778),(int) (722),(int) (667),(int) (611),(int) (722),(int) (667),(int) (944),(int) (667),(int) (667),(int) (611),(int) (278),(int) (278),(int) (278),(int) (469),(int) (556),(int) (333),(int) (556),(int) (556),(int) (500),(int) (556),(int) (556),(int) (278),(int) (556),(int) (556),(int) (222),(int) (222),(int) (500),(int) (222),(int) (833),(int) (556),(int) (556),(int) (556),(int) (556),(int) (333),(int) (500),(int) (278),(int) (556),(int) (500),(int) (722),(int) (500),(int) (500),(int) (500),(int) (334),(int) (260),(int) (334),(int) (584),(int) (350),(int) (556),(int) (350),(int) (222),(int) (556),(int) (333),(int) (1000),(int) (556),(int) (556),(int) (333),(int) (1000),(int) (667),(int) (333),(int) (1000),(int) (350),(int) (611),(int) (350),(int) (350),(int) (222),(int) (222),(int) (333),(int) (333),(int) (350),(int) (556),(int) (1000),(int) (333),(int) (1000),(int) (500),(int) (333),(int) (944),(int) (350),(int) (500),(int) (667),(int) (278),(int) (333),(int) (556),(int) (556),(int) (556),(int) (556),(int) (260),(int) (556),(int) (333),(int) (737),(int) (370),(int) (556),(int) (584),(int) (333),(int) (737),(int) (333),(int) (400),(int) (584),(int) (333),(int) (333),(int) (333),(int) (556),(int) (537),(int) (278),(int) (333),(int) (333),(int) (365),(int) (556),(int) (834),(int) (834),(int) (834),(int) (611),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (1000),(int) (722),(int) (667),(int) (667),(int) (667),(int) (667),(int) (278),(int) (278),(int) (278),(int) (278),(int) (722),(int) (722),(int) (778),(int) (778),(int) (778),(int) (778),(int) (778),(int) (584),(int) (778),(int) (722),(int) (722),(int) (722),(int) (722),(int) (667),(int) (667),(int) (611),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (889),(int) (500),(int) (556),(int) (556),(int) (556),(int) (556),(int) (278),(int) (278),(int) (278),(int) (278),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (584),(int) (611),(int) (556),(int) (556),(int) (556),(int) (556),(int) (500),(int) (556),(int) (500)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 163;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Helvetica\",fontBold)"; +_ffontsinfos.Put((Object)(_calcfontkey("Helvetica",_fontbold)),(Object)(_createfontinfo(new int[]{(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (333),(int) (474),(int) (556),(int) (556),(int) (889),(int) (722),(int) (238),(int) (333),(int) (333),(int) (389),(int) (584),(int) (278),(int) (333),(int) (278),(int) (278),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (333),(int) (333),(int) (584),(int) (584),(int) (584),(int) (611),(int) (975),(int) (722),(int) (722),(int) (722),(int) (722),(int) (667),(int) (611),(int) (778),(int) (722),(int) (278),(int) (556),(int) (722),(int) (611),(int) (833),(int) (722),(int) (778),(int) (667),(int) (778),(int) (722),(int) (667),(int) (611),(int) (722),(int) (667),(int) (944),(int) (667),(int) (667),(int) (611),(int) (333),(int) (278),(int) (333),(int) (584),(int) (556),(int) (333),(int) (556),(int) (611),(int) (556),(int) (611),(int) (556),(int) (333),(int) (611),(int) (611),(int) (278),(int) (278),(int) (556),(int) (278),(int) (889),(int) (611),(int) (611),(int) (611),(int) (611),(int) (389),(int) (556),(int) (333),(int) (611),(int) (556),(int) (778),(int) (556),(int) (556),(int) (500),(int) (389),(int) (280),(int) (389),(int) (584),(int) (350),(int) (556),(int) (350),(int) (278),(int) (556),(int) (500),(int) (1000),(int) (556),(int) (556),(int) (333),(int) (1000),(int) (667),(int) (333),(int) (1000),(int) (350),(int) (611),(int) (350),(int) (350),(int) (278),(int) (278),(int) (500),(int) (500),(int) (350),(int) (556),(int) (1000),(int) (333),(int) (1000),(int) (556),(int) (333),(int) (944),(int) (350),(int) (500),(int) (667),(int) (278),(int) (333),(int) (556),(int) (556),(int) (556),(int) (556),(int) (280),(int) (556),(int) (333),(int) (737),(int) (370),(int) (556),(int) (584),(int) (333),(int) (737),(int) (333),(int) (400),(int) (584),(int) (333),(int) (333),(int) (333),(int) (611),(int) (556),(int) (278),(int) (333),(int) (333),(int) (365),(int) (556),(int) (834),(int) (834),(int) (834),(int) (611),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (1000),(int) (722),(int) (667),(int) (667),(int) (667),(int) (667),(int) (278),(int) (278),(int) (278),(int) (278),(int) (722),(int) (722),(int) (778),(int) (778),(int) (778),(int) (778),(int) (778),(int) (584),(int) (778),(int) (722),(int) (722),(int) (722),(int) (722),(int) (667),(int) (667),(int) (611),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (889),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (278),(int) (278),(int) (278),(int) (278),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (584),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (556),(int) (611),(int) (556)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 164;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Helvetica\",fontItali"; +_ffontsinfos.Put((Object)(_calcfontkey("Helvetica",_fontitalic)),(Object)(_createfontinfo(new int[]{(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (355),(int) (556),(int) (556),(int) (889),(int) (667),(int) (191),(int) (333),(int) (333),(int) (389),(int) (584),(int) (278),(int) (333),(int) (278),(int) (278),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (278),(int) (278),(int) (584),(int) (584),(int) (584),(int) (556),(int) (1015),(int) (667),(int) (667),(int) (722),(int) (722),(int) (667),(int) (611),(int) (778),(int) (722),(int) (278),(int) (500),(int) (667),(int) (556),(int) (833),(int) (722),(int) (778),(int) (667),(int) (778),(int) (722),(int) (667),(int) (611),(int) (722),(int) (667),(int) (944),(int) (667),(int) (667),(int) (611),(int) (278),(int) (278),(int) (278),(int) (469),(int) (556),(int) (333),(int) (556),(int) (556),(int) (500),(int) (556),(int) (556),(int) (278),(int) (556),(int) (556),(int) (222),(int) (222),(int) (500),(int) (222),(int) (833),(int) (556),(int) (556),(int) (556),(int) (556),(int) (333),(int) (500),(int) (278),(int) (556),(int) (500),(int) (722),(int) (500),(int) (500),(int) (500),(int) (334),(int) (260),(int) (334),(int) (584),(int) (350),(int) (556),(int) (350),(int) (222),(int) (556),(int) (333),(int) (1000),(int) (556),(int) (556),(int) (333),(int) (1000),(int) (667),(int) (333),(int) (1000),(int) (350),(int) (611),(int) (350),(int) (350),(int) (222),(int) (222),(int) (333),(int) (333),(int) (350),(int) (556),(int) (1000),(int) (333),(int) (1000),(int) (500),(int) (333),(int) (944),(int) (350),(int) (500),(int) (667),(int) (278),(int) (333),(int) (556),(int) (556),(int) (556),(int) (556),(int) (260),(int) (556),(int) (333),(int) (737),(int) (370),(int) (556),(int) (584),(int) (333),(int) (737),(int) (333),(int) (400),(int) (584),(int) (333),(int) (333),(int) (333),(int) (556),(int) (537),(int) (278),(int) (333),(int) (333),(int) (365),(int) (556),(int) (834),(int) (834),(int) (834),(int) (611),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (1000),(int) (722),(int) (667),(int) (667),(int) (667),(int) (667),(int) (278),(int) (278),(int) (278),(int) (278),(int) (722),(int) (722),(int) (778),(int) (778),(int) (778),(int) (778),(int) (778),(int) (584),(int) (778),(int) (722),(int) (722),(int) (722),(int) (722),(int) (667),(int) (667),(int) (611),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (889),(int) (500),(int) (556),(int) (556),(int) (556),(int) (556),(int) (278),(int) (278),(int) (278),(int) (278),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (584),(int) (611),(int) (556),(int) (556),(int) (556),(int) (556),(int) (500),(int) (556),(int) (500)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 165;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Helvetica\",fontBold+"; +_ffontsinfos.Put((Object)(_calcfontkey("Helvetica",(int) (_fontbold+_fontitalic))),(Object)(_createfontinfo(new int[]{(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (278),(int) (333),(int) (474),(int) (556),(int) (556),(int) (889),(int) (722),(int) (238),(int) (333),(int) (333),(int) (389),(int) (584),(int) (278),(int) (333),(int) (278),(int) (278),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (333),(int) (333),(int) (584),(int) (584),(int) (584),(int) (611),(int) (975),(int) (722),(int) (722),(int) (722),(int) (722),(int) (667),(int) (611),(int) (778),(int) (722),(int) (278),(int) (556),(int) (722),(int) (611),(int) (833),(int) (722),(int) (778),(int) (667),(int) (778),(int) (722),(int) (667),(int) (611),(int) (722),(int) (667),(int) (944),(int) (667),(int) (667),(int) (611),(int) (333),(int) (278),(int) (333),(int) (584),(int) (556),(int) (333),(int) (556),(int) (611),(int) (556),(int) (611),(int) (556),(int) (333),(int) (611),(int) (611),(int) (278),(int) (278),(int) (556),(int) (278),(int) (889),(int) (611),(int) (611),(int) (611),(int) (611),(int) (389),(int) (556),(int) (333),(int) (611),(int) (556),(int) (778),(int) (556),(int) (556),(int) (500),(int) (389),(int) (280),(int) (389),(int) (584),(int) (350),(int) (556),(int) (350),(int) (278),(int) (556),(int) (500),(int) (1000),(int) (556),(int) (556),(int) (333),(int) (1000),(int) (667),(int) (333),(int) (1000),(int) (350),(int) (611),(int) (350),(int) (350),(int) (278),(int) (278),(int) (500),(int) (500),(int) (350),(int) (556),(int) (1000),(int) (333),(int) (1000),(int) (556),(int) (333),(int) (944),(int) (350),(int) (500),(int) (667),(int) (278),(int) (333),(int) (556),(int) (556),(int) (556),(int) (556),(int) (280),(int) (556),(int) (333),(int) (737),(int) (370),(int) (556),(int) (584),(int) (333),(int) (737),(int) (333),(int) (400),(int) (584),(int) (333),(int) (333),(int) (333),(int) (611),(int) (556),(int) (278),(int) (333),(int) (333),(int) (365),(int) (556),(int) (834),(int) (834),(int) (834),(int) (611),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (1000),(int) (722),(int) (667),(int) (667),(int) (667),(int) (667),(int) (278),(int) (278),(int) (278),(int) (278),(int) (722),(int) (722),(int) (778),(int) (778),(int) (778),(int) (778),(int) (778),(int) (584),(int) (778),(int) (722),(int) (722),(int) (722),(int) (722),(int) (667),(int) (667),(int) (611),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (889),(int) (556),(int) (556),(int) (556),(int) (556),(int) (556),(int) (278),(int) (278),(int) (278),(int) (278),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (584),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (556),(int) (611),(int) (556)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 166;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Times\",fontNormal),c"; +_ffontsinfos.Put((Object)(_calcfontkey("Times",_fontnormal)),(Object)(_createfontinfo(new int[]{(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (333),(int) (408),(int) (500),(int) (500),(int) (833),(int) (778),(int) (180),(int) (333),(int) (333),(int) (500),(int) (564),(int) (250),(int) (333),(int) (250),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (278),(int) (278),(int) (564),(int) (564),(int) (564),(int) (444),(int) (921),(int) (722),(int) (667),(int) (667),(int) (722),(int) (611),(int) (556),(int) (722),(int) (722),(int) (333),(int) (389),(int) (722),(int) (611),(int) (889),(int) (722),(int) (722),(int) (556),(int) (722),(int) (667),(int) (556),(int) (611),(int) (722),(int) (722),(int) (944),(int) (722),(int) (722),(int) (611),(int) (333),(int) (278),(int) (333),(int) (469),(int) (500),(int) (333),(int) (444),(int) (500),(int) (444),(int) (500),(int) (444),(int) (333),(int) (500),(int) (500),(int) (278),(int) (278),(int) (500),(int) (278),(int) (778),(int) (500),(int) (500),(int) (500),(int) (500),(int) (333),(int) (389),(int) (278),(int) (500),(int) (500),(int) (722),(int) (500),(int) (500),(int) (444),(int) (480),(int) (200),(int) (480),(int) (541),(int) (350),(int) (500),(int) (350),(int) (333),(int) (500),(int) (444),(int) (1000),(int) (500),(int) (500),(int) (333),(int) (1000),(int) (556),(int) (333),(int) (889),(int) (350),(int) (611),(int) (350),(int) (350),(int) (333),(int) (333),(int) (444),(int) (444),(int) (350),(int) (500),(int) (1000),(int) (333),(int) (980),(int) (389),(int) (333),(int) (722),(int) (350),(int) (444),(int) (722),(int) (250),(int) (333),(int) (500),(int) (500),(int) (500),(int) (500),(int) (200),(int) (500),(int) (333),(int) (760),(int) (276),(int) (500),(int) (564),(int) (333),(int) (760),(int) (333),(int) (400),(int) (564),(int) (300),(int) (300),(int) (333),(int) (500),(int) (453),(int) (250),(int) (333),(int) (300),(int) (310),(int) (500),(int) (750),(int) (750),(int) (750),(int) (444),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (889),(int) (667),(int) (611),(int) (611),(int) (611),(int) (611),(int) (333),(int) (333),(int) (333),(int) (333),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (564),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (556),(int) (500),(int) (444),(int) (444),(int) (444),(int) (444),(int) (444),(int) (444),(int) (667),(int) (444),(int) (444),(int) (444),(int) (444),(int) (444),(int) (278),(int) (278),(int) (278),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (564),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500)},(int) (-60),(int) (40),(int) (2200),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 167;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Times\",fontBold),cre"; +_ffontsinfos.Put((Object)(_calcfontkey("Times",_fontbold)),(Object)(_createfontinfo(new int[]{(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (333),(int) (555),(int) (500),(int) (500),(int) (1000),(int) (833),(int) (278),(int) (333),(int) (333),(int) (500),(int) (570),(int) (250),(int) (333),(int) (250),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (333),(int) (333),(int) (570),(int) (570),(int) (570),(int) (500),(int) (930),(int) (722),(int) (667),(int) (722),(int) (722),(int) (667),(int) (611),(int) (778),(int) (778),(int) (389),(int) (500),(int) (778),(int) (667),(int) (944),(int) (722),(int) (778),(int) (611),(int) (778),(int) (722),(int) (556),(int) (667),(int) (722),(int) (722),(int) (1000),(int) (722),(int) (722),(int) (667),(int) (333),(int) (278),(int) (333),(int) (581),(int) (500),(int) (333),(int) (500),(int) (556),(int) (444),(int) (556),(int) (444),(int) (333),(int) (500),(int) (556),(int) (278),(int) (333),(int) (556),(int) (278),(int) (833),(int) (556),(int) (500),(int) (556),(int) (556),(int) (444),(int) (389),(int) (333),(int) (556),(int) (500),(int) (722),(int) (500),(int) (500),(int) (444),(int) (394),(int) (220),(int) (394),(int) (520),(int) (350),(int) (500),(int) (350),(int) (333),(int) (500),(int) (500),(int) (1000),(int) (500),(int) (500),(int) (333),(int) (1000),(int) (556),(int) (333),(int) (1000),(int) (350),(int) (667),(int) (350),(int) (350),(int) (333),(int) (333),(int) (500),(int) (500),(int) (350),(int) (500),(int) (1000),(int) (333),(int) (1000),(int) (389),(int) (333),(int) (722),(int) (350),(int) (444),(int) (722),(int) (250),(int) (333),(int) (500),(int) (500),(int) (500),(int) (500),(int) (220),(int) (500),(int) (333),(int) (747),(int) (300),(int) (500),(int) (570),(int) (333),(int) (747),(int) (333),(int) (400),(int) (570),(int) (300),(int) (300),(int) (333),(int) (556),(int) (540),(int) (250),(int) (333),(int) (300),(int) (330),(int) (500),(int) (750),(int) (750),(int) (750),(int) (500),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (1000),(int) (722),(int) (667),(int) (667),(int) (667),(int) (667),(int) (389),(int) (389),(int) (389),(int) (389),(int) (722),(int) (722),(int) (778),(int) (778),(int) (778),(int) (778),(int) (778),(int) (570),(int) (778),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (611),(int) (556),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (722),(int) (444),(int) (444),(int) (444),(int) (444),(int) (444),(int) (278),(int) (278),(int) (278),(int) (278),(int) (500),(int) (556),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (570),(int) (500),(int) (556),(int) (556),(int) (556),(int) (556),(int) (500),(int) (556),(int) (500)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 168;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Times\",fontItalic),c"; +_ffontsinfos.Put((Object)(_calcfontkey("Times",_fontitalic)),(Object)(_createfontinfo(new int[]{(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (333),(int) (420),(int) (500),(int) (500),(int) (833),(int) (778),(int) (214),(int) (333),(int) (333),(int) (500),(int) (675),(int) (250),(int) (333),(int) (250),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (333),(int) (333),(int) (675),(int) (675),(int) (675),(int) (500),(int) (920),(int) (611),(int) (611),(int) (667),(int) (722),(int) (611),(int) (611),(int) (722),(int) (722),(int) (333),(int) (444),(int) (667),(int) (556),(int) (833),(int) (667),(int) (722),(int) (611),(int) (722),(int) (611),(int) (500),(int) (556),(int) (722),(int) (611),(int) (833),(int) (611),(int) (556),(int) (556),(int) (389),(int) (278),(int) (389),(int) (422),(int) (500),(int) (333),(int) (500),(int) (500),(int) (444),(int) (500),(int) (444),(int) (278),(int) (500),(int) (500),(int) (278),(int) (278),(int) (444),(int) (278),(int) (722),(int) (500),(int) (500),(int) (500),(int) (500),(int) (389),(int) (389),(int) (278),(int) (500),(int) (444),(int) (667),(int) (444),(int) (444),(int) (389),(int) (400),(int) (275),(int) (400),(int) (541),(int) (350),(int) (500),(int) (350),(int) (333),(int) (500),(int) (556),(int) (889),(int) (500),(int) (500),(int) (333),(int) (1000),(int) (500),(int) (333),(int) (944),(int) (350),(int) (556),(int) (350),(int) (350),(int) (333),(int) (333),(int) (556),(int) (556),(int) (350),(int) (500),(int) (889),(int) (333),(int) (980),(int) (389),(int) (333),(int) (667),(int) (350),(int) (389),(int) (556),(int) (250),(int) (389),(int) (500),(int) (500),(int) (500),(int) (500),(int) (275),(int) (500),(int) (333),(int) (760),(int) (276),(int) (500),(int) (675),(int) (333),(int) (760),(int) (333),(int) (400),(int) (675),(int) (300),(int) (300),(int) (333),(int) (500),(int) (523),(int) (250),(int) (333),(int) (300),(int) (310),(int) (500),(int) (750),(int) (750),(int) (750),(int) (500),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (611),(int) (889),(int) (667),(int) (611),(int) (611),(int) (611),(int) (611),(int) (333),(int) (333),(int) (333),(int) (333),(int) (722),(int) (667),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (675),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (556),(int) (611),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (667),(int) (444),(int) (444),(int) (444),(int) (444),(int) (444),(int) (278),(int) (278),(int) (278),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (675),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (444),(int) (500),(int) (444)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 169;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Times\",fontBold+font"; +_ffontsinfos.Put((Object)(_calcfontkey("Times",(int) (_fontbold+_fontitalic))),(Object)(_createfontinfo(new int[]{(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (389),(int) (555),(int) (500),(int) (500),(int) (833),(int) (778),(int) (278),(int) (333),(int) (333),(int) (500),(int) (570),(int) (250),(int) (333),(int) (250),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (333),(int) (333),(int) (570),(int) (570),(int) (570),(int) (500),(int) (832),(int) (667),(int) (667),(int) (667),(int) (722),(int) (667),(int) (667),(int) (722),(int) (778),(int) (389),(int) (500),(int) (667),(int) (611),(int) (889),(int) (722),(int) (722),(int) (611),(int) (722),(int) (667),(int) (556),(int) (611),(int) (722),(int) (667),(int) (889),(int) (667),(int) (611),(int) (611),(int) (333),(int) (278),(int) (333),(int) (570),(int) (500),(int) (333),(int) (500),(int) (500),(int) (444),(int) (500),(int) (444),(int) (333),(int) (500),(int) (556),(int) (278),(int) (278),(int) (500),(int) (278),(int) (778),(int) (556),(int) (500),(int) (500),(int) (500),(int) (389),(int) (389),(int) (278),(int) (556),(int) (444),(int) (667),(int) (500),(int) (444),(int) (389),(int) (348),(int) (220),(int) (348),(int) (570),(int) (350),(int) (500),(int) (350),(int) (333),(int) (500),(int) (500),(int) (1000),(int) (500),(int) (500),(int) (333),(int) (1000),(int) (556),(int) (333),(int) (944),(int) (350),(int) (611),(int) (350),(int) (350),(int) (333),(int) (333),(int) (500),(int) (500),(int) (350),(int) (500),(int) (1000),(int) (333),(int) (1000),(int) (389),(int) (333),(int) (722),(int) (350),(int) (389),(int) (611),(int) (250),(int) (389),(int) (500),(int) (500),(int) (500),(int) (500),(int) (220),(int) (500),(int) (333),(int) (747),(int) (266),(int) (500),(int) (606),(int) (333),(int) (747),(int) (333),(int) (400),(int) (570),(int) (300),(int) (300),(int) (333),(int) (576),(int) (500),(int) (250),(int) (333),(int) (300),(int) (300),(int) (500),(int) (750),(int) (750),(int) (750),(int) (500),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (944),(int) (667),(int) (667),(int) (667),(int) (667),(int) (667),(int) (389),(int) (389),(int) (389),(int) (389),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (570),(int) (722),(int) (722),(int) (722),(int) (722),(int) (722),(int) (611),(int) (611),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (722),(int) (444),(int) (444),(int) (444),(int) (444),(int) (444),(int) (278),(int) (278),(int) (278),(int) (278),(int) (500),(int) (556),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (570),(int) (500),(int) (556),(int) (556),(int) (556),(int) (556),(int) (444),(int) (500),(int) (444)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 170;BA.debugLine="fFontsInfos.Put(calcFontKey(\"Symbol\",fontNormal),"; +_ffontsinfos.Put((Object)(_calcfontkey("Symbol",_fontnormal)),(Object)(_createfontinfo(new int[]{(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (250),(int) (333),(int) (713),(int) (500),(int) (549),(int) (833),(int) (778),(int) (439),(int) (333),(int) (333),(int) (500),(int) (549),(int) (250),(int) (549),(int) (250),(int) (278),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (500),(int) (278),(int) (278),(int) (549),(int) (549),(int) (549),(int) (444),(int) (549),(int) (722),(int) (667),(int) (722),(int) (612),(int) (611),(int) (763),(int) (603),(int) (722),(int) (333),(int) (631),(int) (722),(int) (686),(int) (889),(int) (722),(int) (722),(int) (768),(int) (741),(int) (556),(int) (592),(int) (611),(int) (690),(int) (439),(int) (768),(int) (645),(int) (795),(int) (611),(int) (333),(int) (863),(int) (333),(int) (658),(int) (500),(int) (500),(int) (631),(int) (549),(int) (549),(int) (494),(int) (439),(int) (521),(int) (411),(int) (603),(int) (329),(int) (603),(int) (549),(int) (549),(int) (576),(int) (521),(int) (549),(int) (549),(int) (521),(int) (549),(int) (603),(int) (439),(int) (576),(int) (713),(int) (686),(int) (493),(int) (686),(int) (494),(int) (480),(int) (200),(int) (480),(int) (549),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (750),(int) (620),(int) (247),(int) (549),(int) (167),(int) (713),(int) (500),(int) (753),(int) (753),(int) (753),(int) (753),(int) (1042),(int) (987),(int) (603),(int) (987),(int) (603),(int) (400),(int) (549),(int) (411),(int) (549),(int) (549),(int) (713),(int) (494),(int) (460),(int) (549),(int) (549),(int) (549),(int) (549),(int) (1000),(int) (603),(int) (1000),(int) (658),(int) (823),(int) (686),(int) (795),(int) (987),(int) (768),(int) (768),(int) (823),(int) (768),(int) (768),(int) (713),(int) (713),(int) (713),(int) (713),(int) (713),(int) (713),(int) (713),(int) (768),(int) (713),(int) (790),(int) (790),(int) (890),(int) (823),(int) (549),(int) (250),(int) (713),(int) (603),(int) (603),(int) (1042),(int) (987),(int) (603),(int) (987),(int) (603),(int) (494),(int) (329),(int) (790),(int) (790),(int) (786),(int) (713),(int) (384),(int) (384),(int) (384),(int) (384),(int) (384),(int) (384),(int) (494),(int) (494),(int) (494),(int) (494),(int) (0),(int) (329),(int) (274),(int) (686),(int) (686),(int) (686),(int) (384),(int) (384),(int) (384),(int) (384),(int) (384),(int) (384),(int) (494),(int) (494),(int) (494),(int) (0)},(int) (-60),(int) (10),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 171;BA.debugLine="fFontsInfos.Put(calcFontKey(\"zapfdingbats\",fontNo"; +_ffontsinfos.Put((Object)(_calcfontkey("zapfdingbats",_fontnormal)),(Object)(_createfontinfo(new int[]{(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (278),(int) (974),(int) (961),(int) (974),(int) (980),(int) (719),(int) (789),(int) (790),(int) (791),(int) (690),(int) (960),(int) (939),(int) (549),(int) (855),(int) (911),(int) (933),(int) (911),(int) (945),(int) (974),(int) (755),(int) (846),(int) (762),(int) (761),(int) (571),(int) (677),(int) (763),(int) (760),(int) (759),(int) (754),(int) (494),(int) (552),(int) (537),(int) (577),(int) (692),(int) (786),(int) (788),(int) (788),(int) (790),(int) (793),(int) (794),(int) (816),(int) (823),(int) (789),(int) (841),(int) (823),(int) (833),(int) (816),(int) (831),(int) (923),(int) (744),(int) (723),(int) (749),(int) (790),(int) (792),(int) (695),(int) (776),(int) (768),(int) (792),(int) (759),(int) (707),(int) (708),(int) (682),(int) (701),(int) (826),(int) (815),(int) (789),(int) (789),(int) (707),(int) (687),(int) (696),(int) (689),(int) (786),(int) (787),(int) (713),(int) (791),(int) (785),(int) (791),(int) (873),(int) (761),(int) (762),(int) (762),(int) (759),(int) (759),(int) (892),(int) (892),(int) (788),(int) (784),(int) (438),(int) (138),(int) (277),(int) (415),(int) (392),(int) (392),(int) (668),(int) (668),(int) (0),(int) (390),(int) (390),(int) (317),(int) (317),(int) (276),(int) (276),(int) (509),(int) (509),(int) (410),(int) (410),(int) (234),(int) (234),(int) (334),(int) (334),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (0),(int) (732),(int) (544),(int) (544),(int) (910),(int) (667),(int) (760),(int) (760),(int) (776),(int) (595),(int) (694),(int) (626),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (788),(int) (894),(int) (838),(int) (1016),(int) (458),(int) (748),(int) (924),(int) (748),(int) (918),(int) (927),(int) (928),(int) (928),(int) (834),(int) (873),(int) (828),(int) (924),(int) (924),(int) (917),(int) (930),(int) (931),(int) (463),(int) (883),(int) (836),(int) (836),(int) (867),(int) (867),(int) (696),(int) (696),(int) (874),(int) (0),(int) (874),(int) (760),(int) (946),(int) (771),(int) (865),(int) (771),(int) (888),(int) (967),(int) (888),(int) (831),(int) (873),(int) (927),(int) (970),(int) (918),(int) (0)},(int) (-60),(int) (40),(int) (220),(int) (40),(int) (800),(int) (-230)))); + //BA.debugLineNum = 172;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.cpdf _initialize(anywheresoftware.b4a.BA _ba,String _aunit) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 121;BA.debugLine="Public Sub Initialize(aunit As String) As cPDF"; + //BA.debugLineNum = 122;BA.debugLine="fLibVersion=\"0.6\""; +_flibversion = "0.6"; + //BA.debugLineNum = 123;BA.debugLine="fPDFVersion=\"1.3\""; +_fpdfversion = "1.3"; + //BA.debugLineNum = 124;BA.debugLine="sUnit(aunit)"; +_sunit(_aunit); + //BA.debugLineNum = 125;BA.debugLine="fProperties=CreateMap(\"Producer\":\"B4XPDF\",\"Creati"; +_fproperties = __c.createMap(new Object[] {(Object)("Producer"),(Object)("B4XPDF"),(Object)("CreationDate"),(Object)(_gcreationdate()),(Object)("ModDate"),(Object)(_gcreationdate())}); + //BA.debugLineNum = 126;BA.debugLine="fContext.Initialize"; +_fcontext.Initialize(); + //BA.debugLineNum = 127;BA.debugLine="fObjs.Initialize"; +_fobjs.Initialize(); + //BA.debugLineNum = 128;BA.debugLine="fPages.Initialize"; +_fpages.Initialize(); + //BA.debugLineNum = 129;BA.debugLine="fPage=0"; +_fpage = (int) (0); + //BA.debugLineNum = 130;BA.debugLine="fUsedImages.Initialize"; +_fusedimages.Initialize(); + //BA.debugLineNum = 131;BA.debugLine="fUsedFonts.Initialize"; +_fusedfonts.Initialize(); + //BA.debugLineNum = 132;BA.debugLine="initFontsInfos"; +_initfontsinfos(); + //BA.debugLineNum = 133;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 134;BA.debugLine="End Sub"; +return null; +} +public byte[] _kidswrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +int _i = 0; + //BA.debugLineNum = 217;BA.debugLine="private Sub kidsWrite As Byte()"; + //BA.debugLineNum = 218;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 219;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 220;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj <> endobj${Chr"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("] /Count "+__c.SmartStringFormatter("",(Object)(_fpages.getSize()))+">> endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 225;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 226;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 227;BA.debugLine="End Sub"; +return null; +} +public String _multilinetextsizeaddline(gunav2.keymon.com.mx.cpdf._tpdfmultilinetextsize _amts,gunav2.keymon.com.mx.cpdf._tpdftextsize _ats,String _atext,double _awidth) throws Exception{ +String _s = ""; +int _p = 0; + //BA.debugLineNum = 925;BA.debugLine="private Sub MultilineTextSizeAddLine(amts As TPDFM"; + //BA.debugLineNum = 926;BA.debugLine="Dim s As String"; +_s = ""; + //BA.debugLineNum = 927;BA.debugLine="If ats.fWidth>awidth Then"; +if (_ats.fWidth /*double*/ >_awidth) { + //BA.debugLineNum = 928;BA.debugLine="Dim p As Int=atext.LastIndexOf(\" \")"; +_p = _atext.lastIndexOf(" "); + //BA.debugLineNum = 929;BA.debugLine="If p=-1 Then"; +if (_p==-1) { + //BA.debugLineNum = 930;BA.debugLine="p=atext.Length-1"; +_p = (int) (_atext.length()-1); + }; + //BA.debugLineNum = 932;BA.debugLine="s=atext.SubString(p+1)"; +_s = _atext.substring((int) (_p+1)); + //BA.debugLineNum = 933;BA.debugLine="atext=atext.SubString2(0,p)"; +_atext = _atext.substring((int) (0),_p); + }else { + //BA.debugLineNum = 935;BA.debugLine="s=\"\""; +_s = ""; + }; + //BA.debugLineNum = 937;BA.debugLine="amts.fparagraphs.Get(amts.fParagraphs.Size-1).As("; +((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_amts.fParagraphs /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (_amts.fParagraphs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1))))).Add((Object)(_atext)); + //BA.debugLineNum = 938;BA.debugLine="amts.fHeight=amts.fHeight+ats.fHeight"; +_amts.fHeight /*double*/ = _amts.fHeight /*double*/ +_ats.fHeight /*double*/ ; + //BA.debugLineNum = 939;BA.debugLine="Return s"; +if (true) return _s; + //BA.debugLineNum = 940;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.cpdf _outimage(String _adir,String _afile,double _ax,double _ay,double _aw,double _ah) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdfimageinfo _ii = null; +String _k = ""; +int _i = 0; + //BA.debugLineNum = 817;BA.debugLine="public Sub outImage(adir As String,afile As String"; + //BA.debugLineNum = 818;BA.debugLine="Dim ii As TPDFImageInfo"; +_ii = new gunav2.keymon.com.mx.cpdf._tpdfimageinfo(); + //BA.debugLineNum = 819;BA.debugLine="afile=convertImage(adir,afile)"; +_afile = _convertimage(_adir,_afile); + //BA.debugLineNum = 821;BA.debugLine="Dim k As String=imageKey(adir,afile)"; +_k = _imagekey(_adir,_afile); + //BA.debugLineNum = 822;BA.debugLine="Dim i As Int=findImageKey(k)"; +_i = _findimagekey(_k); + //BA.debugLineNum = 824;BA.debugLine="If i=-1 Then"; +if (_i==-1) { + //BA.debugLineNum = 826;BA.debugLine="ii=imageInfo(adir,afile)"; +_ii = _imageinfo(_adir,_afile); + //BA.debugLineNum = 828;BA.debugLine="fUsedImages.add(CreateMap(\"path\":k,\"info\":ii))"; +_fusedimages.Add((Object)(__c.createMap(new Object[] {(Object)("path"),(Object)(_k),(Object)("info"),(Object)(_ii)}).getObject())); + //BA.debugLineNum = 829;BA.debugLine="i=fUsedImages.Size-1"; +_i = (int) (_fusedimages.getSize()-1); + }else { + //BA.debugLineNum = 831;BA.debugLine="ii=fUsedImages.Get(i).As(Map).Get(\"info\")"; +_ii = (gunav2.keymon.com.mx.cpdf._tpdfimageinfo)(((anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_fusedimages.Get(_i)))).Get((Object)("info"))); + }; + //BA.debugLineNum = 834;BA.debugLine="File.Delete(adir,afile)"; +__c.File.Delete(_adir,_afile); + //BA.debugLineNum = 836;BA.debugLine="If ii.fError=0 Then"; +if (_ii.fError /*int*/ ==0) { + //BA.debugLineNum = 838;BA.debugLine="If aw=0 And ah=0 Then"; +if (_aw==0 && _ah==0) { + //BA.debugLineNum = 839;BA.debugLine="aw=-96"; +_aw = -96; + //BA.debugLineNum = 840;BA.debugLine="ah=-96"; +_ah = -96; + }; + //BA.debugLineNum = 844;BA.debugLine="If aw<0 Then"; +if (_aw<0) { + //BA.debugLineNum = 845;BA.debugLine="aw=-ii.fWidth*72/aw/fUnitFactor"; +_aw = -_ii.fWidth /*int*/ *72/(double)_aw/(double)_funitfactor; + }; + //BA.debugLineNum = 848;BA.debugLine="If ah<0 Then"; +if (_ah<0) { + //BA.debugLineNum = 849;BA.debugLine="ah=-ii.fHeight*72/ah/fUnitFactor"; +_ah = -_ii.fHeight /*int*/ *72/(double)_ah/(double)_funitfactor; + }; + //BA.debugLineNum = 853;BA.debugLine="If aw=0 Then"; +if (_aw==0) { + //BA.debugLineNum = 854;BA.debugLine="aw=ah*ii.fWidth/ii.fHeight"; +_aw = _ah*_ii.fWidth /*int*/ /(double)_ii.fHeight /*int*/ ; + }; + //BA.debugLineNum = 857;BA.debugLine="If ah=0 Then"; +if (_ah==0) { + //BA.debugLineNum = 858;BA.debugLine="ah=aw*ii.fHeight/ii.fWidth"; +_ah = _aw*_ii.fHeight /*int*/ /(double)_ii.fWidth /*int*/ ; + }; + //BA.debugLineNum = 861;BA.debugLine="contentAdd(fPage,$\"q ${NumberFormat2(aw*fUnitFac"; +_contentadd(_fpage,("q "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_aw*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" 0 0 "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ah*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" cm /I"+__c.SmartStringFormatter("",(Object)(_i))+" Do Q"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + }; + //BA.debugLineNum = 863;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 864;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _outline(double _ax1,double _ay1,double _ax2,double _ay2) throws Exception{ + //BA.debugLineNum = 779;BA.debugLine="public Sub outLine(ax1 As Double,ay1 As Double,ax2"; + //BA.debugLineNum = 780;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(ax1*fUnitFacto"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax1*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay1*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" m "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax2*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay2*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" l h S"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 781;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 782;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _outraw(String _atext) throws Exception{ +int _shift = 0; +anywheresoftware.b4a.keywords.Regex.MatcherWrapper _m = null; +int _g = 0; +String _v = ""; + //BA.debugLineNum = 869;BA.debugLine="public Sub outRaw(atext As String) As cPDF"; + //BA.debugLineNum = 870;BA.debugLine="If fUnitFactor<>1 Then"; +if (_funitfactor!=1) { + //BA.debugLineNum = 872;BA.debugLine="Dim shift As Int=0"; +_shift = (int) (0); + //BA.debugLineNum = 873;BA.debugLine="atext=atext & Chr(10)"; +_atext = _atext+BA.ObjectToString(__c.Chr((int) (10))); + //BA.debugLineNum = 874;BA.debugLine="Dim m As Matcher = Regex.Matcher(\"([+-]?[0-9]{1,"; +_m = new anywheresoftware.b4a.keywords.Regex.MatcherWrapper(); +_m = __c.Regex.Matcher("([+-]?[0-9]{1,}[\\.]{0,1}[0-9]{0,})",_atext); + //BA.debugLineNum = 875;BA.debugLine="Do While m.Find"; +while (_m.Find()) { + //BA.debugLineNum = 876;BA.debugLine="For g=1 To m.GroupCount"; +{ +final int step6 = 1; +final int limit6 = _m.getGroupCount(); +_g = (int) (1) ; +for (;_g <= limit6 ;_g = _g + step6 ) { + //BA.debugLineNum = 877;BA.debugLine="Dim v As String=NumberFormat2(fUnitFactor*m.Gr"; +_v = __c.NumberFormat2(_funitfactor*(double)(Double.parseDouble(_m.Group(_g))),(int) (1),(int) (3),(int) (3),__c.False); + //BA.debugLineNum = 878;BA.debugLine="atext=atext.SubString2(0,m.getstart(g)+shift)"; +_atext = _atext.substring((int) (0),(int) (_m.GetStart(_g)+_shift))+_v+_atext.substring((int) (_m.GetEnd(_g)+_shift)); + //BA.debugLineNum = 879;BA.debugLine="shift=shift+v.Length-m.Group(g).Length"; +_shift = (int) (_shift+_v.length()-_m.Group(_g).length()); + } +}; + } +; + }; + //BA.debugLineNum = 883;BA.debugLine="contentAdd(fPage,atext)"; +_contentadd(_fpage,_atext); + //BA.debugLineNum = 884;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 885;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _outrectangle(double _ax,double _ay,double _aw,double _ah,String _astyle) throws Exception{ + //BA.debugLineNum = 788;BA.debugLine="public Sub outRectangle(ax As Double,ay As Double,"; + //BA.debugLineNum = 789;BA.debugLine="If astyle=RectangleBorderAndFill Or astyle=Rectan"; +if ((_astyle).equals(_rectangleborderandfill) || (_astyle).equals(_rectanglefillonly)) { + //BA.debugLineNum = 790;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(fContext.fFil"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_fcontext.fFillColor /*double[]*/ [(int) (0)],(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_fcontext.fFillColor /*double[]*/ [(int) (1)],(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_fcontext.fFillColor /*double[]*/ [(int) (2)],(int) (1),(int) (3),(int) (3),__c.False)))+" rg"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + }; + //BA.debugLineNum = 792;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(ax*fUnitFactor"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_aw*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ah*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" re "+__c.SmartStringFormatter("",(Object)(_astyle))+" "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 793;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 794;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _outtext(double _ax,double _ay,String _atext) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdffontinfo _fi = null; +gunav2.keymon.com.mx.cpdf._tpdftextsize _ts = null; + //BA.debugLineNum = 716;BA.debugLine="public Sub outText(ax As Double,ay As Double,atext"; + //BA.debugLineNum = 717;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(fContext.fFont"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_fcontext.fFontColor /*double[]*/ [(int) (0)],(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_fcontext.fFontColor /*double[]*/ [(int) (1)],(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_fcontext.fFontColor /*double[]*/ [(int) (2)],(int) (1),(int) (3),(int) (3),__c.False)))+" rg"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 718;BA.debugLine="contentAdd(fPage,$\"BT ${NumberFormat2(ax*fUnitFac"; +_contentadd(_fpage,("BT "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" Td ("+__c.SmartStringFormatter("",(Object)(_escapetext(_atext)))+")Tj ET"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 719;BA.debugLine="If Bit.And(fContext.fFontstyle,fontUnderline+font"; +if (__c.Bit.And(_fcontext.fFontStyle /*int*/ ,(int) (_fontunderline+_fontstrikethrough))!=0) { + //BA.debugLineNum = 720;BA.debugLine="Dim fi As TPDFFontInfo=fFontsInfos.Get(calcFontK"; +_fi = ((gunav2.keymon.com.mx.cpdf._tpdffontinfo)(_ffontsinfos.Get((Object)(_calcfontkey(_fcontext.fFontFamily /*String*/ ,_fcontext.fFontStyle /*int*/ ))))); + //BA.debugLineNum = 721;BA.debugLine="Dim ts As TPDFTextSize=gTextSize(atext)"; +_ts = _gtextsize(_atext); + }; + //BA.debugLineNum = 723;BA.debugLine="If Bit.And(fContext.fFontstyle,fontUnderline)<>0"; +if (__c.Bit.And(_fcontext.fFontStyle /*int*/ ,_fontunderline)!=0) { + //BA.debugLineNum = 724;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(ax*fUnitFacto"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay*_funitfactor+_fi.fYUnderline /*int*/ *_fcontext.fFontSize /*double*/ /(double)1000,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ts.fWidth /*double*/ *_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((_fi.fHUnderline /*int*/ )*_fcontext.fFontSize /*double*/ /(double)1000,(int) (1),(int) (3),(int) (3),__c.False)))+" re f "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + }; + //BA.debugLineNum = 726;BA.debugLine="If Bit.And(fContext.fFontstyle,fontStrikeThrough)"; +if (__c.Bit.And(_fcontext.fFontStyle /*int*/ ,_fontstrikethrough)!=0) { + //BA.debugLineNum = 727;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(ax*fUnitFacto"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ax*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ay*_funitfactor+_fi.fYStrikeThrough /*int*/ *_fcontext.fFontSize /*double*/ /(double)1000,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ts.fWidth /*double*/ *_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2((_fi.fHStrikeThrough /*int*/ )*_fcontext.fFontSize /*double*/ /(double)1000,(int) (1),(int) (3),(int) (3),__c.False)))+" re f "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + }; + //BA.debugLineNum = 729;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 730;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _outtextflow(double _aleftmargin,double _arightmargin,String _aalign,String _atext) throws Exception{ +gunav2.keymon.com.mx.cpdf._tpdfmultilinetextsize _mts = null; +gunav2.keymon.com.mx.cpdf._tpdftextsize _ts = null; +int _p = 0; +anywheresoftware.b4a.objects.collections.List _lines = null; +int _i = 0; +String _l = ""; +String[] _w = null; +double _x = 0; +double _s = 0; +int _j = 0; +gunav2.keymon.com.mx.cpdf._tpdftextsize _ww = null; + //BA.debugLineNum = 737;BA.debugLine="public Sub outTextFlow(aleftMargin As Double,arigh"; + //BA.debugLineNum = 738;BA.debugLine="Dim mts As TPDFMultilineTextSize=gMultilineTextSi"; +_mts = _gmultilinetextsize(_arightmargin-_aleftmargin,_atext); + //BA.debugLineNum = 739;BA.debugLine="Dim ts As TPDFTextSize"; +_ts = new gunav2.keymon.com.mx.cpdf._tpdftextsize(); + //BA.debugLineNum = 740;BA.debugLine="For p=0 To mts.fParagraphs.Size-1"; +{ +final int step3 = 1; +final int limit3 = (int) (_mts.fParagraphs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1); +_p = (int) (0) ; +for (;_p <= limit3 ;_p = _p + step3 ) { + //BA.debugLineNum = 741;BA.debugLine="Dim lines As List=mts.fParagraphs.Get(p).As(List"; +_lines = new anywheresoftware.b4a.objects.collections.List(); +_lines = ((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_mts.fParagraphs /*anywheresoftware.b4a.objects.collections.List*/ .Get(_p)))); + //BA.debugLineNum = 742;BA.debugLine="For i=0 To lines.Size-1"; +{ +final int step5 = 1; +final int limit5 = (int) (_lines.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 743;BA.debugLine="Dim l As String=lines.Get(i)"; +_l = BA.ObjectToString(_lines.Get(_i)); + //BA.debugLineNum = 744;BA.debugLine="ts=gTextSize(l)"; +_ts = _gtextsize(_l); + //BA.debugLineNum = 745;BA.debugLine="Select Case aalign"; +switch (BA.switchObjectToInt(_aalign,"L","C","R","J")) { +case 0: { + //BA.debugLineNum = 747;BA.debugLine="outText(aleftMargin,fContext.fy,l)"; +_outtext(_aleftmargin,_fcontext.fY /*double*/ ,_l); + break; } +case 1: { + //BA.debugLineNum = 749;BA.debugLine="outText(aleftMargin+(arightMargin-aleftMargin"; +_outtext(_aleftmargin+(_arightmargin-_aleftmargin-_ts.fWidth /*double*/ )/(double)2,_fcontext.fY /*double*/ ,_l); + break; } +case 2: { + //BA.debugLineNum = 751;BA.debugLine="outText(arightMargin-ts.fWidth,fContext.fy,l)"; +_outtext(_arightmargin-_ts.fWidth /*double*/ ,_fcontext.fY /*double*/ ,_l); + break; } +case 3: { + //BA.debugLineNum = 753;BA.debugLine="If i=lines.Size-1 Then"; +if (_i==_lines.getSize()-1) { + //BA.debugLineNum = 755;BA.debugLine="outText(aleftMargin,fContext.fy,l)"; +_outtext(_aleftmargin,_fcontext.fY /*double*/ ,_l); + }else { + //BA.debugLineNum = 758;BA.debugLine="Dim w() As String=Regex.split(\" \",l)"; +_w = __c.Regex.Split(" ",_l); + //BA.debugLineNum = 759;BA.debugLine="Dim x As Double=aleftMargin"; +_x = _aleftmargin; + //BA.debugLineNum = 761;BA.debugLine="Dim s As Double=((arightMargin-aleftMargin)-"; +_s = ((_arightmargin-_aleftmargin)-_ts.fWidth /*double*/ +(_gtextsize(" ").fWidth /*double*/ *(_w.length-1)))/(double)(_w.length-1); + //BA.debugLineNum = 762;BA.debugLine="For j=0 To w.Length-1"; +{ +final int step22 = 1; +final int limit22 = (int) (_w.length-1); +_j = (int) (0) ; +for (;_j <= limit22 ;_j = _j + step22 ) { + //BA.debugLineNum = 763;BA.debugLine="Dim ww As TPDFTextSize=gTextSize(w(j))"; +_ww = _gtextsize(_w[_j]); + //BA.debugLineNum = 764;BA.debugLine="outText(x,fContext.fy,w(j))"; +_outtext(_x,_fcontext.fY /*double*/ ,_w[_j]); + //BA.debugLineNum = 765;BA.debugLine="x=x+s+ww.fWidth"; +_x = _x+_s+_ww.fWidth /*double*/ ; + } +}; + }; + break; } +} +; + //BA.debugLineNum = 769;BA.debugLine="fContext.fX=aleftMargin"; +_fcontext.fX /*double*/ = _aleftmargin; + //BA.debugLineNum = 770;BA.debugLine="fContext.fy=fContext.fy+ts.fHeight"; +_fcontext.fY /*double*/ = _fcontext.fY /*double*/ +_ts.fHeight /*double*/ ; + } +}; + } +}; + //BA.debugLineNum = 773;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 774;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _pageadd(double _awidth,double _aheight) throws Exception{ + //BA.debugLineNum = 648;BA.debugLine="public Sub pageAdd(awidth As Double,aheight As Dou"; + //BA.debugLineNum = 649;BA.debugLine="fPages.Add(createPage(IIf(awidth<0,-awidth,awidth"; +_fpages.Add((Object)(_createpage((double)(BA.ObjectToNumber(((_awidth<0) ? ((Object)(-_awidth)) : ((Object)(_awidth*_funitfactor))))),(double)(BA.ObjectToNumber(((_aheight<0) ? ((Object)(-_aheight)) : ((Object)(_aheight*_funitfactor))))),""))); + //BA.debugLineNum = 650;BA.debugLine="fPage=fPages.Size-1"; +_fpage = (int) (_fpages.getSize()-1); + //BA.debugLineNum = 651;BA.debugLine="sFont(fContext.fFontFamily,fContext.fFontStyle,fC"; +_sfont(_fcontext.fFontFamily /*String*/ ,_fcontext.fFontStyle /*int*/ ,_fcontext.fFontSize /*double*/ ,_fcontext.fFontColor /*double[]*/ ); + //BA.debugLineNum = 652;BA.debugLine="sDrawColor(fContext.fDrawColor)"; +_sdrawcolor(_fcontext.fDrawColor /*double[]*/ ); + //BA.debugLineNum = 653;BA.debugLine="sDrawWidth(fContext.fDrawWidth)"; +_sdrawwidth(_fcontext.fDrawWidth /*double*/ ); + //BA.debugLineNum = 654;BA.debugLine="sFillColor(fContext.fFillColor)"; +_sfillcolor(_fcontext.fFillColor /*double[]*/ ); + //BA.debugLineNum = 655;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 656;BA.debugLine="End Sub"; +return null; +} +public byte[] _pageswrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +int _r = 0; +int _i = 0; + //BA.debugLineNum = 229;BA.debugLine="private Sub pagesWrite As Byte()"; + //BA.debugLineNum = 230;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 231;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 232;BA.debugLine="Dim r As Int=fObjs.Size+1+fPages.Size*2"; +_r = (int) (_fobjs.getSize()+1+_fpages.getSize()*2); + //BA.debugLineNum = 233;BA.debugLine="For i=0 To fPages.Size-1"; +{ +final int step4 = 1; +final int limit4 = (int) (_fpages.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 234;BA.debugLine="bb.append(pageWrite(i,r))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_pagewrite(_i,_r)); + } +}; + //BA.debugLineNum = 236;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 237;BA.debugLine="End Sub"; +return null; +} +public byte[] _pagewrite(int _apage,int _aresource) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +gunav2.keymon.com.mx.cpdf._tpdfpage _p = null; + //BA.debugLineNum = 239;BA.debugLine="private Sub pageWrite(apage As Int,aresource As In"; + //BA.debugLineNum = 240;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 241;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 242;BA.debugLine="Dim p As TPDFPage=fPages.Get(apage)"; +_p = (gunav2.keymon.com.mx.cpdf._tpdfpage)(_fpages.Get(_apage)); + //BA.debugLineNum = 243;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj <> endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 244;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 245;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 246;BA.debugLine="End Sub"; +return null; +} +public byte[] _palettewrite(byte[] _apalette) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; + //BA.debugLineNum = 354;BA.debugLine="private Sub paletteWrite(apalette() As Byte) As By"; + //BA.debugLineNum = 355;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 356;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 357;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj${Chr(10)}<>"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"stream"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 358;BA.debugLine="bb.Append(apalette)"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_apalette); + //BA.debugLineNum = 359;BA.debugLine="bb.Append($\"${Chr(10)}endstream${Chr(10)}endobj${"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"endstream"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 360;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 361;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 362;BA.debugLine="End Sub"; +return null; +} +public byte[] _propertieswrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +String _k = ""; + //BA.debugLineNum = 364;BA.debugLine="private Sub propertiesWrite As Byte()"; + //BA.debugLineNum = 365;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 366;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 367;BA.debugLine="bb.Append($\"${fObjs.Size+1} 0 obj <<${Chr(10)}\"$."; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1))+" 0 obj <<"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 368;BA.debugLine="For Each k As String In fProperties.keys"; +{ +final anywheresoftware.b4a.BA.IterableList group4 = _fproperties.Keys(); +final int groupLen4 = group4.getSize() +;int index4 = 0; +; +for (; index4 < groupLen4;index4++){ +_k = BA.ObjectToString(group4.Get(index4)); + //BA.debugLineNum = 369;BA.debugLine="bb.Append($\"/${k}(${escapeText(fProperties.Get(k"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/"+__c.SmartStringFormatter("",(Object)(_k))+"("+__c.SmartStringFormatter("",(Object)(_escapetext(BA.ObjectToString(_fproperties.Get((Object)(_k))))))+")"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + } +}; + //BA.debugLineNum = 371;BA.debugLine="bb.Append($\" >> endobj${Chr(10)}\"$.getBytes(fText"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((" >> endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 372;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 373;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 374;BA.debugLine="End Sub"; +return null; +} +public String _rafreadstring(anywheresoftware.b4a.randomaccessfile.RandomAccessFile _araf,long _astart,long _acount) throws Exception{ +String _s = ""; +int _i = 0; + //BA.debugLineNum = 464;BA.debugLine="private Sub rafReadString(araf As RandomAccessFile"; + //BA.debugLineNum = 465;BA.debugLine="Dim s As String"; +_s = ""; + //BA.debugLineNum = 466;BA.debugLine="For i=0 To acount-1"; +{ +final int step2 = 1; +final int limit2 = (int) (_acount-1); +_i = (int) (0) ; +for (;_i <= limit2 ;_i = _i + step2 ) { + //BA.debugLineNum = 467;BA.debugLine="s=s & Chr(araf.ReadUnsignedByte(astart+i))"; +_s = _s+BA.ObjectToString(__c.Chr(_araf.ReadUnsignedByte((long) (_astart+_i)))); + } +}; + //BA.debugLineNum = 469;BA.debugLine="Return s"; +if (true) return _s; + //BA.debugLineNum = 470;BA.debugLine="End Sub"; +return ""; +} +public byte[] _refwrite(long _astart,int _ageneration,String _astatus) throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; + //BA.debugLineNum = 376;BA.debugLine="private Sub refWrite(astart As Long,ageneration As"; + //BA.debugLineNum = 377;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 378;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 379;BA.debugLine="bb.Append($\"${NumberFormat2(astart,10,0,0,False)}"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_astart,(int) (10),(int) (0),(int) (0),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_ageneration,(int) (5),(int) (0),(int) (0),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(_astatus))+""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 380;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 381;BA.debugLine="End Sub"; +return null; +} +public byte[] _resourceswrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +int _i = 0; + //BA.debugLineNum = 281;BA.debugLine="private Sub resourcesWrite As Byte()"; + //BA.debugLineNum = 282;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 283;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 284;BA.debugLine="bb.Append($\"${fObjs.size+1} 0 obj << \"$.getBytes"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1))+" 0 obj << ").getBytes(_ftextencoding)); + //BA.debugLineNum = 286;BA.debugLine="bb.Append($\"/ProcSet [/PDF /Text /ImageB /ImageC"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI] "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 288;BA.debugLine="bb.append($\"/Font << ${Chr(10)}\"$.getBytes(fTextE"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/Font << "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 289;BA.debugLine="For i=0 To fUsedFonts.Size-1"; +{ +final int step6 = 1; +final int limit6 = (int) (_fusedfonts.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit6 ;_i = _i + step6 ) { + //BA.debugLineNum = 290;BA.debugLine="bb.Append($\"/F${i} ${fObjs.Size+1+i+1} 0 R \"$.ge"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/F"+__c.SmartStringFormatter("",(Object)(_i))+" "+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1+_i+1))+" 0 R ").getBytes(_ftextencoding)); + } +}; + //BA.debugLineNum = 292;BA.debugLine="bb.append($\" >> ${Chr(10)}\"$.getBytes(fTextEncodi"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((" >> "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 294;BA.debugLine="bb.append($\"/XObject << ${Chr(10)}\"$.getBytes(fTe"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/XObject << "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 295;BA.debugLine="For i=0 To fUsedImages.Size-1"; +{ +final int step11 = 1; +final int limit11 = (int) (_fusedimages.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit11 ;_i = _i + step11 ) { + //BA.debugLineNum = 296;BA.debugLine="bb.Append($\"/I${i} ${fObjs.Size+1+i+1+fUsedFonts"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/I"+__c.SmartStringFormatter("",(Object)(_i))+" "+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1+_i+1+_fusedfonts.getSize()))+" 0 R ").getBytes(_ftextencoding)); + } +}; + //BA.debugLineNum = 298;BA.debugLine="bb.append($\" >> ${Chr(10)}\"$.getBytes(fTextEncodi"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((" >> "+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 300;BA.debugLine="bb.Append($\" >> endobj${Chr(10)}\"$.getBytes(fText"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((" >> endobj"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 301;BA.debugLine="fObjs.Add(bb.Length)"; +_fobjs.Add((Object)(_bb._getlength /*int*/ ())); + //BA.debugLineNum = 302;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 303;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _savetofile(String _adir,String _afile,int _acompress) throws Exception{ +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _outputstream = null; + //BA.debugLineNum = 605;BA.debugLine="public Sub saveToFile(adir As String, afile As Str"; + //BA.debugLineNum = 606;BA.debugLine="Log(afile)"; +__c.LogImpl("382903041",_afile,0); + //BA.debugLineNum = 607;BA.debugLine="File.Delete(adir,afile)"; +__c.File.Delete(_adir,_afile); + //BA.debugLineNum = 608;BA.debugLine="Dim outputstream As OutputStream=File.OpenOutput("; +_outputstream = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_outputstream = __c.File.OpenOutput(_adir,_afile,__c.False); + //BA.debugLineNum = 609;BA.debugLine="saveToStream(outputstream,acompress)"; +_savetostream(_outputstream,_acompress); + //BA.debugLineNum = 610;BA.debugLine="outputstream.Close"; +_outputstream.Close(); + //BA.debugLineNum = 611;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 612;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _savetostream(anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _aoutputstream,int _acompress) throws Exception{ +byte[] _b = null; + //BA.debugLineNum = 576;BA.debugLine="public Sub saveToStream(aoutputstream As OutputStr"; + //BA.debugLineNum = 577;BA.debugLine="Dim b() As Byte=headerWrite"; +_b = _headerwrite(); + //BA.debugLineNum = 578;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 579;BA.debugLine="Dim b() As Byte=catalogWrite"; +_b = _catalogwrite(); + //BA.debugLineNum = 580;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 581;BA.debugLine="Dim b() As Byte=kidsWrite"; +_b = _kidswrite(); + //BA.debugLineNum = 582;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 583;BA.debugLine="Dim b() As Byte=pagesWrite"; +_b = _pageswrite(); + //BA.debugLineNum = 584;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 585;BA.debugLine="Dim b() As Byte=contentsWrite(acompress)"; +_b = _contentswrite(_acompress); + //BA.debugLineNum = 586;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 587;BA.debugLine="Dim b() As Byte=resourcesWrite"; +_b = _resourceswrite(); + //BA.debugLineNum = 588;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 589;BA.debugLine="Dim b() As Byte=fontsWrite"; +_b = _fontswrite(); + //BA.debugLineNum = 590;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 591;BA.debugLine="Dim b() As Byte=imagesWrite"; +_b = _imageswrite(); + //BA.debugLineNum = 592;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 593;BA.debugLine="Dim b() As Byte=propertiesWrite"; +_b = _propertieswrite(); + //BA.debugLineNum = 594;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 595;BA.debugLine="Dim b() As Byte=xrefWrite"; +_b = _xrefwrite(); + //BA.debugLineNum = 596;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 597;BA.debugLine="Dim b() As Byte=trailerWrite"; +_b = _trailerwrite(); + //BA.debugLineNum = 598;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 599;BA.debugLine="Dim b() As Byte=footerWrite"; +_b = _footerwrite(); + //BA.debugLineNum = 600;BA.debugLine="aoutputstream.WriteBytes(b,0,b.length)"; +_aoutputstream.WriteBytes(_b,(int) (0),_b.length); + //BA.debugLineNum = 601;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 602;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sdrawcolor(double[] _argb) throws Exception{ + //BA.debugLineNum = 673;BA.debugLine="public Sub sDrawColor(argb() As Double) As cPDF"; + //BA.debugLineNum = 674;BA.debugLine="fContext.fDrawColor=argb"; +_fcontext.fDrawColor /*double[]*/ = _argb; + //BA.debugLineNum = 675;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(argb(0),1,3,3,"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_argb[(int) (0)],(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_argb[(int) (1)],(int) (1),(int) (3),(int) (3),__c.False)))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_argb[(int) (2)],(int) (1),(int) (3),(int) (3),__c.False)))+" RG"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 676;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 677;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sdrawwidth(double _awidth) throws Exception{ + //BA.debugLineNum = 680;BA.debugLine="public Sub sDrawWidth(awidth As Double) As cPDF"; + //BA.debugLineNum = 681;BA.debugLine="fContext.fDrawWidth=awidth"; +_fcontext.fDrawWidth /*double*/ = _awidth; + //BA.debugLineNum = 682;BA.debugLine="contentAdd(fPage,$\"${NumberFormat2(awidth*fUnitFa"; +_contentadd(_fpage,(""+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_awidth*_funitfactor,(int) (1),(int) (3),(int) (3),__c.False)))+" w"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 683;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 684;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sfillcolor(double[] _argb) throws Exception{ + //BA.debugLineNum = 689;BA.debugLine="public Sub sFillColor(argb() As Double) As cPDF"; + //BA.debugLineNum = 690;BA.debugLine="fContext.fFillColor=argb"; +_fcontext.fFillColor /*double[]*/ = _argb; + //BA.debugLineNum = 691;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 692;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sfont(String _afamily,int _astyle,double _asize,double[] _acolor) throws Exception{ +String _k = ""; +int _i = 0; + //BA.debugLineNum = 698;BA.debugLine="public Sub sFont(afamily As String,astyle As Int,a"; + //BA.debugLineNum = 699;BA.debugLine="Dim k As String=calcFontKey(afamily,astyle)"; +_k = _calcfontkey(_afamily,_astyle); + //BA.debugLineNum = 700;BA.debugLine="Dim i As Int=fUsedFonts.IndexOf(k)"; +_i = _fusedfonts.IndexOf((Object)(_k)); + //BA.debugLineNum = 701;BA.debugLine="If i=-1 Then"; +if (_i==-1) { + //BA.debugLineNum = 702;BA.debugLine="fUsedFonts.Add(k)"; +_fusedfonts.Add((Object)(_k)); + //BA.debugLineNum = 703;BA.debugLine="i=fUsedFonts.Size-1"; +_i = (int) (_fusedfonts.getSize()-1); + }; + //BA.debugLineNum = 705;BA.debugLine="contentAdd(fPage,$\"BT /F${i} ${NumberFormat2(asiz"; +_contentadd(_fpage,("BT /F"+__c.SmartStringFormatter("",(Object)(_i))+" "+__c.SmartStringFormatter("",(Object)(__c.NumberFormat2(_asize,(int) (1),(int) (3),(int) (3),__c.False)))+" Tf ET"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"")); + //BA.debugLineNum = 706;BA.debugLine="fContext.fFontFamily=afamily"; +_fcontext.fFontFamily /*String*/ = _afamily; + //BA.debugLineNum = 707;BA.debugLine="fContext.fFontStyle=astyle"; +_fcontext.fFontStyle /*int*/ = _astyle; + //BA.debugLineNum = 708;BA.debugLine="fContext.fFontSize=asize"; +_fcontext.fFontSize /*double*/ = _asize; + //BA.debugLineNum = 709;BA.debugLine="fContext.fFontColor=acolor"; +_fcontext.fFontColor /*double[]*/ = _acolor; + //BA.debugLineNum = 710;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 711;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _spage(int _apage) throws Exception{ + //BA.debugLineNum = 665;BA.debugLine="public Sub sPage(apage As Int) As cPDF"; + //BA.debugLineNum = 666;BA.debugLine="fPage=apage-1"; +_fpage = (int) (_apage-1); + //BA.debugLineNum = 667;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 668;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sproperty(String _aproperty,String _avalue) throws Exception{ + //BA.debugLineNum = 889;BA.debugLine="public Sub sProperty(aproperty As String,avalue As"; + //BA.debugLineNum = 890;BA.debugLine="fProperties.Put(aproperty,avalue)"; +_fproperties.Put((Object)(_aproperty),(Object)(_avalue)); + //BA.debugLineNum = 891;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 892;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sunit(String _aunit) throws Exception{ + //BA.debugLineNum = 175;BA.debugLine="private Sub sUnit(aunit As String) As cPDF"; + //BA.debugLineNum = 176;BA.debugLine="Select aunit.ToLowerCase"; +switch (BA.switchObjectToInt(_aunit.toLowerCase(),"pt","mm","cm","in")) { +case 0: { + //BA.debugLineNum = 178;BA.debugLine="fUnitFactor=1.0"; +_funitfactor = 1.0; + break; } +case 1: { + //BA.debugLineNum = 180;BA.debugLine="fUnitFactor=72.0/25.4"; +_funitfactor = 72.0/(double)25.4; + break; } +case 2: { + //BA.debugLineNum = 182;BA.debugLine="fUnitFactor=72.0/2.54"; +_funitfactor = 72.0/(double)2.54; + break; } +case 3: { + //BA.debugLineNum = 184;BA.debugLine="fUnitFactor=72.0"; +_funitfactor = 72.0; + break; } +default: { + //BA.debugLineNum = 186;BA.debugLine="fUnitFactor=1.0"; +_funitfactor = 1.0; + break; } +} +; + //BA.debugLineNum = 188;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 189;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sx(double _avalue) throws Exception{ + //BA.debugLineNum = 977;BA.debugLine="public Sub sX(avalue As Double) As cPDF"; + //BA.debugLineNum = 978;BA.debugLine="fContext.fX=avalue"; +_fcontext.fX /*double*/ = _avalue; + //BA.debugLineNum = 979;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 980;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.cpdf _sy(double _avalue) throws Exception{ + //BA.debugLineNum = 982;BA.debugLine="public Sub sY(avalue As Double) As cPDF"; + //BA.debugLineNum = 983;BA.debugLine="fContext.fy=avalue"; +_fcontext.fY /*double*/ = _avalue; + //BA.debugLineNum = 984;BA.debugLine="Return Me"; +if (true) return (gunav2.keymon.com.mx.cpdf)(this); + //BA.debugLineNum = 985;BA.debugLine="End Sub"; +return null; +} +public int _tounsigned(byte _b) throws Exception{ + //BA.debugLineNum = 895;BA.debugLine="private Sub ToUnsigned(b As Byte) As Int"; + //BA.debugLineNum = 896;BA.debugLine="Return Bit.And(0xFF, b)"; +if (true) return __c.Bit.And(((int)0xff),(int) (_b)); + //BA.debugLineNum = 897;BA.debugLine="End Sub"; +return 0; +} +public byte[] _trailerwrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +long _s = 0L; +int _i = 0; +int _l = 0; + //BA.debugLineNum = 398;BA.debugLine="private Sub trailerWrite As Byte()"; + //BA.debugLineNum = 399;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 400;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 401;BA.debugLine="Dim s As Long=headerWrite.length"; +_s = (long) (_headerwrite().length); + //BA.debugLineNum = 402;BA.debugLine="For i=0 To fObjs.Size-1"; +{ +final int step4 = 1; +final int limit4 = (int) (_fobjs.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 403;BA.debugLine="Dim l As Int=fObjs.Get(i)"; +_l = (int)(BA.ObjectToNumber(_fobjs.Get(_i))); + //BA.debugLineNum = 404;BA.debugLine="s=s+l"; +_s = (long) (_s+_l); + } +}; + //BA.debugLineNum = 406;BA.debugLine="bb.Append($\"trailer <<${Chr(10)}\"$.getBytes(fText"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("trailer <<"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 407;BA.debugLine="bb.Append($\"/Size ${fObjs.Size+1}${Chr(10)}\"$.get"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/Size "+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1))+""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 408;BA.debugLine="bb.Append($\"/Info ${fObjs.Size} 0 R${Chr(10)}\"$.g"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/Info "+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()))+" 0 R"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 409;BA.debugLine="bb.Append($\"/Root 1 0 R${Chr(10)}\"$.getBytes(fTex"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("/Root 1 0 R"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 410;BA.debugLine="bb.Append($\">>${Chr(10)}\"$.getBytes(fTextEncoding"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((">>"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 411;BA.debugLine="bb.Append($\"startxref${Chr(10)}\"$.getBytes(fTextE"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("startxref"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 412;BA.debugLine="bb.Append($\"${s}${Chr(10)}\"$.getBytes(fTextEncodi"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ ((""+__c.SmartStringFormatter("",(Object)(_s))+""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 413;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 414;BA.debugLine="End Sub"; +return null; +} +public byte[] _xrefwrite() throws Exception{ +gunav2.keymon.com.mx.b4xbytesbuilder _bb = null; +long _s = 0L; +int _i = 0; +int _l = 0; + //BA.debugLineNum = 383;BA.debugLine="private Sub xrefWrite As Byte()"; + //BA.debugLineNum = 384;BA.debugLine="Dim bb As B4XBytesBuilder"; +_bb = new gunav2.keymon.com.mx.b4xbytesbuilder(); + //BA.debugLineNum = 385;BA.debugLine="bb.Initialize"; +_bb._initialize /*String*/ (ba); + //BA.debugLineNum = 386;BA.debugLine="Dim s As Long=headerWrite.length"; +_s = (long) (_headerwrite().length); + //BA.debugLineNum = 387;BA.debugLine="bb.Append($\"xref${Chr(10)}\"$.getBytes(fTextEncodi"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("xref"+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 388;BA.debugLine="bb.Append($\"0 ${fObjs.Size+1}${Chr(10)}\"$.getByte"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (("0 "+__c.SmartStringFormatter("",(Object)(_fobjs.getSize()+1))+""+__c.SmartStringFormatter("",(Object)(__c.Chr((int) (10))))+"").getBytes(_ftextencoding)); + //BA.debugLineNum = 389;BA.debugLine="bb.Append(refWrite(0,65535,\"f\"))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_refwrite((long) (0),(int) (65535),"f")); + //BA.debugLineNum = 390;BA.debugLine="For i=0 To fObjs.Size-1"; +{ +final int step7 = 1; +final int limit7 = (int) (_fobjs.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit7 ;_i = _i + step7 ) { + //BA.debugLineNum = 391;BA.debugLine="Dim l As Int=fObjs.Get(i)"; +_l = (int)(BA.ObjectToNumber(_fobjs.Get(_i))); + //BA.debugLineNum = 392;BA.debugLine="bb.Append(refWrite(s,0,\"n\"))"; +_bb._append /*gunav2.keymon.com.mx.b4xbytesbuilder*/ (_refwrite(_s,(int) (0),"n")); + //BA.debugLineNum = 393;BA.debugLine="s=s+l"; +_s = (long) (_s+_l); + } +}; + //BA.debugLineNum = 395;BA.debugLine="Return bb.ToArray"; +if (true) return _bb._toarray /*byte[]*/ (); + //BA.debugLineNum = 396;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/gunav2/keymon/com/mx/dbrequestmanager.java b/B4A/Objects/src/gunav2/keymon/com/mx/dbrequestmanager.java new file mode 100644 index 0000000..c811c32 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/dbrequestmanager.java @@ -0,0 +1,831 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.dbrequestmanager"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 anywheresoftware.b4a.objects.collections.List _reqslist = null; +public anywheresoftware.b4a.objects.collections.List _timeslist = null; +public long _iniciorequest = 0L; +public long _iniciojobdone = 0L; +public anywheresoftware.b4a.objects.collections.Map _iniciorequestmap = null; +public anywheresoftware.b4a.objects.collections.Map _iniciojobdonemap = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 = 277;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap"; + //BA.debugLineNum = 278;BA.debugLine="Dim In As InputStream"; +_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); + //BA.debugLineNum = 279;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt"; +_in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length); + //BA.debugLineNum = 280;BA.debugLine="Dim bmp As Bitmap"; +_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 281;BA.debugLine="bmp.Initialize2(In)"; +_bmp.Initialize2((java.io.InputStream)(_in.getObject())); + //BA.debugLineNum = 282;BA.debugLine="Return bmp"; +if (true) return _bmp; + //BA.debugLineNum = 283;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="Dim reqsList, timesList As List"; +_reqslist = new anywheresoftware.b4a.objects.collections.List(); +_timeslist = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 14;BA.debugLine="Dim inicioRequest As Long 'ignore"; +_iniciorequest = 0L; + //BA.debugLineNum = 15;BA.debugLine="Dim inicioJobDone As Long 'ignore"; +_iniciojobdone = 0L; + //BA.debugLineNum = 16;BA.debugLine="Dim inicioRequestMap, inicioJobDoneMap As Map"; +_iniciorequestmap = new anywheresoftware.b4a.objects.collections.Map(); +_iniciojobdonemap = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 17;BA.debugLine="End Sub"; +return ""; +} +public String _executebatch(anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{ +gunav2.keymon.com.mx.httpjob _j = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command = null; + //BA.debugLineNum = 64;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta"; + //BA.debugLineNum = 65;BA.debugLine="Dim j As HttpJob"; +_j = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 66;BA.debugLine="Dim ms As OutputStream"; +_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 67;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 = 68;BA.debugLine="WriteInt(ListOfCommands.Size, out2)"; +_writeint(_listofcommands.getSize(),_out2); + //BA.debugLineNum = 69;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 = (gunav2.keymon.com.mx.dbrequestmanager._dbcommand)(group5.Get(index5)); + //BA.debugLineNum = 70;BA.debugLine="WriteObject(Command.Name, out2)"; +_writeobject((Object)(_command.Name /*String*/ ),_out2); + //BA.debugLineNum = 71;BA.debugLine="WriteList(Command.Parameters, out2)"; +_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); + } +}; + //BA.debugLineNum = 73;BA.debugLine="out2.Close"; +_out2.Close(); + //BA.debugLineNum = 74;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr"; +_j._postbytes /*String*/ (_link+"?method=batch",_ms.ToBytesArray()); + //BA.debugLineNum = 75;BA.debugLine="End Sub"; +return ""; +} +public String _executecommand(gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{ + //BA.debugLineNum = 78;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta"; + //BA.debugLineNum = 81;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)"; +_executebatch(anywheresoftware.b4a.keywords.Common.ArrayToList(new gunav2.keymon.com.mx.dbrequestmanager._dbcommand[]{_command}),_tag); + //BA.debugLineNum = 82;BA.debugLine="End Sub"; +return ""; +} +public String _executequery(gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{ +gunav2.keymon.com.mx.httpjob _j = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; + //BA.debugLineNum = 30;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi"; + //BA.debugLineNum = 31;BA.debugLine="Dim j As HttpJob"; +_j = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 32;BA.debugLine="Dim ms As OutputStream"; +_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 33;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 = 37;BA.debugLine="WriteObject(Command.Name, out2)"; +_writeobject((Object)(_command.Name /*String*/ ),_out2); + //BA.debugLineNum = 38;BA.debugLine="WriteInt(Limit, out2)"; +_writeint(_limit,_out2); + //BA.debugLineNum = 39;BA.debugLine="WriteList(Command.Parameters, out2)"; +_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); + //BA.debugLineNum = 40;BA.debugLine="out2.Close"; +_out2.Close(); + //BA.debugLineNum = 41;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr"; +_j._postbytes /*String*/ (_link+"?method=query",_ms.ToBytesArray()); + //BA.debugLineNum = 42;BA.debugLine="End Sub"; +return ""; +} +public String _executequery3(gunav2.keymon.com.mx.dbrequestmanager._dbcommand _command,int _limit,Object _tag,int _timeout) throws Exception{ +gunav2.keymon.com.mx.httpjob _j = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; + //BA.debugLineNum = 49;BA.debugLine="Public Sub ExecuteQuery3(Command As DBCommand, Lim"; + //BA.debugLineNum = 50;BA.debugLine="Dim j As HttpJob"; +_j = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 51;BA.debugLine="Dim ms As OutputStream"; +_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 52;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 = 53;BA.debugLine="WriteObject(Command.Name, out2)"; +_writeobject((Object)(_command.Name /*String*/ ),_out2); + //BA.debugLineNum = 54;BA.debugLine="WriteInt(Limit, out2)"; +_writeint(_limit,_out2); + //BA.debugLineNum = 55;BA.debugLine="WriteList(Command.Parameters, out2)"; +_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); + //BA.debugLineNum = 56;BA.debugLine="out2.Close"; +_out2.Close(); + //BA.debugLineNum = 57;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr"; +_j._postbytes /*String*/ (_link+"?method=query",_ms.ToBytesArray()); + //BA.debugLineNum = 58;BA.debugLine="If Timeout <> 0 Then j.GetRequest.Timeout = Time"; +if (_timeout!=0) { +_j._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().setTimeout(_timeout);}; + //BA.debugLineNum = 59;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 = 258;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As"; + //BA.debugLineNum = 259;BA.debugLine="Dim out As OutputStream"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 260;BA.debugLine="out.InitializeToBytesArray(0)"; +_out.InitializeToBytesArray((int) (0)); + //BA.debugLineNum = 261;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 = 262;BA.debugLine="File.Copy2(In, out)"; +__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject())); + //BA.debugLineNum = 263;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 264;BA.debugLine="Return out.ToBytesArray"; +if (true) return _out.ToBytesArray(); + //BA.debugLineNum = 265;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.dbrequestmanager._dbresult _handlejob(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; +anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null; +float _serverversion = 0f; +String _method = ""; +gunav2.keymon.com.mx.dbrequestmanager._dbresult _table = null; +int _numberofcolumns = 0; +int _i = 0; +Object[] _rowobjects = null; +int _col = 0; +Object _o = null; +int _rows = 0; + //BA.debugLineNum = 210;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult"; + //BA.debugLineNum = 211;BA.debugLine="If jobTagAnterior <> Job.Tag Then"; +if ((_jobtaganterior).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) { + //BA.debugLineNum = 213;BA.debugLine="If inicioJobDoneMap.IsInitialized Then inicioJob"; +if (_iniciojobdonemap.IsInitialized()) { +_iniciojobdonemap.Put(_job._tag /*Object*/ ,(Object)(__c.DateTime.getNow()));}; + }; + //BA.debugLineNum = 218;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 = 219;BA.debugLine="Dim cs As CompressedStreams"; +_cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); + //BA.debugLineNum = 220;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")"; +_in = _cs.WrapInputStream((java.io.InputStream)(_in.getObject()),"gzip"); + //BA.debugLineNum = 221;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno"; +_serverversion = (float)(BA.ObjectToNumber(_readobject(_in))); + //BA.debugLineNum = 222;BA.debugLine="Dim method As String = ReadObject(In)"; +_method = BA.ObjectToString(_readobject(_in)); + //BA.debugLineNum = 223;BA.debugLine="Dim table As DBResult"; +_table = new gunav2.keymon.com.mx.dbrequestmanager._dbresult(); + //BA.debugLineNum = 224;BA.debugLine="table.Initialize"; +_table.Initialize(); + //BA.debugLineNum = 225;BA.debugLine="table.Columns.Initialize"; +_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); + //BA.debugLineNum = 226;BA.debugLine="table.rows.Initialize"; +_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); + //BA.debugLineNum = 227;BA.debugLine="table.Tag = Job.Tag"; +_table.Tag /*Object*/ = _job._tag /*Object*/ ; + //BA.debugLineNum = 228;BA.debugLine="If method = \"query\" Then"; +if ((_method).equals("query")) { + //BA.debugLineNum = 229;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)"; +_numberofcolumns = _readint(_in); + //BA.debugLineNum = 230;BA.debugLine="For i = 0 To numberOfColumns - 1"; +{ +final int step16 = 1; +final int limit16 = (int) (_numberofcolumns-1); +_i = (int) (0) ; +for (;_i <= limit16 ;_i = _i + step16 ) { + //BA.debugLineNum = 231;BA.debugLine="table.Columns.Put(ReadObject(In), i)"; +_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_readobject(_in),(Object)(_i)); + } +}; + //BA.debugLineNum = 233;BA.debugLine="Do While ReadByte(In) = 1"; +while (_readbyte(_in)==1) { + //BA.debugLineNum = 234;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 = 235;BA.debugLine="table.rows.Add(rowObjects)"; +_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_rowobjects)); + //BA.debugLineNum = 236;BA.debugLine="For col = 0 To numberOfColumns - 1"; +{ +final int step22 = 1; +final int limit22 = (int) (_numberofcolumns-1); +_col = (int) (0) ; +for (;_col <= limit22 ;_col = _col + step22 ) { + //BA.debugLineNum = 237;BA.debugLine="Dim o As Object = ReadObject(In)"; +_o = _readobject(_in); + //BA.debugLineNum = 238;BA.debugLine="rowObjects(col) = o"; +_rowobjects[_col] = _o; + } +}; + } +; + }else if((_method).equals("batch")) { + //BA.debugLineNum = 242;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)"; +_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)("AffectedRows"),(Object)(0)); + //BA.debugLineNum = 243;BA.debugLine="Dim rows As Int = ReadInt(In)"; +_rows = _readint(_in); + //BA.debugLineNum = 244;BA.debugLine="For i = 0 To rows - 1"; +{ +final int step30 = 1; +final int limit30 = (int) (_rows-1); +_i = (int) (0) ; +for (;_i <= limit30 ;_i = _i + step30 ) { + //BA.debugLineNum = 245;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 = 248;BA.debugLine="In.Close"; +_in.Close(); + //BA.debugLineNum = 250;BA.debugLine="If jobTagAnterior <> table.Tag Then"; +if ((_jobtaganterior).equals(BA.ObjectToString(_table.Tag /*Object*/ )) == false) { + //BA.debugLineNum = 251;BA.debugLine="LogColor(\"HandleJob: '\"&table.Tag&\"'\" & \" - Regi"; +__c.LogImpl("385721129","HandleJob: '"+BA.ObjectToString(_table.Tag /*Object*/ )+"'"+" - Registros: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.RGB((int) (115),(int) (0),(int) (140))); + }; + //BA.debugLineNum = 253;BA.debugLine="jobTagAnterior = table.Tag 'Mod por CHV - 211109"; +_jobtaganterior = BA.ObjectToString(_table.Tag /*Object*/ ); + //BA.debugLineNum = 254;BA.debugLine="Return table"; +if (true) return _table; + //BA.debugLineNum = 255;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 = 268;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()"; + //BA.debugLineNum = 269;BA.debugLine="Dim out As OutputStream"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 270;BA.debugLine="out.InitializeToBytesArray(0)"; +_out.InitializeToBytesArray((int) (0)); + //BA.debugLineNum = 271;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 = 272;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 273;BA.debugLine="Return out.ToBytesArray"; +if (true) return _out.ToBytesArray(); + //BA.debugLineNum = 274;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 21;BA.debugLine="Public Sub Initialize (Target As Object, Connector"; + //BA.debugLineNum = 22;BA.debugLine="mTarget = Target"; +_mtarget = _target; + //BA.debugLineNum = 23;BA.debugLine="link = ConnectorLink"; +_link = _connectorlink; + //BA.debugLineNum = 24;BA.debugLine="End Sub"; +return ""; +} +public String _printtable(gunav2.keymon.com.mx.dbrequestmanager._dbresult _table) throws Exception{ +anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; +Object _col = null; +Object[] _row = null; +Object _record = null; + //BA.debugLineNum = 286;BA.debugLine="Public Sub PrintTable(Table As DBResult)"; + //BA.debugLineNum = 287;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C"; +__c.LogImpl("385983233","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 = 288;BA.debugLine="Dim sb As StringBuilder"; +_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 289;BA.debugLine="sb.Initialize"; +_sb.Initialize(); + //BA.debugLineNum = 290;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 = 291;BA.debugLine="sb.Append(col).Append(TAB)"; +_sb.Append(BA.ObjectToString(_col)).Append(__c.TAB); + } +}; + //BA.debugLineNum = 293;BA.debugLine="Log(sb.ToString)"; +__c.LogImpl("385983239",_sb.ToString(),0); + //BA.debugLineNum = 294;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 = 295;BA.debugLine="Dim sb As StringBuilder"; +_sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 296;BA.debugLine="sb.Initialize"; +_sb.Initialize(); + //BA.debugLineNum = 297;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 = 298;BA.debugLine="sb.Append(record).Append(TAB)"; +_sb.Append(BA.ObjectToString(_record)).Append(__c.TAB); + } +}; + //BA.debugLineNum = 300;BA.debugLine="Log(sb.ToString)"; +__c.LogImpl("385983246",_sb.ToString(),0); + } +}; + //BA.debugLineNum = 302;BA.debugLine="End Sub"; +return ""; +} +public byte _readbyte(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ +byte[] _data = null; + //BA.debugLineNum = 203;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte"; + //BA.debugLineNum = 204;BA.debugLine="Dim data(1) As Byte"; +_data = new byte[(int) (1)]; +; + //BA.debugLineNum = 205;BA.debugLine="In.ReadBytes(data, 0, 1)"; +_in.ReadBytes(_data,(int) (0),(int) (1)); + //BA.debugLineNum = 206;BA.debugLine="Return data(0)"; +if (true) return _data[(int) (0)]; + //BA.debugLineNum = 207;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 = 183;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data"; + //BA.debugLineNum = 184;BA.debugLine="Dim count = 0, read As Int"; +_count = (int) (0); +_read = 0; + //BA.debugLineNum = 185;BA.debugLine="Do While count < Len And read > -1"; +while (_count<_len && _read>-1) { + //BA.debugLineNum = 186;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)"; +_read = _in.ReadBytes(_data,_count,(int) (_len-_count)); + //BA.debugLineNum = 187;BA.debugLine="count = count + read"; +_count = (int) (_count+_read); + } +; + //BA.debugLineNum = 189;BA.debugLine="Return Data"; +if (true) return _data; + //BA.debugLineNum = 190;BA.debugLine="End Sub"; +return null; +} +public int _readint(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ +byte[] _data = null; + //BA.debugLineNum = 198;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int"; + //BA.debugLineNum = 199;BA.debugLine="Dim data(4) As Byte"; +_data = new byte[(int) (4)]; +; + //BA.debugLineNum = 200;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,"; +if (true) return _bc.IntsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]; + //BA.debugLineNum = 201;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 = 147;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec"; + //BA.debugLineNum = 148;BA.debugLine="Dim data(1) As Byte"; +_data = new byte[(int) (1)]; +; + //BA.debugLineNum = 149;BA.debugLine="In.ReadBytes(data, 0, 1)"; +_in.ReadBytes(_data,(int) (0),(int) (1)); + //BA.debugLineNum = 150;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 = 152;BA.debugLine="Return Null"; +if (true) return __c.Null; + break; } +case 1: { + //BA.debugLineNum = 154;BA.debugLine="Dim data(2) As Byte"; +_data = new byte[(int) (2)]; +; + //BA.debugLineNum = 155;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 = 157;BA.debugLine="Dim data(4) As Byte"; +_data = new byte[(int) (4)]; +; + //BA.debugLineNum = 158;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 = 160;BA.debugLine="Dim data(8) As Byte"; +_data = new byte[(int) (8)]; +; + //BA.debugLineNum = 161;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 = 163;BA.debugLine="Dim data(4) As Byte"; +_data = new byte[(int) (4)]; +; + //BA.debugLineNum = 164;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 = 166;BA.debugLine="Dim data(8) As Byte"; +_data = new byte[(int) (8)]; +; + //BA.debugLineNum = 167;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 = 169;BA.debugLine="Dim b As Byte = ReadByte(In)"; +_b = _readbyte(_in); + //BA.debugLineNum = 170;BA.debugLine="Return b = 1"; +if (true) return (Object)(_b==1); + break; } +case 7: { + //BA.debugLineNum = 172;BA.debugLine="Dim len As Int = ReadInt(In)"; +_len = _readint(_in); + //BA.debugLineNum = 173;BA.debugLine="Dim data(len) As Byte"; +_data = new byte[_len]; +; + //BA.debugLineNum = 174;BA.debugLine="Return ReadBytesFully(In, data, data.Length)"; +if (true) return (Object)(_readbytesfully(_in,_data,_data.length)); + break; } +default: { + //BA.debugLineNum = 176;BA.debugLine="Dim len As Int = ReadInt(In)"; +_len = _readint(_in); + //BA.debugLineNum = 177;BA.debugLine="Dim data(len) As Byte"; +_data = new byte[_len]; +; + //BA.debugLineNum = 178;BA.debugLine="ReadBytesFully(In, data, data.Length)"; +_readbytesfully(_in,_data,_data.length); + //BA.debugLineNum = 179;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF"; +if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8")); + break; } +} +; + //BA.debugLineNum = 181;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.collections.Map _requesttimes(String _tag) throws Exception{ +anywheresoftware.b4a.objects.collections.Map _times = null; +String _requesttime = ""; +String _jobdonetime = ""; + //BA.debugLineNum = 304;BA.debugLine="Sub requestTimes(tag As String) As Map 'ignore"; + //BA.debugLineNum = 305;BA.debugLine="Private times As Map"; +_times = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 306;BA.debugLine="times.Initialize"; +_times.Initialize(); + //BA.debugLineNum = 309;BA.debugLine="If reqsList.IsInitialized Then"; +if (_reqslist.IsInitialized()) { + //BA.debugLineNum = 312;BA.debugLine="If inicioRequestMap.ContainsKey(tag) Then"; +if (_iniciorequestmap.ContainsKey((Object)(_tag))) { + //BA.debugLineNum = 313;BA.debugLine="inicioRequest = inicioRequestMap.Get(tag)"; +_iniciorequest = BA.ObjectToLongNumber(_iniciorequestmap.Get((Object)(_tag))); + }; + //BA.debugLineNum = 316;BA.debugLine="If inicioJobDoneMap.ContainsKey(tag) Then"; +if (_iniciojobdonemap.ContainsKey((Object)(_tag))) { + //BA.debugLineNum = 317;BA.debugLine="inicioJobDone = inicioJobDoneMap.Get(tag)"; +_iniciojobdone = BA.ObjectToLongNumber(_iniciojobdonemap.Get((Object)(_tag))); + }; + }; + //BA.debugLineNum = 322;BA.debugLine="Private requestTime As String = NumberFormat2(((i"; +_requesttime = __c.NumberFormat2(((_iniciojobdone-_iniciorequest)/(double)1000),(int) (1),(int) (5),(int) (0),__c.False); + //BA.debugLineNum = 323;BA.debugLine="Private JobDoneTime As String = NumberFormat2(((D"; +_jobdonetime = __c.NumberFormat2(((__c.DateTime.getNow()-_iniciojobdone)/(double)1000),(int) (1),(int) (5),(int) (0),__c.False); + //BA.debugLineNum = 324;BA.debugLine="times.Put(\"requestTime\", requestTime)"; +_times.Put((Object)("requestTime"),(Object)(_requesttime)); + //BA.debugLineNum = 325;BA.debugLine="times.Put(\"jobDoneTime\", JobDoneTime)"; +_times.Put((Object)("jobDoneTime"),(Object)(_jobdonetime)); + //BA.debugLineNum = 326;BA.debugLine="times.Put(\"totalTime\", NumberFormat2((JobDoneTime"; +_times.Put((Object)("totalTime"),(Object)(__c.NumberFormat2(((double)(Double.parseDouble(_jobdonetime))+(double)(Double.parseDouble(_requesttime))),(int) (1),(int) (5),(int) (0),__c.False))); + //BA.debugLineNum = 327;BA.debugLine="Return times"; +if (true) return _times; + //BA.debugLineNum = 328;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _startjob(gunav2.keymon.com.mx.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 = 84;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As"; + //BA.debugLineNum = 86;BA.debugLine="If reqsList.IsInitialized Then reqsList.Add(Tag)"; +if (_reqslist.IsInitialized()) { +_reqslist.Add(_tag);}; + //BA.debugLineNum = 87;BA.debugLine="If timesList.IsInitialized Then timesList.Add(Dat"; +if (_timeslist.IsInitialized()) { +_timeslist.Add((Object)(__c.DateTime.getNow()));}; + //BA.debugLineNum = 88;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)"; +_j._initialize /*String*/ (ba,"DBRequest",_mtarget); + //BA.debugLineNum = 89;BA.debugLine="j.Tag = Tag"; +_j._tag /*Object*/ = _tag; + //BA.debugLineNum = 90;BA.debugLine="MemoryStream.InitializeToBytesArray(0)"; +_memorystream.InitializeToBytesArray((int) (0)); + //BA.debugLineNum = 91;BA.debugLine="Dim compress As CompressedStreams"; +_compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); + //BA.debugLineNum = 92;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 = 93;BA.debugLine="WriteObject(VERSION, out)"; +_writeobject((Object)(_version),_out); + //BA.debugLineNum = 94;BA.debugLine="Return out"; +if (true) return _out; + //BA.debugLineNum = 95;BA.debugLine="End Sub"; +return null; +} +public String _trackinit() throws Exception{ + //BA.debugLineNum = 331;BA.debugLine="Sub trackInit 'ignore"; + //BA.debugLineNum = 332;BA.debugLine="Log(\">>>>>>>>> TRACKINIT \")"; +__c.LogImpl("386114305",">>>>>>>>> TRACKINIT ",0); + //BA.debugLineNum = 333;BA.debugLine="reqsList.Initialize"; +_reqslist.Initialize(); + //BA.debugLineNum = 334;BA.debugLine="timesList.Initialize"; +_timeslist.Initialize(); + //BA.debugLineNum = 335;BA.debugLine="inicioRequestMap.Initialize"; +_iniciorequestmap.Initialize(); + //BA.debugLineNum = 336;BA.debugLine="inicioJobDoneMap.Initialize"; +_iniciojobdonemap.Initialize(); + //BA.debugLineNum = 337;BA.debugLine="End Sub"; +return ""; +} +public String _tracknext(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +String _quitamos = ""; +int _pos = 0; + //BA.debugLineNum = 339;BA.debugLine="Sub trackNext(job As HttpJob)"; + //BA.debugLineNum = 340;BA.debugLine="If reqsList.IsInitialized Then 'Si tenemos lista"; +if (_reqslist.IsInitialized()) { + //BA.debugLineNum = 341;BA.debugLine="Private quitamos As String = \"\""; +_quitamos = ""; + //BA.debugLineNum = 342;BA.debugLine="If reqsList.IndexOf(job.tag) <> -1 Then"; +if (_reqslist.IndexOf(_job._tag /*Object*/ )!=-1) { + //BA.debugLineNum = 343;BA.debugLine="Private pos As Int = reqsList.IndexOf(job.tag)"; +_pos = _reqslist.IndexOf(_job._tag /*Object*/ ); + //BA.debugLineNum = 344;BA.debugLine="If pos <> -1 Then"; +if (_pos!=-1) { + //BA.debugLineNum = 345;BA.debugLine="inicioRequestMap.Put(job.Tag, timesList.Get(po"; +_iniciorequestmap.Put(_job._tag /*Object*/ ,_timeslist.Get(_pos)); + //BA.debugLineNum = 346;BA.debugLine="reqsList.RemoveAt(pos)"; +_reqslist.RemoveAt(_pos); + //BA.debugLineNum = 347;BA.debugLine="timesList.RemoveAt(pos)"; +_timeslist.RemoveAt(_pos); + }; + //BA.debugLineNum = 349;BA.debugLine="quitamos = $\"Quitamos ${job.tag} - \"$"; +_quitamos = ("Quitamos "+__c.SmartStringFormatter("",_job._tag /*Object*/ )+" - "); + }; + //BA.debugLineNum = 351;BA.debugLine="LogColor(\">>>>>> Requests: \" & reqsList.Size & \""; +__c.LogImpl("386179852",">>>>>> Requests: "+BA.NumberToString(_reqslist.getSize())+" - "+_quitamos+BA.ObjectToString(_reqslist),__c.Colors.Blue); + //BA.debugLineNum = 352;BA.debugLine="LogColor(\">>>>>> inicioRequestMap:\" & inicioRequ"; +__c.LogImpl("386179853",">>>>>> inicioRequestMap:"+BA.NumberToString(_iniciorequestmap.getSize())+" - "+BA.ObjectToString(_iniciorequestmap),__c.Colors.Magenta); + }; + //BA.debugLineNum = 354;BA.debugLine="End Sub"; +return ""; +} +public String _writeint(int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ +byte[] _data = null; + //BA.debugLineNum = 192;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream"; + //BA.debugLineNum = 193;BA.debugLine="Dim data() As Byte"; +_data = new byte[(int) (0)]; +; + //BA.debugLineNum = 194;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))"; +_data = _bc.IntsToBytes(new int[]{_i}); + //BA.debugLineNum = 195;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; +_out.WriteBytes(_data,(int) (0),_data.length); + //BA.debugLineNum = 196;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 = 97;BA.debugLine="Private Sub WriteList(Parameters As List, out As O"; + //BA.debugLineNum = 98;BA.debugLine="Dim data() As Byte"; +_data = new byte[(int) (0)]; +; + //BA.debugLineNum = 99;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized"; +if (_parameters== null || _parameters.IsInitialized()==__c.False) { + //BA.debugLineNum = 100;BA.debugLine="Dim Parameters As List"; +_parameters = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 101;BA.debugLine="Parameters.Initialize"; +_parameters.Initialize(); + }; + //BA.debugLineNum = 103;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz"; +_data = _bc.IntsToBytes(new int[]{_parameters.getSize()}); + //BA.debugLineNum = 104;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; +_out.WriteBytes(_data,(int) (0),_data.length); + //BA.debugLineNum = 105;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 = 106;BA.debugLine="WriteObject(o, out)"; +_writeobject(_o,_out); + } +}; + //BA.debugLineNum = 108;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 = 110;BA.debugLine="Private Sub WriteObject(o As Object, out As Output"; + //BA.debugLineNum = 111;BA.debugLine="Dim data() As Byte"; +_data = new byte[(int) (0)]; +; + //BA.debugLineNum = 112;BA.debugLine="tempArray(0) = o"; +_temparray[(int) (0)] = _o; + //BA.debugLineNum = 113;BA.debugLine="If tempArray(0) = Null Then"; +if (_temparray[(int) (0)]== null) { + //BA.debugLineNum = 114;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 = 116;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)"; +_out.WriteBytes(new byte[]{_t_short},(int) (0),(int) (1)); + //BA.debugLineNum = 117;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 = 119;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)"; +_out.WriteBytes(new byte[]{_t_int},(int) (0),(int) (1)); + //BA.debugLineNum = 120;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 = 122;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)"; +_out.WriteBytes(new byte[]{_t_float},(int) (0),(int) (1)); + //BA.debugLineNum = 123;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 = 125;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)"; +_out.WriteBytes(new byte[]{_t_double},(int) (0),(int) (1)); + //BA.debugLineNum = 126;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 = 128;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)"; +_out.WriteBytes(new byte[]{_t_long},(int) (0),(int) (1)); + //BA.debugLineNum = 129;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 = 131;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)"; +_out.WriteBytes(new byte[]{_t_boolean},(int) (0),(int) (1)); + //BA.debugLineNum = 132;BA.debugLine="Dim b As Boolean = 0"; +_b = BA.ObjectToBoolean(0); + //BA.debugLineNum = 133;BA.debugLine="Dim data(1) As Byte"; +_data = new byte[(int) (1)]; +; + //BA.debugLineNum = 134;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 = 136;BA.debugLine="data = o"; +_data = (byte[])(_o); + //BA.debugLineNum = 137;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)"; +_out.WriteBytes(new byte[]{_t_blob},(int) (0),(int) (1)); + //BA.debugLineNum = 138;BA.debugLine="WriteInt(data.Length, out)"; +_writeint(_data.length,_out); + }else { + //BA.debugLineNum = 140;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)"; +_out.WriteBytes(new byte[]{_t_string},(int) (0),(int) (1)); + //BA.debugLineNum = 141;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")"; +_data = _bc.StringToBytes(BA.ObjectToString(_o),"UTF8"); + //BA.debugLineNum = 142;BA.debugLine="WriteInt(data.Length, out)"; +_writeint(_data.length,_out); + }; + //BA.debugLineNum = 144;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 = 145;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/gunav2/keymon/com/mx/designerscripts/LS_celltitle.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_celltitle.java new file mode 100644 index 0000000..257304d --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_celltitle.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_celltitle{ + +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 = 1;BA.debugLine="lblTitle.HorizontalCenter = 50%x"[celltitle/General script] +views.get("lbltitle").vw.setLeft((int)((50d / 100 * width) - (views.get("lbltitle").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_cliente.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_cliente.java new file mode 100644 index 0000000..4dd6377 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_cliente.java @@ -0,0 +1,64 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_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 'uncomment to scale all views based on the device physical size."[cliente/General script] +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); +//BA.debugLineNum = 3;BA.debugLine="imgPlanLealtad.HorizontalCenter = 50%x"[cliente/General script] +views.get("imgplanlealtad").vw.setLeft((int)((50d / 100 * width) - (views.get("imgplanlealtad").vw.getWidth() / 2))); +//BA.debugLineNum = 4;BA.debugLine="HIST.HorizontalCenter = 50%x"[cliente/General script] +views.get("hist").vw.setLeft((int)((50d / 100 * width) - (views.get("hist").vw.getWidth() / 2))); +//BA.debugLineNum = 9;BA.debugLine="Label1.HorizontalCenter = 20%x"[cliente/General script] +views.get("label1").vw.setLeft((int)((20d / 100 * width) - (views.get("label1").vw.getWidth() / 2))); +//BA.debugLineNum = 10;BA.debugLine="Label2.HorizontalCenter = 20%x"[cliente/General script] +views.get("label2").vw.setLeft((int)((20d / 100 * width) - (views.get("label2").vw.getWidth() / 2))); +//BA.debugLineNum = 11;BA.debugLine="Label3.HorizontalCenter = 20%x"[cliente/General script] +views.get("label3").vw.setLeft((int)((20d / 100 * width) - (views.get("label3").vw.getWidth() / 2))); +//BA.debugLineNum = 12;BA.debugLine="Label6.HorizontalCenter = 20%x"[cliente/General script] +views.get("label6").vw.setLeft((int)((20d / 100 * width) - (views.get("label6").vw.getWidth() / 2))); +//BA.debugLineNum = 13;BA.debugLine="Label18.HorizontalCenter = 20%x"[cliente/General script] +views.get("label18").vw.setLeft((int)((20d / 100 * width) - (views.get("label18").vw.getWidth() / 2))); +//BA.debugLineNum = 16;BA.debugLine="Label9.HorizontalCenter = 20%x"[cliente/General script] +views.get("label9").vw.setLeft((int)((20d / 100 * width) - (views.get("label9").vw.getWidth() / 2))); +//BA.debugLineNum = 17;BA.debugLine="Label17.HorizontalCenter = 20%x"[cliente/General script] +views.get("label17").vw.setLeft((int)((20d / 100 * width) - (views.get("label17").vw.getWidth() / 2))); +//BA.debugLineNum = 18;BA.debugLine="la_cuenta.HorizontalCenter = 60%x"[cliente/General script] +views.get("la_cuenta").vw.setLeft((int)((60d / 100 * width) - (views.get("la_cuenta").vw.getWidth() / 2))); +//BA.debugLineNum = 19;BA.debugLine="La_nombre.HorizontalCenter = 60%x"[cliente/General script] +views.get("la_nombre").vw.setLeft((int)((60d / 100 * width) - (views.get("la_nombre").vw.getWidth() / 2))); +//BA.debugLineNum = 20;BA.debugLine="la_Calle.HorizontalCenter = 60%x"[cliente/General script] +views.get("la_calle").vw.setLeft((int)((60d / 100 * width) - (views.get("la_calle").vw.getWidth() / 2))); +//BA.debugLineNum = 21;BA.debugLine="la_col.HorizontalCenter = 60%x"[cliente/General script] +views.get("la_col").vw.setLeft((int)((60d / 100 * width) - (views.get("la_col").vw.getWidth() / 2))); +//BA.debugLineNum = 22;BA.debugLine="l_entre1.HorizontalCenter = 60%x"[cliente/General script] +views.get("l_entre1").vw.setLeft((int)((60d / 100 * width) - (views.get("l_entre1").vw.getWidth() / 2))); +//BA.debugLineNum = 23;BA.debugLine="l_entre2.HorizontalCenter = 60%x"[cliente/General script] +views.get("l_entre2").vw.setLeft((int)((60d / 100 * width) - (views.get("l_entre2").vw.getWidth() / 2))); +//BA.debugLineNum = 24;BA.debugLine="l_atiende.HorizontalCenter = 60%x"[cliente/General script] +views.get("l_atiende").vw.setLeft((int)((60d / 100 * width) - (views.get("l_atiende").vw.getWidth() / 2))); +//BA.debugLineNum = 25;BA.debugLine="Label19.HorizontalCenter = 60%x"[cliente/General script] +views.get("label19").vw.setLeft((int)((60d / 100 * width) - (views.get("label19").vw.getWidth() / 2))); +//BA.debugLineNum = 28;BA.debugLine="ImageView4.HorizontalCenter = 85%X"[cliente/General script] +views.get("imageview4").vw.setLeft((int)((85d / 100 * width) - (views.get("imageview4").vw.getWidth() / 2))); +//BA.debugLineNum = 29;BA.debugLine="Guardar.HorizontalCenter = 78%X"[cliente/General script] +views.get("guardar").vw.setLeft((int)((78d / 100 * width) - (views.get("guardar").vw.getWidth() / 2))); +//BA.debugLineNum = 30;BA.debugLine="Tels.HorizontalCenter = 78%X"[cliente/General script] +views.get("tels").vw.setLeft((int)((78d / 100 * width) - (views.get("tels").vw.getWidth() / 2))); +//BA.debugLineNum = 31;BA.debugLine="b_preventa2.HorizontalCenter = 78%X"[cliente/General script] +views.get("b_preventa2").vw.setLeft((int)((78d / 100 * width) - (views.get("b_preventa2").vw.getWidth() / 2))); +//BA.debugLineNum = 32;BA.debugLine="b_enviarTicket.HorizontalCenter = 78%X"[cliente/General script] +views.get("b_enviarticket").vw.setLeft((int)((78d / 100 * width) - (views.get("b_enviarticket").vw.getWidth() / 2))); +//BA.debugLineNum = 33;BA.debugLine="btnPlanLealtad.HorizontalCenter = 78%X"[cliente/General script] +views.get("btnplanlealtad").vw.setLeft((int)((78d / 100 * width) - (views.get("btnplanlealtad").vw.getWidth() / 2))); +//BA.debugLineNum = 34;BA.debugLine="b_foto.HorizontalCenter = 50%x"[cliente/General script] +views.get("b_foto").vw.setLeft((int)((50d / 100 * width) - (views.get("b_foto").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_clientes.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_clientes.java new file mode 100644 index 0000000..3b0f226 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_clientes.java @@ -0,0 +1,17 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); +views.get("listview1").vw.setLeft((int)(0d)); +views.get("listview1").vw.setWidth((int)((100d / 100 * width) - (0d))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_comis.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_comis.java new file mode 100644 index 0000000..b310f12 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_comis.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_comis{ + +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("panel_c").vw.setLeft((int)((50d / 100 * width) - (views.get("panel_c").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.java new file mode 100644 index 0000000..fd9daec --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_datoscliente.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_datoscliente{ + +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/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.java new file mode 100644 index 0000000..8d5028a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_detalle_promo.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.java new file mode 100644 index 0000000..cf8b8f2 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuessta_m3.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_encuessta_m3{ + +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/gunav2/keymon/com/mx/designerscripts/LS_encuesta.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta.java new file mode 100644 index 0000000..cb2aec8 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_encuesta{ + +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/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.java new file mode 100644 index 0000000..6ed59f0 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m4.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_encuesta_m4{ + +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/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.java new file mode 100644 index 0000000..e55d199 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta_m5.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_encuesta_m5{ + +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/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.java new file mode 100644 index 0000000..49035f1 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_encuesta_ped.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_encuesta_ped{ + +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/gunav2/keymon/com/mx/designerscripts/LS_errormanager.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_errormanager.java new file mode 100644 index 0000000..fc73d20 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_errormanager.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_errormanager{ + +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/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.java new file mode 100644 index 0000000..1417414 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_esncuesta_m2.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_esncuesta_m2{ + +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/gunav2/keymon/com/mx/designerscripts/LS_historicobat.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_historicobat.java new file mode 100644 index 0000000..476f0a7 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_historicobat.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_historicobat{ + +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/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.java new file mode 100644 index 0000000..9608f15 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_historicobat2.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_historicobat2{ + +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/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.java new file mode 100644 index 0000000..b37bacf --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_iniciofinventa.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_iniciofinventa{ + +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("p_transparenteiniciofin2").vw.setWidth((int)((50d / 100 * width))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_login.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_login.java new file mode 100644 index 0000000..39d1334 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_login.java @@ -0,0 +1,27 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); +views.get("imageview1").vw.setLeft((int)((50d / 100 * width) - (views.get("imageview1").vw.getWidth() / 2))); +views.get("i_engrane").vw.setLeft((int)((85d / 100 * width) - (views.get("i_engrane").vw.getWidth() / 2))); +views.get("panel1").vw.setLeft((int)((50d / 100 * width) - (views.get("panel1").vw.getWidth() / 2))); +views.get("panel1").vw.setTop((int)((38d / 100 * height) - (views.get("panel1").vw.getHeight() / 2))); +views.get("l_version").vw.setTop((int)((95d / 100 * height) - (views.get("l_version").vw.getHeight() / 2))); +views.get("label2").vw.setTop((int)((95d / 100 * height) - (views.get("label2").vw.getHeight() / 2))); +views.get("lv_server").vw.setLeft((int)((50d / 100 * width) - (views.get("lv_server").vw.getWidth() / 2))); +views.get("l_server").vw.setLeft((int)((50d / 100 * width) - (views.get("l_server").vw.getWidth() / 2))); +views.get("b_apk").vw.setLeft((int)((50d / 100 * width) - (views.get("b_apk").vw.getWidth() / 2))); +views.get("b_regesar").vw.setLeft((int)((50d / 100 * width) - (views.get("b_regesar").vw.getWidth() / 2))); +views.get("b_enviobd").vw.setLeft((int)((50d / 100 * width) - (views.get("b_enviobd").vw.getWidth() / 2))); +views.get("panel4").vw.setLeft((int)((50d / 100 * width) - (views.get("panel4").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_mainpage.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_mainpage.java new file mode 100644 index 0000000..1ae9b7e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_mainpage.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.java new file mode 100644 index 0000000..4858104 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_mapa_rutas.java @@ -0,0 +1,17 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); +views.get("mapfragment1").vw.setLeft((int)((50d / 100 * width) - (views.get("mapfragment1").vw.getWidth() / 2))); +views.get("panel1").vw.setLeft((int)((50d / 100 * width) - (views.get("panel1").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_maparutas.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_maparutas.java new file mode 100644 index 0000000..11e08e7 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_maparutas.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_maparutas{ + +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/gunav2/keymon/com/mx/designerscripts/LS_nota.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nota.java new file mode 100644 index 0000000..b95d0f8 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nota.java @@ -0,0 +1,20 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_nota{ + +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("p_nota").vw.setLeft((int)((50d / 100 * width) - (views.get("p_nota").vw.getWidth() / 2))); +views.get("p_nota").vw.setTop((int)((45d / 100 * height) - (views.get("p_nota").vw.getHeight() / 2))); +views.get("panel1").vw.setTop((int)((85d / 100 * height) - (views.get("panel1").vw.getHeight() / 2))); +views.get("panel2").vw.setTop((int)((77d / 100 * height) - (views.get("panel2").vw.getHeight() / 2))); +views.get("panel3").vw.setTop((int)((69d / 100 * height) - (views.get("panel3").vw.getHeight() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nota2.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nota2.java new file mode 100644 index 0000000..daaef7a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nota2.java @@ -0,0 +1,19 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_nota2{ + +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("p_nota").vw.setLeft((int)((50d / 100 * width) - (views.get("p_nota").vw.getWidth() / 2))); +views.get("p_nota").vw.setTop((int)((50d / 100 * height) - (views.get("p_nota").vw.getHeight() / 2))); +views.get("panel1").vw.setTop((int)((85d / 100 * height) - (views.get("panel1").vw.getHeight() / 2))); +views.get("panel2").vw.setTop((int)((77d / 100 * height) - (views.get("panel2").vw.getHeight() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_noventa.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_noventa.java new file mode 100644 index 0000000..497a9f5 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_noventa.java @@ -0,0 +1,19 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_noventa{ + +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("p_noventa").vw.setLeft((int)((50d / 100 * width) - (views.get("p_noventa").vw.getWidth() / 2))); +views.get("panel1").vw.setLeft((int)((50d / 100 * width) - (views.get("panel1").vw.getWidth() / 2))); +views.get("panel1").vw.setTop((int)((50d / 100 * height) - (views.get("panel1").vw.getHeight() / 2))); +views.get("p_noventa").vw.setTop((int)((40d / 100 * height) - (views.get("p_noventa").vw.getHeight() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.java new file mode 100644 index 0000000..50390d3 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_nuevocliente.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_nuevocliente{ + +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("cb_giro").vw.setLeft((int)((50d / 100 * width) - (views.get("cb_giro").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.java new file mode 100644 index 0000000..18e7d18 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_pclvseekbar.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_pclvseekbar{ + +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"[pclvseekbar/General script] +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_pedido.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_pedido.java new file mode 100644 index 0000000..21b6247 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_pedido.java @@ -0,0 +1,18 @@ +package gunav2.keymon.com.mx.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); +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/gunav2/keymon/com/mx/designerscripts/LS_principal.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_principal.java new file mode 100644 index 0000000..2a03dee --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_principal.java @@ -0,0 +1,30 @@ +package gunav2.keymon.com.mx.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))); +views.get("img2").vw.setTop((int)(0d)); +views.get("img2").vw.setHeight((int)((100d / 100 * height) - (0d))); +views.get("img3").vw.setLeft((int)(0d)); +views.get("img3").vw.setWidth((int)((100d / 100 * width) - (0d))); +views.get("img3").vw.setTop((int)(0d)); +views.get("img3").vw.setHeight((int)((100d / 100 * height) - (0d))); +views.get("p_marcasres").vw.setLeft((int)((50d / 100 * width) - (views.get("p_marcasres").vw.getWidth() / 2))); +views.get("p_marcasres").vw.setTop((int)((40d / 100 * height) - (views.get("p_marcasres").vw.getHeight() / 2))); +views.get("b_hacerpedido").vw.setLeft((int)((76d / 100 * width) - (views.get("b_hacerpedido").vw.getWidth() / 2))); +views.get("subir").vw.setLeft((int)((76d / 100 * width) - (views.get("subir").vw.getWidth() / 2))); +views.get("p_sombra3").vw.setLeft((int)((76.5d / 100 * width) - (views.get("p_sombra3").vw.getWidth() / 2))); +views.get("b_ubicar").vw.setLeft((int)((76d / 100 * width) - (views.get("b_ubicar").vw.getWidth() / 2))); +views.get("p_sombra4").vw.setLeft((int)((76.5d / 100 * width) - (views.get("p_sombra4").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem.java new file mode 100644 index 0000000..2806c77 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/designerscripts/LS_proditem1.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem1.java new file mode 100644 index 0000000..170936a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem1.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_proditem1{ + +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/gunav2/keymon/com/mx/designerscripts/LS_proditem2.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem2.java new file mode 100644 index 0000000..da2c55f --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_proditem2.java @@ -0,0 +1,15 @@ +package gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/designerscripts/LS_productos.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_productos.java new file mode 100644 index 0000000..7b25294 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_productos.java @@ -0,0 +1,17 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); +views.get("lv_catalogos").vw.setLeft((int)(0d)); +views.get("lv_catalogos").vw.setWidth((int)((100d / 100 * width) - (0d))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_productos_.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_productos_.java new file mode 100644 index 0000000..6653cd1 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_productos_.java @@ -0,0 +1,21 @@ +package gunav2.keymon.com.mx.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); +anywheresoftware.b4a.keywords.LayoutBuilder.scaleAll(views); +views.get("p_calatolos").vw.setLeft((int)(0d)); +views.get("p_calatolos").vw.setWidth((int)((100d / 100 * width) - (0d))); +views.get("panel2").vw.setLeft((int)(0d)); +views.get("panel2").vw.setWidth((int)((100d / 100 * width) - (0d))); +views.get("lv_catalogos").vw.setLeft((int)(0d)); +views.get("lv_catalogos").vw.setWidth((int)((100d / 100 * width) - (0d))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_promociones.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_promociones.java new file mode 100644 index 0000000..1528c5e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_promociones.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_promociones{ + +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("p_promociones").vw.setLeft((int)((50d / 100 * width) - (views.get("p_promociones").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_resdia.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_resdia.java new file mode 100644 index 0000000..a39d74d --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_resdia.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_resdia{ + +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("panel3").vw.setLeft((int)((50d / 100 * width) - (views.get("panel3").vw.getWidth() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.java new file mode 100644 index 0000000..54e7652 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_searchtemplate.java @@ -0,0 +1,16 @@ +package gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/designerscripts/LS_seleccion.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_seleccion.java new file mode 100644 index 0000000..03926de --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_seleccion.java @@ -0,0 +1,23 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_seleccion{ + +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))); +views.get("img2").vw.setTop((int)(0d)); +views.get("img2").vw.setHeight((int)((100d / 100 * height) - (0d))); +views.get("img3").vw.setLeft((int)(0d)); +views.get("img3").vw.setWidth((int)((100d / 100 * width) - (0d))); +views.get("img3").vw.setTop((int)(0d)); +views.get("img3").vw.setHeight((int)((100d / 100 * height) - (0d))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.java b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.java new file mode 100644 index 0000000..44bd7eb --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/designerscripts/LS_ticketsdia.java @@ -0,0 +1,19 @@ +package gunav2.keymon.com.mx.designerscripts; +import anywheresoftware.b4a.objects.TextViewWrapper; +import anywheresoftware.b4a.objects.ImageViewWrapper; +import anywheresoftware.b4a.BA; + + +public class LS_ticketsdia{ + +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("p_ticketsdia").vw.setLeft((int)((50d / 100 * width) - (views.get("p_ticketsdia").vw.getWidth() / 2))); +views.get("l_ventanoventa").vw.setLeft((int)((50d / 100 * width) - (views.get("l_ventanoventa").vw.getWidth() / 2))); +views.get("b_noventa").vw.setTop((int)((70d / 100 * height) - (views.get("b_noventa").vw.getHeight() / 2))); +views.get("p_ticketsdia").vw.setTop((int)((35d / 100 * height) - (views.get("p_ticketsdia").vw.getHeight() / 2))); + +} +} \ No newline at end of file diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/escposprinter.java b/B4A/Objects/src/gunav2/keymon/com/mx/escposprinter.java new file mode 100644 index 0000000..7579cdb --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/escposprinter.java @@ -0,0 +1,2039 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.escposprinter"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 = 1141;BA.debugLine="Private Sub AStream_Error"; + //BA.debugLineNum = 1142;BA.debugLine="If SubExists(CallBack, EventName & \"_Error\") Then"; +if (__c.SubExists(ba,_callback,_eventname+"_Error")) { + //BA.debugLineNum = 1143;BA.debugLine="CallSub(CallBack, EventName & \"_Error\")"; +__c.CallSubNew(ba,_callback,_eventname+"_Error"); + }; + //BA.debugLineNum = 1145;BA.debugLine="End Sub"; +return ""; +} +public String _astream_newdata(byte[] _buffer) throws Exception{ + //BA.debugLineNum = 1134;BA.debugLine="Private Sub AStream_NewData (Buffer() As Byte)"; + //BA.debugLineNum = 1135;BA.debugLine="If SubExists(CallBack, EventName & \"_NewData\") Th"; +if (__c.SubExists(ba,_callback,_eventname+"_NewData")) { + //BA.debugLineNum = 1136;BA.debugLine="CallSub2(CallBack, EventName & \"_NewData\", Buffe"; +__c.CallSubNew2(ba,_callback,_eventname+"_NewData",(Object)(_buffer)); + }; + //BA.debugLineNum = 1138;BA.debugLine="Log(\"Data \" & Buffer(0))"; +__c.LogImpl("389718788","Data "+BA.NumberToString(_buffer[(int) (0)]),0); + //BA.debugLineNum = 1139;BA.debugLine="End Sub"; +return ""; +} +public String _astream_terminated() throws Exception{ + //BA.debugLineNum = 1147;BA.debugLine="Private Sub AStream_Terminated"; + //BA.debugLineNum = 1148;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 1149;BA.debugLine="If SubExists(CallBack, EventName & \"_Terminated\")"; +if (__c.SubExists(ba,_callback,_eventname+"_Terminated")) { + //BA.debugLineNum = 1150;BA.debugLine="CallSub(CallBack, EventName & \"_Terminated\")"; +__c.CallSubNew(ba,_callback,_eventname+"_Terminated"); + }; + //BA.debugLineNum = 1152;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 4;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 11;BA.debugLine="Private Version As Double = 2.0 ' Printer class v"; +_version = 2.0; + //BA.debugLineNum = 13;BA.debugLine="Type AnImage(Width As Int, Height As Int, Data()"; +; + //BA.debugLineNum = 15;BA.debugLine="Private EventName As String 'ignore"; +_eventname = ""; + //BA.debugLineNum = 16;BA.debugLine="Private CallBack As Object 'ignore"; +_callback = new Object(); + //BA.debugLineNum = 18;BA.debugLine="Private Serial1 As Serial"; +_serial1 = new anywheresoftware.b4a.objects.Serial(); + //BA.debugLineNum = 19;BA.debugLine="Private Astream As AsyncStreams"; +_astream = new anywheresoftware.b4a.randomaccessfile.AsyncStreams(); + //BA.debugLineNum = 20;BA.debugLine="Private Connected As Boolean"; +_connected = false; + //BA.debugLineNum = 21;BA.debugLine="Private ConnectedError As String"; +_connectederror = ""; + //BA.debugLineNum = 23;BA.debugLine="Dim ESC As String = Chr(27)"; +_esc = BA.ObjectToString(__c.Chr((int) (27))); + //BA.debugLineNum = 24;BA.debugLine="Dim FS As String = Chr(28)"; +_fs = BA.ObjectToString(__c.Chr((int) (28))); + //BA.debugLineNum = 25;BA.debugLine="Dim GS As String = Chr(29)"; +_gs = BA.ObjectToString(__c.Chr((int) (29))); + //BA.debugLineNum = 28;BA.debugLine="Dim UNREVERSE As String = GS & \"B\" & Chr(0)"; +_unreverse = _gs+"B"+BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 29;BA.debugLine="Dim REVERSE As String = GS & \"B\" & Chr(1)"; +_reverse = _gs+"B"+BA.ObjectToString(__c.Chr((int) (1))); + //BA.debugLineNum = 32;BA.debugLine="Dim UNINVERT As String = ESC & \"{0\""; +_uninvert = _esc+"{0"; + //BA.debugLineNum = 33;BA.debugLine="Dim INVERT As String = ESC & \"{1\""; +_invert = _esc+"{1"; + //BA.debugLineNum = 36;BA.debugLine="Dim UNROTATE As String = ESC & \"V0\""; +_unrotate = _esc+"V0"; + //BA.debugLineNum = 37;BA.debugLine="Dim ROTATE As String = ESC & \"V1\""; +_rotate = _esc+"V1"; + //BA.debugLineNum = 40;BA.debugLine="Dim HT As String = Chr(9)"; +_ht = BA.ObjectToString(__c.Chr((int) (9))); + //BA.debugLineNum = 43;BA.debugLine="Dim ULINE0 As String = ESC & \"-0\""; +_uline0 = _esc+"-0"; + //BA.debugLineNum = 44;BA.debugLine="Dim ULINE1 As String = ESC & \"-1\""; +_uline1 = _esc+"-1"; + //BA.debugLineNum = 45;BA.debugLine="Dim ULINE2 As String = ESC & \"-2\""; +_uline2 = _esc+"-2"; + //BA.debugLineNum = 48;BA.debugLine="Dim BOLD As String = ESC & \"E1\""; +_bold = _esc+"E1"; + //BA.debugLineNum = 49;BA.debugLine="Dim NOBOLD As String = ESC & \"E0\""; +_nobold = _esc+"E0"; + //BA.debugLineNum = 52;BA.debugLine="Dim SINGLE As String = GS & \"!\" & Chr(0x00)"; +_single = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x00))); + //BA.debugLineNum = 53;BA.debugLine="Dim HIGH As String = GS & \"!\" & Chr(0x01)"; +_high = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x01))); + //BA.debugLineNum = 54;BA.debugLine="Dim WIDE As String = GS & \"!\" & Chr(0x10)"; +_wide = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x10))); + //BA.debugLineNum = 55;BA.debugLine="Dim HIGHWIDE As String = GS & \"!\" & Chr(0x11)"; +_highwide = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x11))); + //BA.debugLineNum = 58;BA.debugLine="Private LEFTJUSTIFY As String = ESC & \"a0\""; +_leftjustify = _esc+"a0"; + //BA.debugLineNum = 59;BA.debugLine="Private LINEDEFAULT As String = ESC & \"2\""; +_linedefault = _esc+"2"; + //BA.debugLineNum = 60;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 = 61;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 = 62;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 = 63;BA.debugLine="Private CHARSPACING0 As String = ESC & \" \" & Chr("; +_charspacing0 = _esc+" "+BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 64;BA.debugLine="Private CHARFONT0 As String = ESC & \"M\" & Chr(0)"; +_charfont0 = _esc+"M"+BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 65;BA.debugLine="Dim DEFAULTS As String = CHARSPACING0 & CHARFONT"; +_defaults = _charspacing0+_charfont0+_lmargin0+_width0+_linset0+_linedefault+_leftjustify+_uninvert+_unrotate+_unreverse+_nobold+_uline0; + //BA.debugLineNum = 68;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 = 100;BA.debugLine="Public Sub Connect As Boolean"; + //BA.debugLineNum = 104;BA.debugLine="Try"; +try { //BA.debugLineNum = 105;BA.debugLine="If Starter.MAC_IMPRESORA = \"0\" Then"; +if ((_starter._mac_impresora /*String*/ ).equals("0")) { + //BA.debugLineNum = 106;BA.debugLine="Dim PairedDevices As Map"; +_paireddevices = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 107;BA.debugLine="PairedDevices = Serial1.GetPairedDevices"; +_paireddevices = _serial1.GetPairedDevices(); + //BA.debugLineNum = 108;BA.debugLine="Dim l As List"; +_l = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 109;BA.debugLine="l.Initialize"; +_l.Initialize(); + //BA.debugLineNum = 110;BA.debugLine="Log(\"aqui 1\")"; +__c.LogImpl("386573066","aqui 1",0); + //BA.debugLineNum = 111;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; +{ +final int step8 = 1; +final int limit8 = (int) (_paireddevices.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit8 ;_i = _i + step8 ) { + //BA.debugLineNum = 112;BA.debugLine="l.Add(PairedDevices.GetKeyAt(i))"; +_l.Add(_paireddevices.GetKeyAt(_i)); + //BA.debugLineNum = 113;BA.debugLine="Log(\"aqui 2\")"; +__c.LogImpl("386573069","aqui 2",0); + //BA.debugLineNum = 114;BA.debugLine="DisConnect"; +_disconnect(); + } +}; + //BA.debugLineNum = 116;BA.debugLine="Dim Res As Int"; +_res = 0; + //BA.debugLineNum = 117;BA.debugLine="Res = InputList(l, \"Choose a printer\", -1) 'sho"; +_res = __c.InputList(_l,BA.ObjectToCharSequence("Choose a printer"),(int) (-1),getActivityBA()); + //BA.debugLineNum = 118;BA.debugLine="If Res <> DialogResponse.CANCEL Then"; +if (_res!=__c.DialogResponse.CANCEL) { + //BA.debugLineNum = 119;BA.debugLine="Serial1.Connect(PairedDevices.Get(l.Get(Res)))"; +_serial1.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l.Get(_res)))); + //BA.debugLineNum = 121;BA.debugLine="Starter.mac_impresora = PairedDevices.Get(l.Ge"; +_starter._mac_impresora /*String*/ = BA.ObjectToString(_paireddevices.Get(_l.Get(_res))); + //BA.debugLineNum = 122;BA.debugLine="Return True"; +if (true) return __c.True; + //BA.debugLineNum = 123;BA.debugLine="DisConnect"; +_disconnect(); + //BA.debugLineNum = 124;BA.debugLine="Log(\"aqui 3\")"; +__c.LogImpl("386573080","aqui 3",0); + }; + //BA.debugLineNum = 126;BA.debugLine="Log(\"aqui 4\")"; +__c.LogImpl("386573082","aqui 4",0); + //BA.debugLineNum = 127;BA.debugLine="Return False"; +if (true) return __c.False; + }else { + //BA.debugLineNum = 129;BA.debugLine="Serial1.Connect(Starter.mac_impresora)"; +_serial1.Connect(ba,_starter._mac_impresora /*String*/ ); + //BA.debugLineNum = 131;BA.debugLine="Return True"; +if (true) return __c.True; + //BA.debugLineNum = 132;BA.debugLine="DisConnect"; +_disconnect(); + //BA.debugLineNum = 133;BA.debugLine="Log(\"aqui 5\")"; +__c.LogImpl("386573089","aqui 5",0); + }; + } + catch (Exception e31) { + ba.setLastException(e31); //BA.debugLineNum = 136;BA.debugLine="Log(LastException)"; +__c.LogImpl("386573092",BA.ObjectToString(__c.LastException(getActivityBA())),0); + //BA.debugLineNum = 137;BA.debugLine="Return False"; +if (true) return __c.False; + }; + //BA.debugLineNum = 139;BA.debugLine="End Sub"; +return false; +} +public String _connectederrormsg() throws Exception{ + //BA.debugLineNum = 84;BA.debugLine="Public Sub ConnectedErrorMsg As String"; + //BA.debugLineNum = 85;BA.debugLine="Return ConnectedError"; +if (true) return _connectederror; + //BA.debugLineNum = 86;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 = 520;BA.debugLine="Public Sub CreateBox(x0 As Int, y0 As Int, x1 As I"; + //BA.debugLineNum = 521;BA.debugLine="Dim box As Int = 0x10000000"; +_box = ((int)0x10000000); + //BA.debugLineNum = 522;BA.debugLine="If fill Then box = box + 0x80000000"; +if (_fill) { +_box = (int) (_box+((int)0x80000000));}; + //BA.debugLineNum = 523;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 = 524;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 = 525;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 = 526;BA.debugLine="box = box + Bit.And(0x1f,y1)"; +_box = (int) (_box+__c.Bit.And(((int)0x1f),_y1)); + //BA.debugLineNum = 527;BA.debugLine="Return box"; +if (true) return _box; + //BA.debugLineNum = 528;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 = 490;BA.debugLine="Public Sub CreateCircle(radius As Int, quadrants A"; + //BA.debugLineNum = 491;BA.debugLine="Dim circle As Int = 0x20000000"; +_circle = ((int)0x20000000); + //BA.debugLineNum = 492;BA.debugLine="If fill Then circle = circle + 0x80000000"; +if (_fill) { +_circle = (int) (_circle+((int)0x80000000));}; + //BA.debugLineNum = 493;BA.debugLine="circle = circle + Bit.ShiftLeft(radius, 24)"; +_circle = (int) (_circle+__c.Bit.ShiftLeft(_radius,(int) (24))); + //BA.debugLineNum = 494;BA.debugLine="circle = circle + Bit.ShiftLeft(quadrants, 16)"; +_circle = (int) (_circle+__c.Bit.ShiftLeft(_quadrants,(int) (16))); + //BA.debugLineNum = 495;BA.debugLine="circle = circle + Bit.ShiftLeft(x1, 8)"; +_circle = (int) (_circle+__c.Bit.ShiftLeft(_x1,(int) (8))); + //BA.debugLineNum = 496;BA.debugLine="circle = circle + y1"; +_circle = (int) (_circle+_y1); + //BA.debugLineNum = 497;BA.debugLine="Return circle"; +if (true) return _circle; + //BA.debugLineNum = 498;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 = 404;BA.debugLine="Public Sub CreateCustomCharacter(shapes() As Int,"; + //BA.debugLineNum = 405;BA.debugLine="Dim masks(8) As Byte"; +_masks = new byte[(int) (8)]; +; + //BA.debugLineNum = 406;BA.debugLine="masks(0) = 0x80"; +_masks[(int) (0)] = (byte) (((int)0x80)); + //BA.debugLineNum = 407;BA.debugLine="masks(1) = 0x40"; +_masks[(int) (1)] = (byte) (((int)0x40)); + //BA.debugLineNum = 408;BA.debugLine="masks(2) = 0x20"; +_masks[(int) (2)] = (byte) (((int)0x20)); + //BA.debugLineNum = 409;BA.debugLine="masks(3) = 0x10"; +_masks[(int) (3)] = (byte) (((int)0x10)); + //BA.debugLineNum = 410;BA.debugLine="masks(4) = 0x08"; +_masks[(int) (4)] = (byte) (((int)0x08)); + //BA.debugLineNum = 411;BA.debugLine="masks(5) = 0x04"; +_masks[(int) (5)] = (byte) (((int)0x04)); + //BA.debugLineNum = 412;BA.debugLine="masks(6) = 0x02"; +_masks[(int) (6)] = (byte) (((int)0x02)); + //BA.debugLineNum = 413;BA.debugLine="masks(7) = 0x01"; +_masks[(int) (7)] = (byte) (((int)0x01)); + //BA.debugLineNum = 416;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 = 418;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 = 419;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 = 420;BA.debugLine="points(x,y) = 0"; +_points[_x][_y] = (byte) (0); + } +}; + } +}; + //BA.debugLineNum = 423;BA.debugLine="Dim size As Int = 12"; +_size = (int) (12); + //BA.debugLineNum = 424;BA.debugLine="If characterfont = 1 Then size = 9"; +if (_characterfont==1) { +_size = (int) (9);}; + //BA.debugLineNum = 425;BA.debugLine="Dim charbyes(size * 3) As Byte"; +_charbyes = new byte[(int) (_size*3)]; +; + //BA.debugLineNum = 426;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 = 427;BA.debugLine="charbyes(c) = 0"; +_charbyes[_c] = (byte) (0); + } +}; + //BA.debugLineNum = 430;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 = 431;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 = 432;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 = 433;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 = 434;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 = 435;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 = 436;BA.debugLine="Dim y1 As Int = Bit.And(0x0000001f, shapes(i))"; +_y1 = __c.Bit.And(((int)0x0000001f),_shapes[_i]); + //BA.debugLineNum = 437;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 = 438;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 = 444;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 = 445;BA.debugLine="If shape = 3 Then"; +if (_shape==3) { + //BA.debugLineNum = 446;BA.debugLine="Log(\"Triangle \" & logmsg)"; +__c.LogImpl("387883818","Triangle "+_logmsg,0); + //BA.debugLineNum = 447;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 = 449;BA.debugLine="Log(\"Circle \" & logmsg)"; +__c.LogImpl("387883821","Circle "+_logmsg,0); + //BA.debugLineNum = 450;BA.debugLine="PlotCircle(x0, y0, x1, y1, points, fill)"; +_plotcircle(_x0,_y0,_x1,_y1,_points,_fill); + }else if(_shape==1) { + //BA.debugLineNum = 452;BA.debugLine="Log(\"Box \" & logmsg)"; +__c.LogImpl("387883824","Box "+_logmsg,0); + //BA.debugLineNum = 453;BA.debugLine="PlotBox(x0, y0, x1, y1, points, fill)"; +_plotbox(_x0,_y0,_x1,_y1,_points,_fill); + }else { + //BA.debugLineNum = 455;BA.debugLine="Log(\"Line \" & logmsg)"; +__c.LogImpl("387883827","Line "+_logmsg,0); + //BA.debugLineNum = 456;BA.debugLine="PlotLine(x0, y0, x1, y1, points)"; +_plotline(_x0,_y0,_x1,_y1,_points); + }; + //BA.debugLineNum = 459;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 = 460;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 = 461;BA.debugLine="Dim bits As Byte = 0"; +_bits = (byte) (0); + //BA.debugLineNum = 462;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 = 463;BA.debugLine="If points(x, y*8+b) <> 0 Then"; +if (_points[_x][(int) (_y*8+_b)]!=0) { + //BA.debugLineNum = 464;BA.debugLine="bits = Bit.Or(bits, masks(b))"; +_bits = (byte) (__c.Bit.Or((int) (_bits),(int) (_masks[_b]))); + }; + } +}; + //BA.debugLineNum = 467;BA.debugLine="charbyes(x*3+y) = bits"; +_charbyes[(int) (_x*3+_y)] = _bits; + } +}; + } +}; + } +}; + //BA.debugLineNum = 471;BA.debugLine="Return charbyes"; +if (true) return _charbyes; + //BA.debugLineNum = 472;BA.debugLine="End Sub"; +return null; +} +public int _createline(int _x0,int _y0,int _x1,int _y1) throws Exception{ +int _line = 0; + //BA.debugLineNum = 477;BA.debugLine="Public Sub CreateLine(x0 As Int, y0 As Int, x1 As"; + //BA.debugLineNum = 478;BA.debugLine="Dim line As Int = 0"; +_line = (int) (0); + //BA.debugLineNum = 479;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 = 480;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 = 481;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 = 482;BA.debugLine="line = line + Bit.And(0x1f,y1)"; +_line = (int) (_line+__c.Bit.And(((int)0x1f),_y1)); + //BA.debugLineNum = 483;BA.debugLine="Return line"; +if (true) return _line; + //BA.debugLineNum = 484;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 = 504;BA.debugLine="Public Sub CreateTriangle(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 505;BA.debugLine="Dim triangle As Int = 0x30000000"; +_triangle = ((int)0x30000000); + //BA.debugLineNum = 506;BA.debugLine="If fill Then triangle = triangle + 0x80000000"; +if (_fill) { +_triangle = (int) (_triangle+((int)0x80000000));}; + //BA.debugLineNum = 507;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 = 508;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 = 509;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 = 510;BA.debugLine="triangle = triangle + Bit.And(0x1f,y1)"; +_triangle = (int) (_triangle+__c.Bit.And(((int)0x1f),_y1)); + //BA.debugLineNum = 511;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 = 512;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 = 513;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 = 514;BA.debugLine="Return triangle"; +if (true) return _triangle; + //BA.debugLineNum = 515;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 = 352;BA.debugLine="Public Sub DefineCustomCharacter(charcode As Int,"; + //BA.debugLineNum = 353;BA.debugLine="Dim excess As Int = bitdata.Length Mod 3"; +_excess = (int) (_bitdata.length%3); + //BA.debugLineNum = 354;BA.debugLine="If excess <> 0 Then Return -1"; +if (_excess!=0) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 355;BA.debugLine="Dim size As Int = bitdata.Length / 3"; +_size = (int) (_bitdata.length/(double)3); + //BA.debugLineNum = 356;BA.debugLine="WriteString(ESC & \"&\")"; +_writestring(_esc+"&"); + //BA.debugLineNum = 357;BA.debugLine="Dim params(4) As Byte"; +_params = new byte[(int) (4)]; +; + //BA.debugLineNum = 358;BA.debugLine="params(0) = 3"; +_params[(int) (0)] = (byte) (3); + //BA.debugLineNum = 359;BA.debugLine="params(1) = charcode"; +_params[(int) (1)] = (byte) (_charcode); + //BA.debugLineNum = 360;BA.debugLine="params(2) = charcode"; +_params[(int) (2)] = (byte) (_charcode); + //BA.debugLineNum = 361;BA.debugLine="params(3) = size"; +_params[(int) (3)] = (byte) (_size); + //BA.debugLineNum = 362;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 363;BA.debugLine="WriteBytes(bitdata)"; +_writebytes(_bitdata); + //BA.debugLineNum = 364;BA.debugLine="Return 0"; +if (true) return (int) (0); + //BA.debugLineNum = 365;BA.debugLine="End Sub"; +return 0; +} +public String _deletecustomcharacter(int _charcode) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 317;BA.debugLine="Public Sub DeleteCustomCharacter(charcode As Int)"; + //BA.debugLineNum = 318;BA.debugLine="WriteString(ESC & \"?\")"; +_writestring(_esc+"?"); + //BA.debugLineNum = 319;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 320;BA.debugLine="params(0) = charcode"; +_params[(int) (0)] = (byte) (_charcode); + //BA.debugLineNum = 321;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 322;BA.debugLine="End Sub"; +return ""; +} +public String _disconnect() throws Exception{ + //BA.debugLineNum = 143;BA.debugLine="Public Sub DisConnect"; + //BA.debugLineNum = 144;BA.debugLine="Serial1.Disconnect"; +_serial1.Disconnect(); + //BA.debugLineNum = 145;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 146;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.escposprinter._animage _ditherimage1d(gunav2.keymon.com.mx.escposprinter._animage _img,int _threshold) throws Exception{ +byte[] _pixels = null; +int _error = 0; +int _y = 0; +int _x = 0; +int _lum = 0; +gunav2.keymon.com.mx.escposprinter._animage _ret = null; + //BA.debugLineNum = 763;BA.debugLine="Sub DitherImage1D(img As AnImage, threshold As Int"; + //BA.debugLineNum = 764;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; +_pixels = new byte[_img.Data /*byte[]*/ .length]; +; + //BA.debugLineNum = 765;BA.debugLine="Dim error As Int"; +_error = 0; + //BA.debugLineNum = 766;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 = 767;BA.debugLine="error = 0 ' reset on each new line"; +_error = (int) (0); + //BA.debugLineNum = 768;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 = 769;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 = 770;BA.debugLine="lum = lum + error"; +_lum = (int) (_lum+_error); + //BA.debugLineNum = 771;BA.debugLine="If lum < threshold Then"; +if (_lum<_threshold) { + //BA.debugLineNum = 772;BA.debugLine="error = lum"; +_error = _lum; + //BA.debugLineNum = 773;BA.debugLine="lum = 1"; +_lum = (int) (1); + }else { + //BA.debugLineNum = 775;BA.debugLine="error = lum - 255"; +_error = (int) (_lum-255); + //BA.debugLineNum = 776;BA.debugLine="lum = 0"; +_lum = (int) (0); + }; + //BA.debugLineNum = 778;BA.debugLine="pixels(y*img.Width + x) = lum"; +_pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum); + } +}; + } +}; + //BA.debugLineNum = 781;BA.debugLine="Dim ret As AnImage"; +_ret = new gunav2.keymon.com.mx.escposprinter._animage(); + //BA.debugLineNum = 782;BA.debugLine="ret.Width = img.Width"; +_ret.Width /*int*/ = _img.Width /*int*/ ; + //BA.debugLineNum = 783;BA.debugLine="ret.Height = img.Height"; +_ret.Height /*int*/ = _img.Height /*int*/ ; + //BA.debugLineNum = 784;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 785;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 786;BA.debugLine="End Sub"; +return null; +} +public gunav2.keymon.com.mx.escposprinter._animage _ditherimage2d(gunav2.keymon.com.mx.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; +gunav2.keymon.com.mx.escposprinter._animage _ret = null; + //BA.debugLineNum = 794;BA.debugLine="Sub DitherImage2D(img As AnImage, threshold As Int"; + //BA.debugLineNum = 795;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; +_pixels = new byte[_img.Data /*byte[]*/ .length]; +; + //BA.debugLineNum = 796;BA.debugLine="Dim xerror As Int"; +_xerror = 0; + //BA.debugLineNum = 797;BA.debugLine="Dim yerrors(img.Width) As Int"; +_yerrors = new int[_img.Width /*int*/ ]; +; + //BA.debugLineNum = 798;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 = 799;BA.debugLine="yerrors(0) = 0"; +_yerrors[(int) (0)] = (int) (0); + } +}; + //BA.debugLineNum = 801;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 = 802;BA.debugLine="xerror = 0 ' reset on each new line"; +_xerror = (int) (0); + //BA.debugLineNum = 803;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 = 804;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 = 805;BA.debugLine="lum = lum + xerror + yerrors(x)"; +_lum = (int) (_lum+_xerror+_yerrors[_x]); + //BA.debugLineNum = 806;BA.debugLine="If lum < threshold Then"; +if (_lum<_threshold) { + //BA.debugLineNum = 807;BA.debugLine="xerror = lum/2"; +_xerror = (int) (_lum/(double)2); + //BA.debugLineNum = 808;BA.debugLine="yerrors(x) = xerror"; +_yerrors[_x] = _xerror; + //BA.debugLineNum = 809;BA.debugLine="lum = 1"; +_lum = (int) (1); + }else { + //BA.debugLineNum = 811;BA.debugLine="xerror = (lum - 255)/2"; +_xerror = (int) ((_lum-255)/(double)2); + //BA.debugLineNum = 812;BA.debugLine="yerrors(x) = xerror"; +_yerrors[_x] = _xerror; + //BA.debugLineNum = 813;BA.debugLine="lum = 0"; +_lum = (int) (0); + }; + //BA.debugLineNum = 815;BA.debugLine="pixels(y*img.Width + x) = lum"; +_pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum); + } +}; + } +}; + //BA.debugLineNum = 818;BA.debugLine="Dim ret As AnImage"; +_ret = new gunav2.keymon.com.mx.escposprinter._animage(); + //BA.debugLineNum = 819;BA.debugLine="ret.Width = img.Width"; +_ret.Width /*int*/ = _img.Width /*int*/ ; + //BA.debugLineNum = 820;BA.debugLine="ret.Height = img.Height"; +_ret.Height /*int*/ = _img.Height /*int*/ ; + //BA.debugLineNum = 821;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 822;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 823;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 = 544;BA.debugLine="Private Sub FillTriangle(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 546;BA.debugLine="Dim tx, ty As Int"; +_tx = 0; +_ty = 0; + //BA.debugLineNum = 547;BA.debugLine="If y0 > y1 Then"; +if (_y0>_y1) { + //BA.debugLineNum = 548;BA.debugLine="tx = x0 : ty = y0"; +_tx = _x0; + //BA.debugLineNum = 548;BA.debugLine="tx = x0 : ty = y0"; +_ty = _y0; + //BA.debugLineNum = 549;BA.debugLine="x0 = x1 : y0 = y1"; +_x0 = _x1; + //BA.debugLineNum = 549;BA.debugLine="x0 = x1 : y0 = y1"; +_y0 = _y1; + //BA.debugLineNum = 550;BA.debugLine="x1 = tx : y1 = ty"; +_x1 = _tx; + //BA.debugLineNum = 550;BA.debugLine="x1 = tx : y1 = ty"; +_y1 = _ty; + }; + //BA.debugLineNum = 552;BA.debugLine="If y0 > y2 Then"; +if (_y0>_y2) { + //BA.debugLineNum = 553;BA.debugLine="tx = x0 : ty = y0"; +_tx = _x0; + //BA.debugLineNum = 553;BA.debugLine="tx = x0 : ty = y0"; +_ty = _y0; + //BA.debugLineNum = 554;BA.debugLine="x0 = x2 : y0 = y2"; +_x0 = _x2; + //BA.debugLineNum = 554;BA.debugLine="x0 = x2 : y0 = y2"; +_y0 = _y2; + //BA.debugLineNum = 555;BA.debugLine="x2 = tx : y2 = ty"; +_x2 = _tx; + //BA.debugLineNum = 555;BA.debugLine="x2 = tx : y2 = ty"; +_y2 = _ty; + }; + //BA.debugLineNum = 557;BA.debugLine="If y1 > y2 Then"; +if (_y1>_y2) { + //BA.debugLineNum = 558;BA.debugLine="tx = x1 : ty = y1"; +_tx = _x1; + //BA.debugLineNum = 558;BA.debugLine="tx = x1 : ty = y1"; +_ty = _y1; + //BA.debugLineNum = 559;BA.debugLine="x1 = x2 : y1 = y2"; +_x1 = _x2; + //BA.debugLineNum = 559;BA.debugLine="x1 = x2 : y1 = y2"; +_y1 = _y2; + //BA.debugLineNum = 560;BA.debugLine="x2 = tx : y2 = ty"; +_x2 = _tx; + //BA.debugLineNum = 560;BA.debugLine="x2 = tx : y2 = ty"; +_y2 = _ty; + }; + //BA.debugLineNum = 563;BA.debugLine="Dim dx0, dx1, dx2 As Double"; +_dx0 = 0; +_dx1 = 0; +_dx2 = 0; + //BA.debugLineNum = 564;BA.debugLine="Dim x3, x4, y3, y4 As Double"; +_x3 = 0; +_x4 = 0; +_y3 = 0; +_y4 = 0; + //BA.debugLineNum = 565;BA.debugLine="Dim inc As Int"; +_inc = 0; + //BA.debugLineNum = 567;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 = 568;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 = 569;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 = 570;BA.debugLine="x3 = x0 : x4 = x0"; +_x3 = _x0; + //BA.debugLineNum = 570;BA.debugLine="x3 = x0 : x4 = x0"; +_x4 = _x0; + //BA.debugLineNum = 571;BA.debugLine="y3 = y0 : y4 = y0"; +_y3 = _y0; + //BA.debugLineNum = 571;BA.debugLine="y3 = y0 : y4 = y0"; +_y4 = _y0; + //BA.debugLineNum = 572;BA.debugLine="If dx0 > dx1 Then"; +if (_dx0>_dx1) { + //BA.debugLineNum = 573;BA.debugLine="While"; +__c.While(); + //BA.debugLineNum = 574;BA.debugLine="Do While y3 <= y1"; +while (_y3<=_y1) { + //BA.debugLineNum = 575;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; +if (_x3>_x4) { +_inc = (int) (-1);} +else { +_inc = (int) (1);}; + //BA.debugLineNum = 576;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 = 577;BA.debugLine="points(x, y3) = 1"; +_points[_x][(int) (_y3)] = (byte) (1); + } +}; + //BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_y3 = _y3+1; + //BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_y4 = _y4+1; + //BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_x3 = _x3+_dx1; + //BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_x4 = _x4+_dx0; + } +; + //BA.debugLineNum = 581;BA.debugLine="x4=x1"; +_x4 = _x1; + //BA.debugLineNum = 582;BA.debugLine="y4=y1"; +_y4 = _y1; + //BA.debugLineNum = 583;BA.debugLine="Do While y3 <= y2"; +while (_y3<=_y2) { + //BA.debugLineNum = 584;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; +if (_x3>_x4) { +_inc = (int) (-1);} +else { +_inc = (int) (1);}; + //BA.debugLineNum = 585;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 = 586;BA.debugLine="points(x ,y3) = 1"; +_points[_x][(int) (_y3)] = (byte) (1); + } +}; + //BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_y3 = _y3+1; + //BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_y4 = _y4+1; + //BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_x3 = _x3+_dx1; + //BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; +_x4 = _x4+_dx2; + } +; + }else { + //BA.debugLineNum = 591;BA.debugLine="While"; +__c.While(); + //BA.debugLineNum = 592;BA.debugLine="Do While y3 <= y1"; +while (_y3<=_y1) { + //BA.debugLineNum = 593;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; +if (_x3>_x4) { +_inc = (int) (-1);} +else { +_inc = (int) (1);}; + //BA.debugLineNum = 594;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 = 595;BA.debugLine="points(x, y3) = 1"; +_points[_x][(int) (_y3)] = (byte) (1); + } +}; + //BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; +_y3 = _y3+1; + //BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; +_y4 = _y4+1; + //BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; +_x3 = _x3+_dx0; + //BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; +_x4 = _x4+_dx1; + } +; + //BA.debugLineNum = 599;BA.debugLine="x3=x1"; +_x3 = _x1; + //BA.debugLineNum = 600;BA.debugLine="y3=y1"; +_y3 = _y1; + //BA.debugLineNum = 601;BA.debugLine="Do While y3<=y2"; +while (_y3<=_y2) { + //BA.debugLineNum = 602;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; +if (_x3>_x4) { +_inc = (int) (-1);} +else { +_inc = (int) (1);}; + //BA.debugLineNum = 603;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 = 604;BA.debugLine="points(x, y3) = 1"; +_points[_x][(int) (_y3)] = (byte) (1); + } +}; + //BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; +_y3 = _y3+1; + //BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; +_y4 = _y4+1; + //BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; +_x3 = _x3+_dx2; + //BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; +_x4 = _x4+_dx1; + } +; + }; + //BA.debugLineNum = 609;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.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; +gunav2.keymon.com.mx.escposprinter._animage _ret = null; + //BA.debugLineNum = 713;BA.debugLine="Sub ImageToBWIMage(bmp As Bitmap) As AnImage"; + //BA.debugLineNum = 714;BA.debugLine="Dim BC As BitmapCreator 'ignore"; +_bc = new b4a.example.bitmapcreator(); + //BA.debugLineNum = 715;BA.debugLine="Dim W As Int = bmp.Width"; +_w = _bmp.getWidth(); + //BA.debugLineNum = 716;BA.debugLine="Dim H As Int = bmp.Height"; +_h = _bmp.getHeight(); + //BA.debugLineNum = 717;BA.debugLine="Dim pixels(W * H) As Byte"; +_pixels = new byte[(int) (_w*_h)]; +; + //BA.debugLineNum = 719;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 = 720;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 = 721;BA.debugLine="Dim j As Int = bmp.GetPixel(x, y)"; +_j = _bmp.GetPixel(_x,_y); + //BA.debugLineNum = 723;BA.debugLine="Dim col As ARGBColor"; +_col = new b4a.example.bitmapcreator._argbcolor(); + //BA.debugLineNum = 724;BA.debugLine="BC.ColorToARGB(j, col )"; +_bc._colortoargb(_j,_col); + //BA.debugLineNum = 725;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 = 726;BA.debugLine="If lum> 255 Then lum = 255"; +if (_lum>255) { +_lum = (int) (255);}; + //BA.debugLineNum = 728;BA.debugLine="pixels(y*W + x) = lum"; +_pixels[(int) (_y*_w+_x)] = (byte) (_lum); + } +}; + } +}; + //BA.debugLineNum = 731;BA.debugLine="Dim ret As AnImage"; +_ret = new gunav2.keymon.com.mx.escposprinter._animage(); + //BA.debugLineNum = 732;BA.debugLine="ret.Width = bmp.Width"; +_ret.Width /*int*/ = _bmp.getWidth(); + //BA.debugLineNum = 733;BA.debugLine="ret.Height = bmp.Height"; +_ret.Height /*int*/ = _bmp.getHeight(); + //BA.debugLineNum = 734;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 735;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 736;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 75;BA.debugLine="Public Sub Initialize(vCallback As Object, vEventN"; + //BA.debugLineNum = 76;BA.debugLine="EventName = vEventName"; +_eventname = _veventname; + //BA.debugLineNum = 77;BA.debugLine="CallBack = vCallback"; +_callback = _vcallback; + //BA.debugLineNum = 78;BA.debugLine="Serial1.Initialize(\"Serial1\")"; +_serial1.Initialize("Serial1"); + //BA.debugLineNum = 79;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 80;BA.debugLine="ConnectedError = \"\""; +_connectederror = ""; + //BA.debugLineNum = 81;BA.debugLine="End Sub"; +return ""; +} +public boolean _isbluetoothon() throws Exception{ + //BA.debugLineNum = 94;BA.debugLine="Public Sub IsBluetoothOn As Boolean"; + //BA.debugLineNum = 95;BA.debugLine="Return Serial1.IsEnabled"; +if (true) return _serial1.IsEnabled(); + //BA.debugLineNum = 96;BA.debugLine="End Sub"; +return false; +} +public boolean _isconnected() throws Exception{ + //BA.debugLineNum = 89;BA.debugLine="Public Sub IsConnected As Boolean"; + //BA.debugLineNum = 90;BA.debugLine="Return Connected"; +if (true) return _connected; + //BA.debugLineNum = 91;BA.debugLine="End Sub"; +return false; +} +public gunav2.keymon.com.mx.escposprinter._animage _packimage(gunav2.keymon.com.mx.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; +gunav2.keymon.com.mx.escposprinter._animage _ret = null; + //BA.debugLineNum = 865;BA.debugLine="Public Sub PackImage(imagedata As AnImage) As AnIm"; + //BA.debugLineNum = 866;BA.debugLine="Dim xbytes As Int = imagedata.width/8"; +_xbytes = (int) (_imagedata.Width /*int*/ /(double)8); + //BA.debugLineNum = 867;BA.debugLine="Dim pixels(xbytes * imagedata.height) As Byte"; +_pixels = new byte[(int) (_xbytes*_imagedata.Height /*int*/ )]; +; + //BA.debugLineNum = 868;BA.debugLine="Dim masks(8) As Byte"; +_masks = new byte[(int) (8)]; +; + //BA.debugLineNum = 869;BA.debugLine="masks(0) = 0x80"; +_masks[(int) (0)] = (byte) (((int)0x80)); + //BA.debugLineNum = 870;BA.debugLine="masks(1) = 0x40"; +_masks[(int) (1)] = (byte) (((int)0x40)); + //BA.debugLineNum = 871;BA.debugLine="masks(2) = 0x20"; +_masks[(int) (2)] = (byte) (((int)0x20)); + //BA.debugLineNum = 872;BA.debugLine="masks(3) = 0x10"; +_masks[(int) (3)] = (byte) (((int)0x10)); + //BA.debugLineNum = 873;BA.debugLine="masks(4) = 0x08"; +_masks[(int) (4)] = (byte) (((int)0x08)); + //BA.debugLineNum = 874;BA.debugLine="masks(5) = 0x04"; +_masks[(int) (5)] = (byte) (((int)0x04)); + //BA.debugLineNum = 875;BA.debugLine="masks(6) = 0x02"; +_masks[(int) (6)] = (byte) (((int)0x02)); + //BA.debugLineNum = 876;BA.debugLine="masks(7) = 0x01"; +_masks[(int) (7)] = (byte) (((int)0x01)); + //BA.debugLineNum = 877;BA.debugLine="Dim index As Int = 0"; +_index = (int) (0); + //BA.debugLineNum = 878;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 = 879;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 = 880;BA.debugLine="Dim xbyte As Byte = 0"; +_xbyte = (byte) (0); + //BA.debugLineNum = 881;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 = 883;BA.debugLine="Dim pix As Byte = imagedata.Data(index)"; +_pix = _imagedata.Data /*byte[]*/ [_index]; + //BA.debugLineNum = 884;BA.debugLine="If pix <> 0 Then"; +if (_pix!=0) { + //BA.debugLineNum = 885;BA.debugLine="xbyte = xbyte + masks(b)"; +_xbyte = (byte) (_xbyte+_masks[_b]); + }; + //BA.debugLineNum = 887;BA.debugLine="index = index + 1"; +_index = (int) (_index+1); + } +}; + //BA.debugLineNum = 889;BA.debugLine="pixels(y*xbytes + x) = xbyte"; +_pixels[(int) (_y*_xbytes+_x)] = _xbyte; + } +}; + } +}; + //BA.debugLineNum = 892;BA.debugLine="Dim ret As AnImage"; +_ret = new gunav2.keymon.com.mx.escposprinter._animage(); + //BA.debugLineNum = 893;BA.debugLine="ret.Width = xbytes"; +_ret.Width /*int*/ = _xbytes; + //BA.debugLineNum = 894;BA.debugLine="ret.Height = imagedata.Height"; +_ret.Height /*int*/ = _imagedata.Height /*int*/ ; + //BA.debugLineNum = 895;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 896;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 897;BA.debugLine="End Sub"; +return null; +} +public byte[] _packimageslice(gunav2.keymon.com.mx.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 = 963;BA.debugLine="Public Sub PackImageSlice(img As AnImage, slice As"; + //BA.debugLineNum = 964;BA.debugLine="Dim bytes As Int = img.width"; +_bytes = _img.Width /*int*/ ; + //BA.debugLineNum = 965;BA.debugLine="If dots24 Then"; +if (_dots24) { + //BA.debugLineNum = 966;BA.debugLine="Dim pixels(bytes * 3) As Byte"; +_pixels = new byte[(int) (_bytes*3)]; +; + //BA.debugLineNum = 967;BA.debugLine="Dim slicestart As Int = slice * bytes * 8 * 3"; +_slicestart = (int) (_slice*_bytes*8*3); + }else { + //BA.debugLineNum = 969;BA.debugLine="Dim pixels(bytes) As Byte"; +_pixels = new byte[_bytes]; +; + //BA.debugLineNum = 970;BA.debugLine="Dim slicestart As Int = slice * bytes * 8"; +_slicestart = (int) (_slice*_bytes*8); + }; + //BA.debugLineNum = 973;BA.debugLine="Dim masks(8) As Byte"; +_masks = new byte[(int) (8)]; +; + //BA.debugLineNum = 974;BA.debugLine="masks(0) = 0x80"; +_masks[(int) (0)] = (byte) (((int)0x80)); + //BA.debugLineNum = 975;BA.debugLine="masks(1) = 0x40"; +_masks[(int) (1)] = (byte) (((int)0x40)); + //BA.debugLineNum = 976;BA.debugLine="masks(2) = 0x20"; +_masks[(int) (2)] = (byte) (((int)0x20)); + //BA.debugLineNum = 977;BA.debugLine="masks(3) = 0x10"; +_masks[(int) (3)] = (byte) (((int)0x10)); + //BA.debugLineNum = 978;BA.debugLine="masks(4) = 0x08"; +_masks[(int) (4)] = (byte) (((int)0x08)); + //BA.debugLineNum = 979;BA.debugLine="masks(5) = 0x04"; +_masks[(int) (5)] = (byte) (((int)0x04)); + //BA.debugLineNum = 980;BA.debugLine="masks(6) = 0x02"; +_masks[(int) (6)] = (byte) (((int)0x02)); + //BA.debugLineNum = 981;BA.debugLine="masks(7) = 0x01"; +_masks[(int) (7)] = (byte) (((int)0x01)); + //BA.debugLineNum = 983;BA.debugLine="If dots24 Then"; +if (_dots24) { + //BA.debugLineNum = 984;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 = 985;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 = 986;BA.debugLine="Dim xbyte As Byte = 0"; +_xbyte = (byte) (0); + //BA.debugLineNum = 987;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 = 989;BA.debugLine="Dim pix As Byte = img.Data(slicestart + ((b +"; +_pix = _img.Data /*byte[]*/ [(int) (_slicestart+((_b+_s*8)*_bytes)+_x)]; + //BA.debugLineNum = 990;BA.debugLine="If pix <> 0 Then"; +if (_pix!=0) { + //BA.debugLineNum = 991;BA.debugLine="xbyte = xbyte + masks(b)"; +_xbyte = (byte) (_xbyte+_masks[_b]); + }; + } +}; + //BA.debugLineNum = 994;BA.debugLine="pixels(x*3+s) = xbyte"; +_pixels[(int) (_x*3+_s)] = _xbyte; + } +}; + } +}; + }else { + //BA.debugLineNum = 998;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 = 999;BA.debugLine="Dim xbyte As Byte = 0"; +_xbyte = (byte) (0); + //BA.debugLineNum = 1000;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 = 1002;BA.debugLine="Dim pix As Byte = img.Data(slicestart + (b * b"; +_pix = _img.Data /*byte[]*/ [(int) (_slicestart+(_b*_bytes)+_x)]; + //BA.debugLineNum = 1003;BA.debugLine="If pix <> 0 Then"; +if (_pix!=0) { + //BA.debugLineNum = 1004;BA.debugLine="xbyte = xbyte + masks(b)"; +_xbyte = (byte) (_xbyte+_masks[_b]); + }; + } +}; + //BA.debugLineNum = 1007;BA.debugLine="pixels(x) = xbyte"; +_pixels[_x] = _xbyte; + } +}; + }; + //BA.debugLineNum = 1010;BA.debugLine="Return pixels"; +if (true) return _pixels; + //BA.debugLineNum = 1011;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 = 611;BA.debugLine="Private Sub PlotBox(x0 As Int, y0 As Int, x1 As In"; + //BA.debugLineNum = 613;BA.debugLine="PlotLine(x0, y0, x0, y1, points)"; +_plotline(_x0,_y0,_x0,_y1,_points); + //BA.debugLineNum = 614;BA.debugLine="PlotLine(x0, y0, x1, y0, points)"; +_plotline(_x0,_y0,_x1,_y0,_points); + //BA.debugLineNum = 615;BA.debugLine="PlotLine(x1, y0, x1, y1, points)"; +_plotline(_x1,_y0,_x1,_y1,_points); + //BA.debugLineNum = 616;BA.debugLine="PlotLine(x0, y1, x1, y1, points)"; +_plotline(_x0,_y1,_x1,_y1,_points); + //BA.debugLineNum = 617;BA.debugLine="If Fill > 0 Then"; +if (_fill>0) { + //BA.debugLineNum = 618;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 = 619;BA.debugLine="PlotLine(x, y0, x, y1, points)"; +_plotline(_x,_y0,_x,_y1,_points); + } +}; + }; + //BA.debugLineNum = 622;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 = 625;BA.debugLine="Private Sub PlotCircle(radius As Int, quadrants As"; + //BA.debugLineNum = 627;BA.debugLine="Dim mask As Int = 1"; +_mask = (int) (1); + //BA.debugLineNum = 628;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 = 629;BA.debugLine="If Bit.And(quadrants, mask) <> 0 Then"; +if (__c.Bit.And(_quadrants,_mask)!=0) { + //BA.debugLineNum = 630;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 = 631;BA.debugLine="Dim x,y As Double"; +_x = 0; +_y = 0; + //BA.debugLineNum = 632;BA.debugLine="x = x1 - SinD(i)*radius"; +_x = _x1-__c.SinD(_i)*_radius; + //BA.debugLineNum = 633;BA.debugLine="y = y1 - CosD(i)*radius"; +_y = _y1-__c.CosD(_i)*_radius; + //BA.debugLineNum = 634;BA.debugLine="If fill > 0 Then"; +if (_fill>0) { + //BA.debugLineNum = 635;BA.debugLine="PlotLine(x1, y1, x, y, points)"; +_plotline(_x1,_y1,(int) (_x),(int) (_y),_points); + }else { + //BA.debugLineNum = 637;BA.debugLine="points(Round(x), Round(y)) = 1"; +_points[(int) (__c.Round(_x))][(int) (__c.Round(_y))] = (byte) (1); + }; + } +}; + }; + //BA.debugLineNum = 641;BA.debugLine="mask = Bit.ShiftLeft(mask, 1)"; +_mask = __c.Bit.ShiftLeft(_mask,(int) (1)); + } +}; + //BA.debugLineNum = 643;BA.debugLine="End Sub"; +return ""; +} +public String _plotline(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ + //BA.debugLineNum = 646;BA.debugLine="Private Sub PlotLine(x0 As Int, y0 As Int, x1 As I"; + //BA.debugLineNum = 647;BA.debugLine="If Abs(y1 - y0) < Abs(x1 - x0) Then"; +if (__c.Abs(_y1-_y0)<__c.Abs(_x1-_x0)) { + //BA.debugLineNum = 648;BA.debugLine="If x0 > x1 Then"; +if (_x0>_x1) { + //BA.debugLineNum = 649;BA.debugLine="PlotLineLow(x1, y1, x0, y0, points)"; +_plotlinelow(_x1,_y1,_x0,_y0,_points); + }else { + //BA.debugLineNum = 651;BA.debugLine="PlotLineLow(x0, y0, x1, y1, points)"; +_plotlinelow(_x0,_y0,_x1,_y1,_points); + }; + }else { + //BA.debugLineNum = 654;BA.debugLine="If y0 > y1 Then"; +if (_y0>_y1) { + //BA.debugLineNum = 655;BA.debugLine="PlotLineHigh(x1, y1, x0, y0, points)"; +_plotlinehigh(_x1,_y1,_x0,_y0,_points); + }else { + //BA.debugLineNum = 657;BA.debugLine="PlotLineHigh(x0, y0, x1, y1, points)"; +_plotlinehigh(_x0,_y0,_x1,_y1,_points); + }; + }; + //BA.debugLineNum = 660;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 = 662;BA.debugLine="Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 663;BA.debugLine="Dim dx As Int = x1 - x0"; +_dx = (int) (_x1-_x0); + //BA.debugLineNum = 664;BA.debugLine="Dim dy As Int = y1 - y0"; +_dy = (int) (_y1-_y0); + //BA.debugLineNum = 665;BA.debugLine="Dim xi As Int = 1"; +_xi = (int) (1); + //BA.debugLineNum = 666;BA.debugLine="If dx < 0 Then"; +if (_dx<0) { + //BA.debugLineNum = 667;BA.debugLine="xi = -1"; +_xi = (int) (-1); + //BA.debugLineNum = 668;BA.debugLine="dx = -dx"; +_dx = (int) (-_dx); + }; + //BA.debugLineNum = 670;BA.debugLine="Dim D As Int = 2*dx - dy"; +_d = (int) (2*_dx-_dy); + //BA.debugLineNum = 671;BA.debugLine="Dim x As Int = x0"; +_x = _x0; + //BA.debugLineNum = 672;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 = 673;BA.debugLine="points(x,y) = 1"; +_points[_x][_y] = (byte) (1); + //BA.debugLineNum = 674;BA.debugLine="If D > 0 Then"; +if (_d>0) { + //BA.debugLineNum = 675;BA.debugLine="x = x + xi"; +_x = (int) (_x+_xi); + //BA.debugLineNum = 676;BA.debugLine="D = D - 2*dy"; +_d = (int) (_d-2*_dy); + }; + //BA.debugLineNum = 678;BA.debugLine="D = D + 2*dx"; +_d = (int) (_d+2*_dx); + } +}; + //BA.debugLineNum = 680;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 = 682;BA.debugLine="Private Sub PlotLineLow(x0 As Int, y0 As Int, x1 A"; + //BA.debugLineNum = 683;BA.debugLine="Dim dx As Int = x1 - x0"; +_dx = (int) (_x1-_x0); + //BA.debugLineNum = 684;BA.debugLine="Dim dy As Int = y1 - y0"; +_dy = (int) (_y1-_y0); + //BA.debugLineNum = 685;BA.debugLine="Dim yi As Int = 1"; +_yi = (int) (1); + //BA.debugLineNum = 686;BA.debugLine="If dy < 0 Then"; +if (_dy<0) { + //BA.debugLineNum = 687;BA.debugLine="yi = -1"; +_yi = (int) (-1); + //BA.debugLineNum = 688;BA.debugLine="dy = -dy"; +_dy = (int) (-_dy); + }; + //BA.debugLineNum = 690;BA.debugLine="Dim D As Int = 2*dy - dx"; +_d = (int) (2*_dy-_dx); + //BA.debugLineNum = 691;BA.debugLine="Dim y As Int = y0"; +_y = _y0; + //BA.debugLineNum = 692;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 = 693;BA.debugLine="points(x,y) = 1"; +_points[_x][_y] = (byte) (1); + //BA.debugLineNum = 694;BA.debugLine="If D > 0 Then"; +if (_d>0) { + //BA.debugLineNum = 695;BA.debugLine="y = y + yi"; +_y = (int) (_y+_yi); + //BA.debugLineNum = 696;BA.debugLine="D = D - 2*dx"; +_d = (int) (_d-2*_dx); + }; + //BA.debugLineNum = 698;BA.debugLine="D = D + 2*dy"; +_d = (int) (_d+2*_dy); + } +}; + //BA.debugLineNum = 700;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 = 534;BA.debugLine="Private Sub PlotTriangle(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 536;BA.debugLine="PlotLine(x0, y0, x1, y1, points)"; +_plotline(_x0,_y0,_x1,_y1,_points); + //BA.debugLineNum = 537;BA.debugLine="PlotLine(x1, y1, x2, y2, points)"; +_plotline(_x1,_y1,_x2,_y2,_points); + //BA.debugLineNum = 538;BA.debugLine="PlotLine(x2, y2, x0, y0, points)"; +_plotline(_x2,_y2,_x0,_y0,_points); + //BA.debugLineNum = 539;BA.debugLine="If Fill > 0 Then"; +if (_fill>0) { + //BA.debugLineNum = 540;BA.debugLine="FillTriangle(x0, y0, x1, y1, x2, y2, points)"; +_filltriangle(_x0,_y0,_x1,_y1,_x2,_y2,_points); + }; + //BA.debugLineNum = 542;BA.debugLine="End Sub"; +return ""; +} +public String _printandfeedpaper(int _units) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 160;BA.debugLine="Public Sub PrintAndFeedPaper(units As Int)"; + //BA.debugLineNum = 161;BA.debugLine="WriteString(ESC & \"J\")"; +_writestring(_esc+"J"); + //BA.debugLineNum = 162;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 163;BA.debugLine="params(0) = units"; +_params[(int) (0)] = (byte) (_units); + //BA.debugLineNum = 164;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 165;BA.debugLine="End Sub"; +return ""; +} +public int _printimage(gunav2.keymon.com.mx.escposprinter._animage _img) throws Exception{ +int _xh = 0; +int _xl = 0; +int _yh = 0; +int _yl = 0; +byte[] _params = null; + //BA.debugLineNum = 837;BA.debugLine="Public Sub PrintImage(img As AnImage) As Int"; + //BA.debugLineNum = 840;BA.debugLine="If img.width > 72 Then Return -1"; +if (_img.Width /*int*/ >72) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 841;BA.debugLine="If img.height > 512 Then Return -2"; +if (_img.Height /*int*/ >512) { +if (true) return (int) (-2);}; + //BA.debugLineNum = 842;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 = 843;BA.debugLine="Dim xh As Int = img.width / 256"; +_xh = (int) (_img.Width /*int*/ /(double)256); + //BA.debugLineNum = 844;BA.debugLine="Dim xl As Int = img.width - xh * 256"; +_xl = (int) (_img.Width /*int*/ -_xh*256); + //BA.debugLineNum = 845;BA.debugLine="Dim yh As Int = img.height / 256"; +_yh = (int) (_img.Height /*int*/ /(double)256); + //BA.debugLineNum = 846;BA.debugLine="Dim yl As Int = img.height - yh * 256"; +_yl = (int) (_img.Height /*int*/ -_yh*256); + //BA.debugLineNum = 847;BA.debugLine="Dim params(5) As Byte"; +_params = new byte[(int) (5)]; +; + //BA.debugLineNum = 848;BA.debugLine="params(0) = 0 '"; +_params[(int) (0)] = (byte) (0); + //BA.debugLineNum = 849;BA.debugLine="params(1) = xl"; +_params[(int) (1)] = (byte) (_xl); + //BA.debugLineNum = 850;BA.debugLine="params(2) = xh"; +_params[(int) (2)] = (byte) (_xh); + //BA.debugLineNum = 851;BA.debugLine="params(3) = yl"; +_params[(int) (3)] = (byte) (_yl); + //BA.debugLineNum = 852;BA.debugLine="params(4) = yh"; +_params[(int) (4)] = (byte) (_yh); + //BA.debugLineNum = 853;BA.debugLine="WriteString(GS & \"v0\")"; +_writestring(_gs+"v0"); + //BA.debugLineNum = 854;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 855;BA.debugLine="WriteBytes(img.data)"; +_writebytes(_img.Data /*byte[]*/ ); + //BA.debugLineNum = 856;BA.debugLine="WriteString(CRLF)"; +_writestring(__c.CRLF); + //BA.debugLineNum = 857;BA.debugLine="Return 0"; +if (true) return (int) (0); + //BA.debugLineNum = 858;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 = 927;BA.debugLine="Public Sub PrintImage2(width As Int, data() As Byt"; + //BA.debugLineNum = 928;BA.debugLine="Dim d As String = Chr(0)"; +_d = BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 929;BA.debugLine="If Not(highdensity) And Not(dotds24 ) Then"; +if (__c.Not(_highdensity) && __c.Not(_dotds24)) { + //BA.debugLineNum = 930;BA.debugLine="d = Chr(0)"; +_d = BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 931;BA.debugLine="If width > 288 Then Return -1"; +if (_width>288) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 932;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 = 934;BA.debugLine="d = Chr(1)"; +_d = BA.ObjectToString(__c.Chr((int) (1))); + //BA.debugLineNum = 935;BA.debugLine="If width > 576 Then Return -1"; +if (_width>576) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 936;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 = 938;BA.debugLine="d = Chr(32)"; +_d = BA.ObjectToString(__c.Chr((int) (32))); + //BA.debugLineNum = 939;BA.debugLine="If width > 288 Then Return -1"; +if (_width>288) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 940;BA.debugLine="If data.Length <> width*3 Then Return -3"; +if (_data.length!=_width*3) { +if (true) return (int) (-3);}; + }else { + //BA.debugLineNum = 942;BA.debugLine="d = Chr(33)"; +_d = BA.ObjectToString(__c.Chr((int) (33))); + //BA.debugLineNum = 943;BA.debugLine="If width > 576 Then Return -1"; +if (_width>576) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 944;BA.debugLine="If data.Length <> width*3 Then Return -3"; +if (_data.length!=_width*3) { +if (true) return (int) (-3);}; + }; + //BA.debugLineNum = 946;BA.debugLine="Dim xh As Int = width / 256"; +_xh = (int) (_width/(double)256); + //BA.debugLineNum = 947;BA.debugLine="Dim xl As Int = width - xh * 256"; +_xl = (int) (_width-_xh*256); + //BA.debugLineNum = 948;BA.debugLine="Dim params(2) As Byte"; +_params = new byte[(int) (2)]; +; + //BA.debugLineNum = 949;BA.debugLine="params(0) = xl"; +_params[(int) (0)] = (byte) (_xl); + //BA.debugLineNum = 950;BA.debugLine="params(1) = xh"; +_params[(int) (1)] = (byte) (_xh); + //BA.debugLineNum = 951;BA.debugLine="WriteString(ESC & \"*\" & d)"; +_writestring(_esc+"*"+_d); + //BA.debugLineNum = 952;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 953;BA.debugLine="WriteBytes(data)"; +_writebytes(_data); + //BA.debugLineNum = 954;BA.debugLine="WriteString(CRLF)"; +_writestring(__c.CRLF); + //BA.debugLineNum = 955;BA.debugLine="Return 0"; +if (true) return (int) (0); + //BA.debugLineNum = 956;BA.debugLine="End Sub"; +return 0; +} +public String _reset() throws Exception{ + //BA.debugLineNum = 149;BA.debugLine="Public Sub Reset"; + //BA.debugLineNum = 150;BA.debugLine="WriteString(ESC & \"@\")"; +_writestring(_esc+"@"); + //BA.debugLineNum = 151;BA.debugLine="End Sub"; +return ""; +} +public String _serial1_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 1115;BA.debugLine="Private Sub Serial1_Connected (Success As Boolean)"; + //BA.debugLineNum = 1116;BA.debugLine="If Success Then"; +if (_success) { + //BA.debugLineNum = 1117;BA.debugLine="Astream.Initialize(Serial1.InputStream, Serial1."; +_astream.Initialize(ba,_serial1.getInputStream(),_serial1.getOutputStream(),"astream"); + //BA.debugLineNum = 1118;BA.debugLine="Connected = True"; +_connected = __c.True; + //BA.debugLineNum = 1119;BA.debugLine="ConnectedError = \"\""; +_connectederror = ""; + //BA.debugLineNum = 1120;BA.debugLine="Serial1.Listen"; +_serial1.Listen(ba); + }else { + //BA.debugLineNum = 1122;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 1123;BA.debugLine="ConnectedError = LastException.Message"; +_connectederror = __c.LastException(getActivityBA()).getMessage(); + }; + //BA.debugLineNum = 1125;BA.debugLine="If SubExists(CallBack, EventName & \"_Connected\")"; +if (__c.SubExists(ba,_callback,_eventname+"_Connected")) { + //BA.debugLineNum = 1126;BA.debugLine="CallSub2(CallBack, EventName & \"_Connected\", Suc"; +__c.CallSubNew2(ba,_callback,_eventname+"_Connected",(Object)(_success)); + }; + //BA.debugLineNum = 1128;BA.debugLine="End Sub"; +return ""; +} +public String _setbarcodeheight(int _height) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 1019;BA.debugLine="Public Sub setBarCodeHeight(height As Int)"; + //BA.debugLineNum = 1020;BA.debugLine="WriteString(GS & \"h\")"; +_writestring(_gs+"h"); + //BA.debugLineNum = 1021;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 1022;BA.debugLine="params(0) = height"; +_params[(int) (0)] = (byte) (_height); + //BA.debugLineNum = 1023;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1024;BA.debugLine="End Sub"; +return ""; +} +public String _setbarcodeleft(int _left) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 1028;BA.debugLine="Public Sub setBarCodeLeft(left As Int)"; + //BA.debugLineNum = 1029;BA.debugLine="WriteString(GS & \"x\")"; +_writestring(_gs+"x"); + //BA.debugLineNum = 1030;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 1031;BA.debugLine="params(0) = left"; +_params[(int) (0)] = (byte) (_left); + //BA.debugLineNum = 1032;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1033;BA.debugLine="End Sub"; +return ""; +} +public String _setbarcodewidth(int _width) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 1038;BA.debugLine="Public Sub setBarCodeWidth(width As Int)"; + //BA.debugLineNum = 1039;BA.debugLine="WriteString(GS & \"w\")"; +_writestring(_gs+"w"); + //BA.debugLineNum = 1040;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 1041;BA.debugLine="params(0) = width"; +_params[(int) (0)] = (byte) (_width); + //BA.debugLineNum = 1042;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1043;BA.debugLine="End Sub"; +return ""; +} +public String _setcharacterfont(int _font) throws Exception{ + //BA.debugLineNum = 247;BA.debugLine="Public Sub setCharacterFont(font As Int)"; + //BA.debugLineNum = 248;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 = 249;BA.debugLine="End Sub"; +return ""; +} +public String _setcharacterspacing(int _spacing) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 168;BA.debugLine="Public Sub setCharacterSpacing(spacing As Int)"; + //BA.debugLineNum = 169;BA.debugLine="WriteString(ESC & \" \")"; +_writestring(_esc+" "); + //BA.debugLineNum = 170;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 171;BA.debugLine="params(0) = spacing"; +_params[(int) (0)] = (byte) (_spacing); + //BA.debugLineNum = 172;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 173;BA.debugLine="End Sub"; +return ""; +} +public String _setcodepage(int _codepage) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 236;BA.debugLine="Public Sub setCodePage(codepage As Int)"; + //BA.debugLineNum = 237;BA.debugLine="WriteString(ESC & \"t\")"; +_writestring(_esc+"t"); + //BA.debugLineNum = 238;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 239;BA.debugLine="params(0) = codepage"; +_params[(int) (0)] = (byte) (_codepage); + //BA.debugLineNum = 240;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 241;BA.debugLine="End Sub"; +return ""; +} +public String _sethrifont(int _font) throws Exception{ + //BA.debugLineNum = 1060;BA.debugLine="Public Sub setHriFont(font As Int)"; + //BA.debugLineNum = 1061;BA.debugLine="WriteString(GS & \"f\" & Chr(font))"; +_writestring(_gs+"f"+BA.ObjectToString(__c.Chr(_font))); + //BA.debugLineNum = 1062;BA.debugLine="End Sub"; +return ""; +} +public String _sethriposn(int _posn) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 1049;BA.debugLine="Public Sub setHriPosn(posn As Int)"; + //BA.debugLineNum = 1050;BA.debugLine="WriteString(GS & \"H\")"; +_writestring(_gs+"H"); + //BA.debugLineNum = 1051;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 1052;BA.debugLine="params(0) = posn"; +_params[(int) (0)] = (byte) (_posn); + //BA.debugLineNum = 1053;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1054;BA.debugLine="End Sub"; +return ""; +} +public String _setjustify(int _justify) throws Exception{ + //BA.debugLineNum = 230;BA.debugLine="Public Sub setJustify(justify As Int)"; + //BA.debugLineNum = 231;BA.debugLine="WriteString(ESC & \"a\" & Chr(justify + 48))"; +_writestring(_esc+"a"+BA.ObjectToString(__c.Chr((int) (_justify+48)))); + //BA.debugLineNum = 232;BA.debugLine="End Sub"; +return ""; +} +public String _setleftinset(int _inset) throws Exception{ +int _dh = 0; +int _dl = 0; +byte[] _params = null; + //BA.debugLineNum = 178;BA.debugLine="Public Sub setLeftInset(inset As Int)"; + //BA.debugLineNum = 179;BA.debugLine="Dim dh As Int = inset / 256"; +_dh = (int) (_inset/(double)256); + //BA.debugLineNum = 180;BA.debugLine="Dim dl As Int = inset - dh"; +_dl = (int) (_inset-_dh); + //BA.debugLineNum = 181;BA.debugLine="WriteString(ESC & \"$\" & Chr(dl) & Chr(dh))"; +_writestring(_esc+"$"+BA.ObjectToString(__c.Chr(_dl))+BA.ObjectToString(__c.Chr(_dh))); + //BA.debugLineNum = 182;BA.debugLine="Dim params(2) As Byte"; +_params = new byte[(int) (2)]; +; + //BA.debugLineNum = 183;BA.debugLine="params(0) = dl"; +_params[(int) (0)] = (byte) (_dl); + //BA.debugLineNum = 184;BA.debugLine="params(1) = dh"; +_params[(int) (1)] = (byte) (_dh); + //BA.debugLineNum = 185;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 186;BA.debugLine="End Sub"; +return ""; +} +public String _setleftmargin(int _margin) throws Exception{ +int _dh = 0; +int _dl = 0; +byte[] _params = null; + //BA.debugLineNum = 191;BA.debugLine="Public Sub setLeftMargin(margin As Int)"; + //BA.debugLineNum = 192;BA.debugLine="Dim dh As Int = margin / 256"; +_dh = (int) (_margin/(double)256); + //BA.debugLineNum = 193;BA.debugLine="Dim dl As Int = margin - dh"; +_dl = (int) (_margin-_dh); + //BA.debugLineNum = 194;BA.debugLine="WriteString(GS & \"L\")"; +_writestring(_gs+"L"); + //BA.debugLineNum = 195;BA.debugLine="Dim params(2) As Byte"; +_params = new byte[(int) (2)]; +; + //BA.debugLineNum = 196;BA.debugLine="params(0) = dl"; +_params[(int) (0)] = (byte) (_dl); + //BA.debugLineNum = 197;BA.debugLine="params(1) = dh"; +_params[(int) (1)] = (byte) (_dh); + //BA.debugLineNum = 198;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 199;BA.debugLine="End Sub"; +return ""; +} +public String _setlinespacing(int _spacing) throws Exception{ +byte[] _params = null; + //BA.debugLineNum = 217;BA.debugLine="Public Sub setLineSpacing(spacing As Int)"; + //BA.debugLineNum = 218;BA.debugLine="If spacing < 0 Then"; +if (_spacing<0) { + //BA.debugLineNum = 219;BA.debugLine="WriteString(ESC & \"2\")"; +_writestring(_esc+"2"); + }else { + //BA.debugLineNum = 221;BA.debugLine="WriteString(ESC & \"3\")"; +_writestring(_esc+"3"); + //BA.debugLineNum = 222;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 223;BA.debugLine="params(0) = spacing"; +_params[(int) (0)] = (byte) (_spacing); + //BA.debugLineNum = 224;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + }; + //BA.debugLineNum = 226;BA.debugLine="End Sub"; +return ""; +} +public String _setprintwidth(int _width) throws Exception{ +int _dh = 0; +int _dl = 0; +byte[] _params = null; + //BA.debugLineNum = 205;BA.debugLine="Public Sub setPrintWidth(width As Int)"; + //BA.debugLineNum = 206;BA.debugLine="Dim dh As Int = width / 256"; +_dh = (int) (_width/(double)256); + //BA.debugLineNum = 207;BA.debugLine="Dim dl As Int = width - dh"; +_dl = (int) (_width-_dh); + //BA.debugLineNum = 208;BA.debugLine="WriteString(GS & \"W\")"; +_writestring(_gs+"W"); + //BA.debugLineNum = 209;BA.debugLine="Dim params(2) As Byte"; +_params = new byte[(int) (2)]; +; + //BA.debugLineNum = 210;BA.debugLine="params(0) = dl"; +_params[(int) (0)] = (byte) (_dl); + //BA.debugLineNum = 211;BA.debugLine="params(1) = dh"; +_params[(int) (1)] = (byte) (_dh); + //BA.debugLineNum = 212;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 213;BA.debugLine="End Sub"; +return ""; +} +public String _setrelativeprintposn(int _relposn) throws Exception{ +int _dh = 0; +int _dl = 0; +byte[] _params = null; + //BA.debugLineNum = 269;BA.debugLine="Public Sub setRelativePrintPosn(relposn As Int)"; + //BA.debugLineNum = 270;BA.debugLine="Dim dh As Int = relposn / 256"; +_dh = (int) (_relposn/(double)256); + //BA.debugLineNum = 271;BA.debugLine="Dim dl As Int = relposn - dh"; +_dl = (int) (_relposn-_dh); + //BA.debugLineNum = 272;BA.debugLine="WriteString(ESC & \"\\\")"; +_writestring(_esc+"\\"); + //BA.debugLineNum = 273;BA.debugLine="Dim params(2) As Byte"; +_params = new byte[(int) (2)]; +; + //BA.debugLineNum = 274;BA.debugLine="params(0) = dl"; +_params[(int) (0)] = (byte) (_dl); + //BA.debugLineNum = 275;BA.debugLine="params(1) = dh"; +_params[(int) (1)] = (byte) (_dh); + //BA.debugLineNum = 276;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 277;BA.debugLine="End Sub"; +return ""; +} +public String _settabpositions(int[] _tabs) throws Exception{ +byte[] _data = null; +int _i = 0; + //BA.debugLineNum = 255;BA.debugLine="Public Sub setTabPositions(tabs() As Int)"; + //BA.debugLineNum = 256;BA.debugLine="WriteString(ESC & \"D\")"; +_writestring(_esc+"D"); + //BA.debugLineNum = 257;BA.debugLine="Dim data(tabs.Length+1) As Byte"; +_data = new byte[(int) (_tabs.length+1)]; +; + //BA.debugLineNum = 258;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 = 259;BA.debugLine="data(i) = tabs(i)"; +_data[_i] = (byte) (_tabs[_i]); + } +}; + //BA.debugLineNum = 261;BA.debugLine="data(tabs.Length) = 0"; +_data[_tabs.length] = (byte) (0); + //BA.debugLineNum = 262;BA.debugLine="WriteBytes(data)"; +_writebytes(_data); + //BA.debugLineNum = 263;BA.debugLine="End Sub"; +return ""; +} +public String _setusecustomcharacters(boolean _custom) throws Exception{ + //BA.debugLineNum = 329;BA.debugLine="Public Sub setUseCustomCharacters(custom As Boolea"; + //BA.debugLineNum = 330;BA.debugLine="If custom Then"; +if (_custom) { + //BA.debugLineNum = 331;BA.debugLine="WriteString(ESC & \"%1\")"; +_writestring(_esc+"%1"); + }else { + //BA.debugLineNum = 333;BA.debugLine="WriteString(ESC & \"%0\")"; +_writestring(_esc+"%0"); + }; + //BA.debugLineNum = 335;BA.debugLine="End Sub"; +return ""; +} +public gunav2.keymon.com.mx.escposprinter._animage _thresholdimage(gunav2.keymon.com.mx.escposprinter._animage _img,int _threshold) throws Exception{ +byte[] _pixels = null; +int _i = 0; +int _lum = 0; +gunav2.keymon.com.mx.escposprinter._animage _ret = null; + //BA.debugLineNum = 740;BA.debugLine="Sub ThresholdImage(img As AnImage, threshold As In"; + //BA.debugLineNum = 741;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; +_pixels = new byte[_img.Data /*byte[]*/ .length]; +; + //BA.debugLineNum = 742;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 = 743;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 = 744;BA.debugLine="If lum < threshold Then"; +if (_lum<_threshold) { + //BA.debugLineNum = 745;BA.debugLine="lum = 1"; +_lum = (int) (1); + }else { + //BA.debugLineNum = 747;BA.debugLine="lum = 0"; +_lum = (int) (0); + }; + //BA.debugLineNum = 749;BA.debugLine="pixels(i) = lum"; +_pixels[_i] = (byte) (_lum); + } +}; + //BA.debugLineNum = 751;BA.debugLine="Dim ret As AnImage"; +_ret = new gunav2.keymon.com.mx.escposprinter._animage(); + //BA.debugLineNum = 752;BA.debugLine="ret.Width = img.Width"; +_ret.Width /*int*/ = _img.Width /*int*/ ; + //BA.debugLineNum = 753;BA.debugLine="ret.Height = img.Height"; +_ret.Height /*int*/ = _img.Height /*int*/ ; + //BA.debugLineNum = 754;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 755;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 756;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 = 1076;BA.debugLine="Public Sub WriteBarCode(bartype As String, data As"; + //BA.debugLineNum = 1077;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ASCII\")"; +_databytes = _data.getBytes("ASCII"); + //BA.debugLineNum = 1078;BA.debugLine="Dim dlow As Int = databytes.Length"; +_dlow = _databytes.length; + //BA.debugLineNum = 1079;BA.debugLine="Log(\"Barcode \" & bartype & \", Size \" & dlow & \","; +__c.LogImpl("389522179","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0); + //BA.debugLineNum = 1080;BA.debugLine="WriteString(GS & \"k\" & bartype.ToUpperCase.CharAt"; +_writestring(_gs+"k"+BA.ObjectToString(_bartype.toUpperCase().charAt((int) (0)))); + //BA.debugLineNum = 1081;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 1082;BA.debugLine="params(0) = dlow"; +_params[(int) (0)] = (byte) (_dlow); + //BA.debugLineNum = 1083;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1084;BA.debugLine="WriteBytes(databytes)"; +_writebytes(_databytes); + //BA.debugLineNum = 1085;BA.debugLine="End Sub"; +return ""; +} +public String _writebytes(byte[] _data) throws Exception{ + //BA.debugLineNum = 281;BA.debugLine="Public Sub WriteBytes(data() As Byte)"; + //BA.debugLineNum = 282;BA.debugLine="If Connected Then"; +if (_connected) { + //BA.debugLineNum = 283;BA.debugLine="Astream.Write(data)"; +_astream.Write(_data); + }; + //BA.debugLineNum = 285;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 = 1092;BA.debugLine="Public Sub WriteQRCode(size As Int, EC As String,"; + //BA.debugLineNum = 1093;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ISO-8859"; +_databytes = _data.getBytes("ISO-8859-1"); + //BA.debugLineNum = 1094;BA.debugLine="Dim dhigh As Int = databytes.Length / 256"; +_dhigh = (int) (_databytes.length/(double)256); + //BA.debugLineNum = 1095;BA.debugLine="Dim dlow As Int = databytes.Length - dhigh*256"; +_dlow = (int) (_databytes.length-_dhigh*256); + //BA.debugLineNum = 1096;BA.debugLine="Log(\"QR Code : Size \" & size & \", EC \" & EC & \","; +__c.LogImpl("389587716","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0); + //BA.debugLineNum = 1097;BA.debugLine="Dim params(3) As Byte"; +_params = new byte[(int) (3)]; +; + //BA.debugLineNum = 1098;BA.debugLine="params(0) = scale"; +_params[(int) (0)] = (byte) (_scale); + //BA.debugLineNum = 1099;BA.debugLine="params(1) = dlow"; +_params[(int) (1)] = (byte) (_dlow); + //BA.debugLineNum = 1100;BA.debugLine="params(2) = dhigh"; +_params[(int) (2)] = (byte) (_dhigh); + //BA.debugLineNum = 1101;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 = 1102;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1103;BA.debugLine="WriteBytes(databytes)"; +_writebytes(_databytes); + //BA.debugLineNum = 1104;BA.debugLine="End Sub"; +return ""; +} +public String _writestring(String _data) throws Exception{ + //BA.debugLineNum = 291;BA.debugLine="Public Sub WriteString(data As String)"; + //BA.debugLineNum = 292;BA.debugLine="WriteString2(data, \"IBM437\")"; +_writestring2(_data,"IBM437"); + //BA.debugLineNum = 293;BA.debugLine="End Sub"; +return ""; +} +public String _writestring2(String _data,String _encoding) throws Exception{ + //BA.debugLineNum = 299;BA.debugLine="Public Sub WriteString2(data As String, encoding A"; + //BA.debugLineNum = 300;BA.debugLine="Try"; +try { //BA.debugLineNum = 301;BA.debugLine="If Connected Then"; +if (_connected) { + //BA.debugLineNum = 302;BA.debugLine="Astream.Write(data.GetBytes(encoding))"; +_astream.Write(_data.getBytes(_encoding)); + }; + } + catch (Exception e6) { + ba.setLastException(e6); //BA.debugLineNum = 305;BA.debugLine="Log(\"Printer error : \" & LastException.Message)"; +__c.LogImpl("387621638","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0); + //BA.debugLineNum = 306;BA.debugLine="AStream_Error"; +_astream_error(); + }; + //BA.debugLineNum = 308;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/gunav2/keymon/com/mx/fileprovider.java b/B4A/Objects/src/gunav2/keymon/com/mx/fileprovider.java new file mode 100644 index 0000000..04dd80b --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/fileprovider.java @@ -0,0 +1,127 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.fileprovider"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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("940370186",("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/gunav2/keymon/com/mx/firebasemessaging.java b/B4A/Objects/src/gunav2/keymon/com/mx/firebasemessaging.java new file mode 100644 index 0000000..2346081 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/firebasemessaging.java @@ -0,0 +1,556 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.objects.ServiceHelper; +import anywheresoftware.b4a.debug.*; + +public class firebasemessaging extends android.app.Service{ + public static class firebasemessaging_BR extends android.content.BroadcastReceiver { + + @Override + public void onReceive(android.content.Context context, android.content.Intent intent) { + BA.LogInfo("** Receiver (firebasemessaging) OnReceive **"); + android.content.Intent in = new android.content.Intent(context, firebasemessaging.class); + if (intent != null) + in.putExtra("b4a_internal_intent", intent); + ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class); + } + + } + static firebasemessaging mostCurrent; + public static BA processBA; + private ServiceHelper _service; + public static Class getObject() { + return firebasemessaging.class; + } + @Override + public void onCreate() { + super.onCreate(); + mostCurrent = this; + if (processBA == null) { + processBA = new BA(this, null, null, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.firebasemessaging"); + 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, "gunav2.keymon.com.mx.firebasemessaging", processBA, _service, anywheresoftware.b4a.keywords.Common.Density); + } + if (!false && ServiceHelper.StarterHelper.startFromServiceCreate(processBA, false) == false) { + + } + else { + processBA.setActivityPaused(false); + BA.LogInfo("*** Service (firebasemessaging) 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 (firebasemessaging) 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 (firebasemessaging) 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 (firebasemessaging) Destroy (ignored)**"); + } + else { + BA.LogInfo("** Service (firebasemessaging) 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.FirebaseNotificationsService.FirebaseMessageWrapper _fm = null; +public static String _api_key = ""; +public static String _locrequest = ""; +public static anywheresoftware.b4a.phone.PhoneEvents _pe = null; +public static anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +public static de.donmanfred.GZipStringswrapper _gzip = null; +public static String _sprvsr = ""; +public static String _subscrito = ""; +public static String _au = ""; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static String _borragpshist() throws Exception{ + //BA.debugLineNum = 218;BA.debugLine="Sub borraGPSHist"; + //BA.debugLineNum = 219;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"delete FROM"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("delete FROM RUTA_GPS"))); + //BA.debugLineNum = 220;BA.debugLine="End Sub"; +return ""; +} +public static String _borramosarchivogps() throws Exception{ +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; +String _s = ""; +byte[] _t = null; + //BA.debugLineNum = 167;BA.debugLine="Sub borramosArchivoGPS"; + //BA.debugLineNum = 168;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.getDirRootExternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 169;BA.debugLine="Dim s As String = \"\""; +_s = ""; + //BA.debugLineNum = 170;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; +_t = _s.getBytes("UTF-8"); + //BA.debugLineNum = 171;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; +_out.WriteBytes(_t,(int) (0),_t.length); + //BA.debugLineNum = 172;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 173;BA.debugLine="End Sub"; +return ""; +} +public static String _compress(String _str) throws Exception{ +anywheresoftware.b4a.objects.StringUtils _su = null; +byte[] _compressed = null; +String _base64 = ""; + //BA.debugLineNum = 179;BA.debugLine="Sub compress(str As String) As String"; + //BA.debugLineNum = 181;BA.debugLine="Private su As StringUtils"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 182;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)"; +_compressed = _gzip.compress(_str); + //BA.debugLineNum = 183;BA.debugLine="Log($\"CompressedBytesLength: ${compressed.Length}"; +anywheresoftware.b4a.keywords.Common.LogImpl("390636292",("CompressedBytesLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_compressed.length))+""),0); + //BA.debugLineNum = 184;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed"; +_base64 = _su.EncodeBase64(_compressed); + //BA.debugLineNum = 185;BA.debugLine="Log($\"CompressedBytes converted to base64 Length:"; +anywheresoftware.b4a.keywords.Common.LogImpl("390636294",("CompressedBytes converted to base64 Length: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0); + //BA.debugLineNum = 186;BA.debugLine="Log($\"CompressedBytes converted to base64: ${base"; +anywheresoftware.b4a.keywords.Common.LogImpl("390636295",("CompressedBytes converted to base64: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64))+""),0); + //BA.debugLineNum = 187;BA.debugLine="Return base64"; +if (true) return _base64; + //BA.debugLineNum = 188;BA.debugLine="End Sub"; +return ""; +} +public static String _dameruta() throws Exception{ +String _ruta2 = ""; +int _i = 0; + //BA.debugLineNum = 202;BA.debugLine="Sub dameRuta As String"; + //BA.debugLineNum = 203;BA.debugLine="Log(\"dameRuta\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390767361","dameRuta",0); + //BA.debugLineNum = 204;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 205;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select LAT,"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select LAT, LON from RUTA_GPS order by FECHA desc limit 390"))); + //BA.debugLineNum = 206;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 207;BA.debugLine="Dim ruta2 As String = \"\""; +_ruta2 = ""; + //BA.debugLineNum = 208;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 209;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 = 210;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 211;BA.debugLine="ruta2=ruta2&CRLF&c.GetString(\"LAT\")&\",\"&c.GetSt"; +_ruta2 = _ruta2+anywheresoftware.b4a.keywords.Common.CRLF+_c.GetString("LAT")+","+_c.GetString("LON"); + } +}; + }; + //BA.debugLineNum = 214;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 215;BA.debugLine="Return compress(ruta2)"; +if (true) return _compress(_ruta2); + //BA.debugLineNum = 216;BA.debugLine="End Sub"; +return ""; +} +public static String _decompress(String _base64) throws Exception{ +anywheresoftware.b4a.objects.StringUtils _su = null; +byte[] _decompressedbytes = null; +anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null; +String _uncompressed = ""; + //BA.debugLineNum = 190;BA.debugLine="Sub decompress(base64 As String) As String 'ignore"; + //BA.debugLineNum = 192;BA.debugLine="Private su As StringUtils"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 193;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64"; +_decompressedbytes = _su.DecodeBase64(_base64); + //BA.debugLineNum = 194;BA.debugLine="Log($\"decompressedbytesLength: ${decompressedbyte"; +anywheresoftware.b4a.keywords.Common.LogImpl("390701828",("decompressedbytesLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_decompressedbytes.length))+""),0); + //BA.debugLineNum = 195;BA.debugLine="Dim bc As ByteConverter"; +_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); + //BA.debugLineNum = 196;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d"; +_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8"); + //BA.debugLineNum = 197;BA.debugLine="Log($\"uncompressedLength: ${uncompressed.Length}\""; +anywheresoftware.b4a.keywords.Common.LogImpl("390701831",("uncompressedLength: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0); + //BA.debugLineNum = 198;BA.debugLine="Log($\"Decompressed String = ${uncompressed}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("390701832",("Decompressed String = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed))+""),0); + //BA.debugLineNum = 199;BA.debugLine="Return uncompressed"; +if (true) return _uncompressed; + //BA.debugLineNum = 200;BA.debugLine="End Sub"; +return ""; +} +public static String _fm_messagearrived(anywheresoftware.b4a.objects.FirebaseNotificationsService.RemoteMessageWrapper _message) throws Exception{ +anywheresoftware.b4a.objects.collections.List _tipos = null; +anywheresoftware.b4a.objects.collections.Map _params = null; +String _rutagpscmp = ""; + //BA.debugLineNum = 72;BA.debugLine="Sub fm_MessageArrived (Message As RemoteMessage)"; + //BA.debugLineNum = 73;BA.debugLine="Log(\"Message arrived\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177537","Message arrived",0); + //BA.debugLineNum = 74;BA.debugLine="Log($\"Message data: ${Message.GetData}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177538",("Message data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_message.GetData().getObject()))+""),0); + //BA.debugLineNum = 76;BA.debugLine="If Message.GetData.ContainsKey(\"t\") Then"; +if (_message.GetData().ContainsKey((Object)("t"))) { + //BA.debugLineNum = 77;BA.debugLine="Dim tipos As List = Regex.Split(\",\",Message.GetD"; +_tipos = new anywheresoftware.b4a.objects.collections.List(); +_tipos = anywheresoftware.b4a.keywords.Common.ArrayToList(anywheresoftware.b4a.keywords.Common.Regex.Split(",",BA.ObjectToString(_message.GetData().Get((Object)("t"))))); + //BA.debugLineNum = 78;BA.debugLine="If tipos.IndexOf(\"pu\") <> -1 Or tipos.IndexOf(\"a"; +if (_tipos.IndexOf((Object)("pu"))!=-1 || _tipos.IndexOf((Object)("au"))!=-1) { + //BA.debugLineNum = 79;BA.debugLine="Log(\"Es una peticion de ubicacion\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177543","Es una peticion de ubicacion",0); + //BA.debugLineNum = 80;BA.debugLine="locRequest=\"Activa\""; +_locrequest = "Activa"; + //BA.debugLineNum = 81;BA.debugLine="Log(\"Llamamos StartFLPSmall\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177545","Llamamos StartFLPSmall",0); + //BA.debugLineNum = 82;BA.debugLine="CallSubDelayed(Tracker, \"StartFLPSmall\")"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._tracker.getObject()),"StartFLPSmall"); + //BA.debugLineNum = 83;BA.debugLine="CallSubDelayed(Tracker, \"StartFLP\")"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._tracker.getObject()),"StartFLP"); + }; + //BA.debugLineNum = 85;BA.debugLine="If tipos.IndexOf(\"au\") <> -1 Then 'Si es una act"; +if (_tipos.IndexOf((Object)("au"))!=-1) { + //BA.debugLineNum = 86;BA.debugLine="au = 1"; +_au = BA.NumberToString(1); + }; + //BA.debugLineNum = 88;BA.debugLine="If tipos.IndexOf(\"ping\") <> -1 Then 'Si es un pi"; +if (_tipos.IndexOf((Object)("ping"))!=-1) { + //BA.debugLineNum = 89;BA.debugLine="Log(\"Es un ping\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177553","Es un ping",0); + //BA.debugLineNum = 90;BA.debugLine="Log(\"Mandamos pong\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177554","Mandamos pong",0); + //BA.debugLineNum = 91;BA.debugLine="Dim params As Map = CreateMap(\"topic\":Sprvsr,\"t"; +_params = new anywheresoftware.b4a.objects.collections.Map(); +_params = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("topic"),(Object)(_sprvsr),(Object)("title"),(Object)("pong"),(Object)("body"),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ +" - Recibi mensaje "+BA.ObjectToString(_message.GetData().Get((Object)("title")))),(Object)("t"),(Object)("pong")}); + //BA.debugLineNum = 92;BA.debugLine="SendMessage(params)"; +_sendmessage(_params); + }; + //BA.debugLineNum = 94;BA.debugLine="If tipos.IndexOf(\"bgps\") <> -1 Then 'Si es una i"; +if (_tipos.IndexOf((Object)("bgps"))!=-1) { + //BA.debugLineNum = 95;BA.debugLine="Log(\"Es una instruccion de borrar archivo gps\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177559","Es una instruccion de borrar archivo gps",0); + //BA.debugLineNum = 96;BA.debugLine="Log(\"Borramos archivo gps\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177560","Borramos archivo gps",0); + //BA.debugLineNum = 97;BA.debugLine="borramosArchivoGPS"; +_borramosarchivogps(); + }; + //BA.debugLineNum = 99;BA.debugLine="If tipos.IndexOf(\"dr\") <> -1 Then 'Si es una pet"; +if (_tipos.IndexOf((Object)("dr"))!=-1) { + //BA.debugLineNum = 100;BA.debugLine="Log(\"Es una peticion de Ruta GPS\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177564","Es una peticion de Ruta GPS",0); + //BA.debugLineNum = 101;BA.debugLine="Dim rutaGpsCmp As String = dameRuta"; +_rutagpscmp = _dameruta(); + //BA.debugLineNum = 102;BA.debugLine="Dim params As Map = CreateMap(\"topic\":Sprvsr,\"t"; +_params = new anywheresoftware.b4a.objects.collections.Map(); +_params = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("topic"),(Object)(_sprvsr),(Object)("title"),(Object)("ruta"),(Object)("body"),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ +" - Recibi mensaje "+BA.ObjectToString(_message.GetData().Get((Object)("title")))),(Object)("t"),(Object)("ruta"),(Object)("r"),(Object)(_rutagpscmp)}); + //BA.debugLineNum = 103;BA.debugLine="SendMessage(params)"; +_sendmessage(_params); + }; + //BA.debugLineNum = 105;BA.debugLine="If tipos.IndexOf(\"bgps2\") <> -1 Then 'Si es una"; +if (_tipos.IndexOf((Object)("bgps2"))!=-1) { + //BA.debugLineNum = 106;BA.debugLine="Log(\"Es una instruccion de borrar BD gps\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177570","Es una instruccion de borrar BD gps",0); + //BA.debugLineNum = 107;BA.debugLine="Log(\"Borramos BD gps\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177571","Borramos BD gps",0); + //BA.debugLineNum = 108;BA.debugLine="borraGPSHist"; +_borragpshist(); + }; + //BA.debugLineNum = 110;BA.debugLine="If tipos.IndexOf(\"pu\") = -1 And tipos.IndexOf(\"a"; +if (_tipos.IndexOf((Object)("pu"))==-1 && _tipos.IndexOf((Object)("au"))==-1 && _tipos.IndexOf((Object)("ping"))==-1 && _tipos.IndexOf((Object)("dr"))==-1) { + //BA.debugLineNum = 111;BA.debugLine="Log(\"No es ping ni solicitud de ubicacion o rut"; +anywheresoftware.b4a.keywords.Common.LogImpl("390177575","No es ping ni solicitud de ubicacion o ruta, entonces no hacemos nada",0); + }; + }; + //BA.debugLineNum = 119;BA.debugLine="End Sub"; +return ""; +} +public static String _guardainfoenarchivo(String _coords) throws Exception{ +String[] _latlon = null; + //BA.debugLineNum = 161;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore"; + //BA.debugLineNum = 162;BA.debugLine="Log(\"Guardamos ubicacion en BD\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390439681","Guardamos ubicacion en BD",0); + //BA.debugLineNum = 163;BA.debugLine="Dim latlon() As String = Regex.Split(\",\", coords)"; +_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords); + //BA.debugLineNum = 164;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .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)])})); + //BA.debugLineNum = 165;BA.debugLine="End Sub"; +return ""; +} +public static String _mandamosloc(String _coords) throws Exception{ +anywheresoftware.b4a.objects.collections.Map _params = null; + //BA.debugLineNum = 150;BA.debugLine="Sub mandamosLoc(coords As String)"; + //BA.debugLineNum = 153;BA.debugLine="If locRequest=\"Activa\" Then 'Si hay solicitud de"; +if ((_locrequest).equals("Activa")) { + //BA.debugLineNum = 154;BA.debugLine="Dim params As Map = CreateMap(\"topic\":Sprvsr,\"ti"; +_params = new anywheresoftware.b4a.objects.collections.Map(); +_params = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("topic"),(Object)(_sprvsr),(Object)("title"),(Object)("ubicacionRecibida"),(Object)("body"),(Object)(_coords),(Object)("t"),(Object)("u")}); + //BA.debugLineNum = 155;BA.debugLine="SendMessage(params)"; +_sendmessage(_params); + //BA.debugLineNum = 156;BA.debugLine="locRequest=\"Enviada\""; +_locrequest = "Enviada"; + //BA.debugLineNum = 157;BA.debugLine="CallSubDelayed(Tracker,\"CreateLocationRequest\")"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._tracker.getObject()),"CreateLocationRequest"); + }; + //BA.debugLineNum = 159;BA.debugLine="End Sub"; +return ""; +} +public static String _pe_batterychanged(int _level,int _scale,boolean _plugged,anywheresoftware.b4a.objects.IntentWrapper _intent) throws Exception{ + //BA.debugLineNum = 175;BA.debugLine="Sub pe_BatteryChanged (Level As Int, Scale As Int,"; + //BA.debugLineNum = 176;BA.debugLine="B4XPages.MainPage.batt=Level"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._batt /*int*/ = _level; + //BA.debugLineNum = 177;BA.debugLine="End Sub"; +return ""; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 32;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 33;BA.debugLine="Private fm As FirebaseMessaging"; +_fm = new anywheresoftware.b4a.objects.FirebaseNotificationsService.FirebaseMessageWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Private const API_KEY As String = \"AAAAv1qt3Lk:AP"; +_api_key = "AAAAv1qt3Lk:APA91bECIR-pHn6ul53eYyoVlpPuOo85RO-0zcAgEXwE7vqw8DFSbBtCaCINiqWQAkBBZXxHtQMdpU6B-jHIqgFKVL196UgwHv0Gw6_IgmipfV_NiItjzlH9d2QNpGLp9y_JUKVjUEhP"; + //BA.debugLineNum = 35;BA.debugLine="Dim locRequest As String"; +_locrequest = ""; + //BA.debugLineNum = 37;BA.debugLine="Dim pe As PhoneEvents"; +_pe = new anywheresoftware.b4a.phone.PhoneEvents(); + //BA.debugLineNum = 38;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Public GZip As GZipStrings"; +_gzip = new de.donmanfred.GZipStringswrapper(); + //BA.debugLineNum = 40;BA.debugLine="Dim Sprvsr As String = \"Sprv-Cedex\" ' El topico a"; +_sprvsr = "Sprv-Cedex"; + //BA.debugLineNum = 41;BA.debugLine="Dim Subscrito As String"; +_subscrito = ""; + //BA.debugLineNum = 42;BA.debugLine="Dim au As String 'ignore"; +_au = ""; + //BA.debugLineNum = 43;BA.debugLine="End Sub"; +return ""; +} +public static String _sendmessage(anywheresoftware.b4a.objects.collections.Map _params) throws Exception{ +String _topic = ""; +String _title = ""; +String _body = ""; +String _tipo = ""; +String _rutagpscmp = ""; +gunav2.keymon.com.mx.httpjob _job = null; +anywheresoftware.b4a.objects.collections.Map _m = null; +anywheresoftware.b4a.objects.collections.Map _data = null; +anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator _jg = null; + //BA.debugLineNum = 125;BA.debugLine="Sub SendMessage(params As Map)"; + //BA.debugLineNum = 126;BA.debugLine="Dim topic As String= params.Get(\"topic\")"; +_topic = BA.ObjectToString(_params.Get((Object)("topic"))); + //BA.debugLineNum = 127;BA.debugLine="Dim title As String= params.Get(\"title\")"; +_title = BA.ObjectToString(_params.Get((Object)("title"))); + //BA.debugLineNum = 128;BA.debugLine="Dim body As String= params.Get(\"body\")"; +_body = BA.ObjectToString(_params.Get((Object)("body"))); + //BA.debugLineNum = 129;BA.debugLine="Dim tipo As String= params.Get(\"t\")"; +_tipo = BA.ObjectToString(_params.Get((Object)("t"))); + //BA.debugLineNum = 130;BA.debugLine="If params.ContainsKey(\"r\") Then"; +if (_params.ContainsKey((Object)("r"))) { + //BA.debugLineNum = 131;BA.debugLine="Log(\"Con ruta\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390308614","Con ruta",0); + //BA.debugLineNum = 132;BA.debugLine="Dim rutaGpsCmp As String= params.Get(\"r\")"; +_rutagpscmp = BA.ObjectToString(_params.Get((Object)("r"))); + }else { + //BA.debugLineNum = 134;BA.debugLine="Log(\"Sin ruta\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("390308617","Sin ruta",0); + //BA.debugLineNum = 135;BA.debugLine="Dim rutaGpsCmp As String = \"\""; +_rutagpscmp = ""; + }; + //BA.debugLineNum = 137;BA.debugLine="Dim Job As HttpJob"; +_job = new gunav2.keymon.com.mx.httpjob(); + //BA.debugLineNum = 138;BA.debugLine="Job.Initialize(\"fcm\", Me)"; +_job._initialize /*String*/ (processBA,"fcm",firebasemessaging.getObject()); + //BA.debugLineNum = 139;BA.debugLine="Dim m As Map = CreateMap(\"to\": $\"/topics/${topic}"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("to"),(Object)(("/topics/"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_topic))+""))}); + //BA.debugLineNum = 140;BA.debugLine="Dim data As Map = CreateMap(\"title\":title, \"body\""; +_data = new anywheresoftware.b4a.objects.collections.Map(); +_data = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("title"),(Object)(_title),(Object)("body"),(Object)(_body),(Object)("d"),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ ),(Object)("t"),(Object)(_tipo),(Object)("b"),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._batt /*int*/ ),(Object)("mt"),(Object)(anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._montoactual /*String*/ )),(int) (0),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False)),(Object)("r"),(Object)(_rutagpscmp),(Object)("v"),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._v /*String*/ )}); + //BA.debugLineNum = 141;BA.debugLine="m.Put(\"data\", data)"; +_m.Put((Object)("data"),(Object)(_data.getObject())); + //BA.debugLineNum = 142;BA.debugLine="Dim jg As JSONGenerator"; +_jg = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); + //BA.debugLineNum = 143;BA.debugLine="jg.Initialize(m)"; +_jg.Initialize(_m); + //BA.debugLineNum = 144;BA.debugLine="Job.PostString(\"https://fcm.googleapis.com/fcm/se"; +_job._poststring /*String*/ ("https://fcm.googleapis.com/fcm/send",_jg.ToString()); + //BA.debugLineNum = 145;BA.debugLine="Job.GetRequest.SetContentType(\"application/json;c"; +_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().SetContentType("application/json;charset=UTF-8"); + //BA.debugLineNum = 146;BA.debugLine="Job.GetRequest.SetHeader(\"Authorization\", \"key=\""; +_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ().SetHeader("Authorization","key="+_api_key); + //BA.debugLineNum = 147;BA.debugLine="Log(m) 'ignore"; +anywheresoftware.b4a.keywords.Common.LogImpl("390308630",BA.ObjectToString(_m),0); + //BA.debugLineNum = 148;BA.debugLine="End Sub"; +return ""; +} +public static String _service_create() throws Exception{ + //BA.debugLineNum = 45;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 46;BA.debugLine="fm.Initialize(\"fm\") 'Inicializamos FirebaseMessag"; +_fm.Initialize(processBA,"fm"); + //BA.debugLineNum = 47;BA.debugLine="pe.Initialize(\"pe\") 'Para obtener la bateria"; +_pe.Initialize(processBA,"pe"); + //BA.debugLineNum = 48;BA.debugLine="End Sub"; +return ""; +} +public static String _service_destroy() throws Exception{ + //BA.debugLineNum = 121;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 123;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(gunav2.keymon.com.mx.firebasemessaging parent,anywheresoftware.b4a.objects.IntentWrapper _startingintent) { +this.parent = parent; +this._startingintent = _startingintent; +} +gunav2.keymon.com.mx.firebasemessaging parent; +anywheresoftware.b4a.objects.IntentWrapper _startingintent; + +@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="If StartingIntent.IsInitialized Then fm.HandleInt"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_startingintent.IsInitialized()) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +parent._fm.HandleIntent((android.content.Intent)(_startingintent.getObject())); +if (true) break; + +case 6: +//C +this.state = -1; +; + //BA.debugLineNum = 67;BA.debugLine="Sleep(0)"; +anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (0)); +this.state = 7; +return; +case 7: +//C +this.state = -1; +; + //BA.debugLineNum = 68;BA.debugLine="Service.StopAutomaticForeground 'remove if not us"; +parent.mostCurrent._service.StopAutomaticForeground(); + //BA.debugLineNum = 69;BA.debugLine="StartServiceAt(Me, DateTime.Now + 15 * DateTime.T"; +anywheresoftware.b4a.keywords.Common.StartServiceAt(processBA,firebasemessaging.getObject(),(long) (anywheresoftware.b4a.keywords.Common.DateTime.getNow()+15*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute),anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 70;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public static String _subscribetotopics() throws Exception{ + //BA.debugLineNum = 50;BA.debugLine="Public Sub SubscribeToTopics"; + //BA.debugLineNum = 52;BA.debugLine="fm.SubscribeToTopic(\"Trckr\") 'Tracker Global"; +_fm.SubscribeToTopic("Trckr"); + //BA.debugLineNum = 54;BA.debugLine="fm.SubscribeToTopic(\"Trckr-Cedex\") 'Topico de Gun"; +_fm.SubscribeToTopic("Trckr-Cedex"); + //BA.debugLineNum = 55;BA.debugLine="If \"Cdx_\"&B4XPages.MainPage.usuario <> Subscrito"; +if (("Cdx_"+mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ ).equals(_subscrito) == false) { + //BA.debugLineNum = 56;BA.debugLine="fm.SubscribeToTopic(\"Cdx_\"&B4XPages.MainPage.usu"; +_fm.SubscribeToTopic("Cdx_"+mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ ); + //BA.debugLineNum = 57;BA.debugLine="fm.UnsubscribeFromTopic(Subscrito) 'Unsubscribe"; +_fm.UnsubscribeFromTopic(_subscrito); + }; + //BA.debugLineNum = 60;BA.debugLine="Subscrito = \"Cdx_\"&B4XPages.MainPage.usuario"; +_subscrito = "Cdx_"+mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._usuario /*String*/ ; + //BA.debugLineNum = 63;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/httpjob.java b/B4A/Objects/src/gunav2/keymon/com/mx/httpjob.java new file mode 100644 index 0000000..6bc229c --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/httpjob.java @@ -0,0 +1,574 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.httpjob"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 = 13;BA.debugLine="Private taskId As String"; +_taskid = ""; + //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("942270725",("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("942336261",("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("942074117",("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("942139653",("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("941811973",("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("941746444",("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("941484293",("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; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = 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("942008584","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 = ""; +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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("941615365",("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/gunav2/keymon/com/mx/httputils2service.java b/B4A/Objects/src/gunav2/keymon/com/mx/httputils2service.java new file mode 100644 index 0000000..5d932c9 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/httputils2service.java @@ -0,0 +1,235 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static String _completejob(int _taskid,boolean _success,String _errormessage) throws Exception{ +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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("341156614","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{ +gunav2.keymon.com.mx.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("341091074",("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 = (gunav2.keymon.com.mx.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("341091079","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{ +gunav2.keymon.com.mx.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 = (gunav2.keymon.com.mx.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("340960003","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 = 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 = 12;BA.debugLine="Private hc As OkHttpClient"; +_hc = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Private 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("340632327",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0); + //BA.debugLineNum = 35;BA.debugLine="Log(\"Switching to File.DirInternal\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("340632328","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(gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/madewithlove.java b/B4A/Objects/src/gunav2/keymon/com/mx/madewithlove.java new file mode 100644 index 0000000..e4dbd8a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/madewithlove.java @@ -0,0 +1,107 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.madewithlove"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/main.java b/B4A/Objects/src/gunav2/keymon/com/mx/main.java new file mode 100644 index 0000000..3b6cc3a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/main.java @@ -0,0 +1,455 @@ +package gunav2.keymon.com.mx; + + +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 = 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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; + +public static boolean isAnyActivityVisible() { + boolean vis = false; +vis = vis | (main.mostCurrent != null); +vis = vis | (mapa_rutas.mostCurrent != null); +return vis;} +public static String _activity_actionbarhomeclick() throws Exception{ + //BA.debugLineNum = 35;BA.debugLine="Sub Activity_ActionBarHomeClick"; + //BA.debugLineNum = 36;BA.debugLine="ActionBarHomeClicked = True"; +_actionbarhomeclicked = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 37;BA.debugLine="B4XPages.Delegate.Activity_ActionBarHomeClick"; +mostCurrent._b4xpages._delegate /*gunav2.keymon.com.mx.b4xpagesdelegator*/ ._activity_actionbarhomeclick /*String*/ (); + //BA.debugLineNum = 38;BA.debugLine="ActionBarHomeClicked = False"; +_actionbarhomeclicked = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 39;BA.debugLine="End Sub"; +return ""; +} +public static String _activity_create(boolean _firsttime) throws Exception{ +gunav2.keymon.com.mx.b4xpagesmanager _pm = null; + //BA.debugLineNum = 27;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 28;BA.debugLine="Dim pm As B4XPagesManager"; +_pm = new gunav2.keymon.com.mx.b4xpagesmanager(); + //BA.debugLineNum = 29;BA.debugLine="pm.Initialize(Activity)"; +_pm._initialize /*String*/ (mostCurrent.activityBA,mostCurrent._activity); + //BA.debugLineNum = 30;BA.debugLine="End Sub"; +return ""; +} +public static boolean _activity_keypress(int _keycode) throws Exception{ + //BA.debugLineNum = 41;BA.debugLine="Sub Activity_KeyPress (KeyCode As Int) As Boolean"; + //BA.debugLineNum = 42;BA.debugLine="Return B4XPages.Delegate.Activity_KeyPress(KeyCod"; +if (true) return mostCurrent._b4xpages._delegate /*gunav2.keymon.com.mx.b4xpagesdelegator*/ ._activity_keypress /*boolean*/ (_keycode); + //BA.debugLineNum = 43;BA.debugLine="End Sub"; +return false; +} +public static String _activity_pause(boolean _userclosed) throws Exception{ + //BA.debugLineNum = 49;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 50;BA.debugLine="B4XPages.Delegate.Activity_Pause"; +mostCurrent._b4xpages._delegate /*gunav2.keymon.com.mx.b4xpagesdelegator*/ ._activity_pause /*String*/ (); + //BA.debugLineNum = 51;BA.debugLine="End Sub"; +return ""; +} +public static String _activity_permissionresult(String _permission,boolean _result) throws Exception{ + //BA.debugLineNum = 53;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin"; + //BA.debugLineNum = 54;BA.debugLine="B4XPages.Delegate.Activity_PermissionResult(Permi"; +mostCurrent._b4xpages._delegate /*gunav2.keymon.com.mx.b4xpagesdelegator*/ ._activity_permissionresult /*String*/ (_permission,_result); + //BA.debugLineNum = 55;BA.debugLine="End Sub"; +return ""; +} +public static String _activity_resume() throws Exception{ + //BA.debugLineNum = 45;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 46;BA.debugLine="B4XPages.Delegate.Activity_Resume"; +mostCurrent._b4xpages._delegate /*gunav2.keymon.com.mx.b4xpagesdelegator*/ ._activity_resume /*String*/ (); + //BA.debugLineNum = 47;BA.debugLine="End Sub"; +return ""; +} +public static String _create_menu(Object _menu) throws Exception{ + //BA.debugLineNum = 57;BA.debugLine="Sub Create_Menu (Menu As Object)"; + //BA.debugLineNum = 58;BA.debugLine="B4XPages.Delegate.Create_Menu(Menu)"; +mostCurrent._b4xpages._delegate /*gunav2.keymon.com.mx.b4xpagesdelegator*/ ._create_menu /*String*/ (_menu); + //BA.debugLineNum = 59;BA.debugLine="End Sub"; +return ""; +} +public static String _globals() throws Exception{ + //BA.debugLineNum = 23;BA.debugLine="Sub Globals"; + //BA.debugLineNum = 25;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(); +starter._process_globals(); +subs._process_globals(); +appupdater._process_globals(); +firebasemessaging._process_globals(); +mapa_rutas._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 = 19;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 20;BA.debugLine="Public ActionBarHomeClicked As Boolean"; +_actionbarhomeclicked = false; + //BA.debugLineNum = 21;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/gunav2/keymon/com/mx/mapa_rutas.java b/B4A/Objects/src/gunav2/keymon/com/mx/mapa_rutas.java new file mode 100644 index 0000000..1560756 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/mapa_rutas.java @@ -0,0 +1,1237 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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 String _ruta = ""; +public static anywheresoftware.b4a.sql.SQL _skmt = 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 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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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 = 56;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 57;BA.debugLine="Activity.LoadLayout(\"MAPA_RUTAS\")"; +mostCurrent._activity.LoadLayout("MAPA_RUTAS",mostCurrent.activityBA); + //BA.debugLineNum = 61;BA.debugLine="ruta = File.DirInternal"; +_ruta = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); + //BA.debugLineNum = 63;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then"; +if (anywheresoftware.b4a.keywords.Common.File.Exists(_ruta,"kmt.db")==anywheresoftware.b4a.keywords.Common.False) { + //BA.debugLineNum = 64;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d"; +anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",_ruta,"kmt.db"); + }; + //BA.debugLineNum = 66;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 68;BA.debugLine="If(FirstTime) Then"; +if ((_firsttime)) { + //BA.debugLineNum = 69;BA.debugLine="GPS.Initialize(\"GPS\")"; +_gps.Initialize("GPS"); + }; + //BA.debugLineNum = 72;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F"; +if (mostCurrent._mapfragment1.IsGooglePlayServicesAvailable(mostCurrent.activityBA)==anywheresoftware.b4a.keywords.Common.False) { + //BA.debugLineNum = 73;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 = 84;BA.debugLine="MARK_AZUL.IsInitialized"; +mostCurrent._mark_azul.IsInitialized(); + //BA.debugLineNum = 85;BA.debugLine="MARK_ROJO.IsInitialized"; +mostCurrent._mark_rojo.IsInitialized(); + //BA.debugLineNum = 86;BA.debugLine="MARK_VERDE.IsInitialized"; +mostCurrent._mark_verde.IsInitialized(); + //BA.debugLineNum = 88;BA.debugLine="LIST_AZUL.Initialize"; +mostCurrent._list_azul.Initialize(); + //BA.debugLineNum = 89;BA.debugLine="LIST_ROJO.Initialize"; +mostCurrent._list_rojo.Initialize(); + //BA.debugLineNum = 90;BA.debugLine="LIST_VERDE.Initialize"; +mostCurrent._list_verde.Initialize(); + //BA.debugLineNum = 92;BA.debugLine="verde = 0"; +mostCurrent._verde = BA.NumberToString(0); + //BA.debugLineNum = 93;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 94;BA.debugLine="rojo = 0"; +mostCurrent._rojo = BA.NumberToString(0); + //BA.debugLineNum = 95;BA.debugLine="todos = 1"; +mostCurrent._todos = BA.NumberToString(1); + //BA.debugLineNum = 96;BA.debugLine="c=skmt.ExecQuery2(\"select count(*) AS CUANTOS fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select count(*) AS CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"SEMANA"}))); + //BA.debugLineNum = 97;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 98;BA.debugLine="SEMANA = c.GetString(\"CUANTOS\")"; +mostCurrent._semana = _c.GetString("CUANTOS"); + //BA.debugLineNum = 99;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 101;BA.debugLine="If SEMANA > 0 Then"; +if ((double)(Double.parseDouble(mostCurrent._semana))>0) { + //BA.debugLineNum = 102;BA.debugLine="c=skmt.ExecQuery2(\"select CAT_VA_VALOR from CAT_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_skmt.ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"SEMANA"}))); + //BA.debugLineNum = 103;BA.debugLine="c.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 104;BA.debugLine="SEMANA = c.GetString(\"CAT_VA_VALOR\")"; +mostCurrent._semana = _c.GetString("CAT_VA_VALOR"); + //BA.debugLineNum = 105;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 109;BA.debugLine="End Sub"; +return ""; +} +public static String _activity_pause(boolean _userclosed) throws Exception{ + //BA.debugLineNum = 269;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 270;BA.debugLine="GPS.Stop"; +_gps.Stop(); + //BA.debugLineNum = 271;BA.debugLine="End Sub"; +return ""; +} +public static String _activity_resume() throws Exception{ + //BA.debugLineNum = 259;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 261;BA.debugLine="If GPS.GPSEnabled = False Then"; +if (_gps.getGPSEnabled()==anywheresoftware.b4a.keywords.Common.False) { + //BA.debugLineNum = 262;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 = 263;BA.debugLine="StartActivity(GPS.LocationSettingsIntent)"; +anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_gps.getLocationSettingsIntent())); + }else { + //BA.debugLineNum = 265;BA.debugLine="GPS.Start(0, 0)"; +_gps.Start(processBA,(long) (0),(float) (0)); + }; + //BA.debugLineNum = 267;BA.debugLine="End Sub"; +return ""; +} +public static String _b_azul_click() throws Exception{ + //BA.debugLineNum = 305;BA.debugLine="Sub B_AZUL_Click"; + //BA.debugLineNum = 306;BA.debugLine="azul = 1"; +mostCurrent._azul = BA.NumberToString(1); + //BA.debugLineNum = 307;BA.debugLine="verde = 0"; +mostCurrent._verde = BA.NumberToString(0); + //BA.debugLineNum = 308;BA.debugLine="rojo = 0"; +mostCurrent._rojo = BA.NumberToString(0); + //BA.debugLineNum = 309;BA.debugLine="todos = 0"; +mostCurrent._todos = BA.NumberToString(0); + //BA.debugLineNum = 310;BA.debugLine="gmap.Clear"; +mostCurrent._gmap.Clear(); + //BA.debugLineNum = 312;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 314;BA.debugLine="End Sub"; +return ""; +} +public static String _b_rojo_click() throws Exception{ + //BA.debugLineNum = 294;BA.debugLine="Sub B_ROJO_Click"; + //BA.debugLineNum = 295;BA.debugLine="rojo = 1"; +mostCurrent._rojo = BA.NumberToString(1); + //BA.debugLineNum = 296;BA.debugLine="verde = 0"; +mostCurrent._verde = BA.NumberToString(0); + //BA.debugLineNum = 297;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 298;BA.debugLine="todos = 0"; +mostCurrent._todos = BA.NumberToString(0); + //BA.debugLineNum = 299;BA.debugLine="gmap.Clear"; +mostCurrent._gmap.Clear(); + //BA.debugLineNum = 301;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 303;BA.debugLine="End Sub"; +return ""; +} +public static String _b_todos_click() throws Exception{ + //BA.debugLineNum = 274;BA.debugLine="Sub B_TODOS_Click"; + //BA.debugLineNum = 275;BA.debugLine="todos =1"; +mostCurrent._todos = BA.NumberToString(1); + //BA.debugLineNum = 276;BA.debugLine="verde = 0"; +mostCurrent._verde = BA.NumberToString(0); + //BA.debugLineNum = 277;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 278;BA.debugLine="rojo = 0"; +mostCurrent._rojo = BA.NumberToString(0); + //BA.debugLineNum = 280;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 282;BA.debugLine="End Sub"; +return ""; +} +public static String _b_verde_click() throws Exception{ + //BA.debugLineNum = 284;BA.debugLine="Sub B_VERDE_Click"; + //BA.debugLineNum = 285;BA.debugLine="verde = 1"; +mostCurrent._verde = BA.NumberToString(1); + //BA.debugLineNum = 286;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 287;BA.debugLine="rojo = 0"; +mostCurrent._rojo = BA.NumberToString(0); + //BA.debugLineNum = 288;BA.debugLine="todos = 0"; +mostCurrent._todos = BA.NumberToString(0); + //BA.debugLineNum = 289;BA.debugLine="gmap.Clear"; +mostCurrent._gmap.Clear(); + //BA.debugLineNum = 290;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 292;BA.debugLine="End Sub"; +return ""; +} +public static String _globals() throws Exception{ + //BA.debugLineNum = 18;BA.debugLine="Sub Globals"; + //BA.debugLineNum = 19;BA.debugLine="Private gmap As GoogleMap"; +mostCurrent._gmap = new anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Private MapFragment1 As MapFragment"; +mostCurrent._mapfragment1 = new anywheresoftware.b4a.objects.MapFragmentWrapper(); + //BA.debugLineNum = 21;BA.debugLine="Dim Latitud As Double = 0"; +_latitud = 0; + //BA.debugLineNum = 22;BA.debugLine="Dim Longitud As Double = 0"; +_longitud = 0; + //BA.debugLineNum = 23;BA.debugLine="Dim Lat2 As Double = 0"; +_lat2 = 0; + //BA.debugLineNum = 24;BA.debugLine="Dim Lon2 As Double = 0"; +_lon2 = 0; + //BA.debugLineNum = 25;BA.debugLine="Dim p1, p2 As Location"; +mostCurrent._p1 = new anywheresoftware.b4a.gps.LocationWrapper(); +mostCurrent._p2 = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim Distance As Float"; +_distance = 0f; + //BA.debugLineNum = 27;BA.debugLine="Dim boton1 As Button"; +mostCurrent._boton1 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Dim HUE_BLUE As Float"; +_hue_blue = 0f; + //BA.debugLineNum = 29;BA.debugLine="Dim HUE_RED As Float"; +_hue_red = 0f; + //BA.debugLineNum = 30;BA.debugLine="Dim HUE_GREEN As Float"; +_hue_green = 0f; + //BA.debugLineNum = 31;BA.debugLine="Private B_AZUL As Button"; +mostCurrent._b_azul = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 32;BA.debugLine="Private B_ROJO As Button"; +mostCurrent._b_rojo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Private B_VERDE As Button"; +mostCurrent._b_verde = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Private B_TODOS As Button"; +mostCurrent._b_todos = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Dim Tienda As String"; +mostCurrent._tienda = ""; + //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 = 54;BA.debugLine="End Sub"; +return ""; +} +public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _parametro) throws Exception{ + //BA.debugLineNum = 238;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)"; + //BA.debugLineNum = 239;BA.debugLine="MARK_CEDIS.IsInitialized"; +mostCurrent._mark_cedis.IsInitialized(); + //BA.debugLineNum = 257;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(gunav2.keymon.com.mx.mapa_rutas parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.mapa_rutas parent; +String _permission = ""; +boolean _result = false; +anywheresoftware.b4j.object.JavaObject _javamapsobject = null; +int _i = 0; +anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper _aa = null; +int step15; +int limit15; +int step33; +int limit33; +int step46; +int limit46; +int step62; +int limit62; +int step75; +int limit75; + +@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 = 112;BA.debugLine="Log(\"ENTRANDO MapFragment1_Ready\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("391095041","ENTRANDO MapFragment1_Ready",0); + //BA.debugLineNum = 113;BA.debugLine="gmap = MapFragment1.GetMap"; +parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap(); + //BA.debugLineNum = 114;BA.debugLine="gmap.IsInitialized"; +parent.mostCurrent._gmap.IsInitialized(); + //BA.debugLineNum = 118;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA"; +parent._rp.CheckAndRequest(processBA,parent._rp.PERMISSION_ACCESS_FINE_LOCATION); + //BA.debugLineNum = 119;BA.debugLine="Wait For Activity_PermissionResult (Permission As"; +anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, this, null); +this.state = 76; +return; +case 76: +//C +this.state = 1; +_permission = (String) result[0]; +_result = (Boolean) result[1]; +; + //BA.debugLineNum = 120;BA.debugLine="gmap.MyLocationEnabled = Result"; +parent.mostCurrent._gmap.setMyLocationEnabled(_result); + //BA.debugLineNum = 122;BA.debugLine="Dim JavaMapsObject As JavaObject"; +_javamapsobject = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 123;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 = 124;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\","; +_javamapsobject.RunMethod("setMapToolbarEnabled",new Object[]{(Object)(anywheresoftware.b4a.keywords.Common.True)}); + //BA.debugLineNum = 126;BA.debugLine="If azul = 1 Or todos = 1 Then"; +if (true) break; + +case 1: +//if +this.state = 30; +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 = 127;BA.debugLine="c.IsInitialized"; +parent._c.IsInitialized(); + //BA.debugLineNum = 128;BA.debugLine="c=skmt.ExecQuery(\"select CAT_CL_CODIGO,CAT_CL_NO"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO,CAT_CL_NOMBRE,CAT_CL_LAT,CAT_CL_LONG from kmt_info3 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_LAT <> ' ' and CAT_CL_LONG <> ' ' "))); + //BA.debugLineNum = 129;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +parent._skmt.Initialize(parent._ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 130;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 4: +//if +this.state = 23; +if (parent._c.getRowCount()>0) { +this.state = 6; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 131;BA.debugLine="For i = 0 To c.RowCount - 1"; +if (true) break; + +case 7: +//for +this.state = 22; +step15 = 1; +limit15 = (int) (parent._c.getRowCount()-1); +_i = (int) (0) ; +this.state = 77; +if (true) break; + +case 77: +//C +this.state = 22; +if ((step15 > 0 && _i <= limit15) || (step15 < 0 && _i >= limit15)) this.state = 9; +if (true) break; + +case 78: +//C +this.state = 77; +_i = ((int)(0 + _i + step15)) ; +if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 132;BA.debugLine="c.Position = i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 134;BA.debugLine="LatitudRu = 0"; +parent._latitudru = 0; + //BA.debugLineNum = 135;BA.debugLine="If c.GetString(\"CAT_CL_LAT\") <> \"\" Then Latitu"; +if (true) break; + +case 10: +//if +this.state = 15; +if ((parent._c.GetString("CAT_CL_LAT")).equals("") == false) { +this.state = 12; +;}if (true) break; + +case 12: +//C +this.state = 15; +parent._latitudru = (double)(Double.parseDouble(parent._c.GetString("CAT_CL_LAT"))); +if (true) break; + +case 15: +//C +this.state = 16; +; + //BA.debugLineNum = 136;BA.debugLine="LongitudRU = 0"; +parent._longitudru = 0; + //BA.debugLineNum = 137;BA.debugLine="If c.GetString(\"CAT_CL_LONG\") <> \"\" Then Longi"; +if (true) break; + +case 16: +//if +this.state = 21; +if ((parent._c.GetString("CAT_CL_LONG")).equals("") == false) { +this.state = 18; +;}if (true) break; + +case 18: +//C +this.state = 21; +parent._longitudru = (double)(Double.parseDouble(parent._c.GetString("CAT_CL_LONG"))); +if (true) break; + +case 21: +//C +this.state = 78; +; + //BA.debugLineNum = 138;BA.debugLine="CODIGO=c.GetString(\"CAT_CL_CODIGO\")"; +parent.mostCurrent._codigo = parent._c.GetString("CAT_CL_CODIGO"); + //BA.debugLineNum = 139;BA.debugLine="Tienda= c.GetString(\"CAT_CL_NOMBRE\")"; +parent.mostCurrent._tienda = parent._c.GetString("CAT_CL_NOMBRE"); + //BA.debugLineNum = 140;BA.debugLine="MARK_AZUL = gmap.AddMarker2(LatitudRu, Longitu"; +parent.mostCurrent._mark_azul = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_BLUE); + //BA.debugLineNum = 141;BA.debugLine="MARK_AZUL.Snippet = Tienda"; +parent.mostCurrent._mark_azul.setSnippet(parent.mostCurrent._tienda); + if (true) break; +if (true) break; + +case 22: +//C +this.state = 23; +; + if (true) break; + +case 23: +//C +this.state = 24; +; + //BA.debugLineNum = 144;BA.debugLine="c .Close"; +parent._c.Close(); + //BA.debugLineNum = 147;BA.debugLine="If MARK_AZUL.IsInitialized Then LIST_AZUL.Add(MA"; +if (true) break; + +case 24: +//if +this.state = 29; +if (parent.mostCurrent._mark_azul.IsInitialized()) { +this.state = 26; +;}if (true) break; + +case 26: +//C +this.state = 29; +parent.mostCurrent._list_azul.Add((Object)(parent.mostCurrent._mark_azul.getObject())); +if (true) break; + +case 29: +//C +this.state = 30; +; + if (true) break; +; + //BA.debugLineNum = 150;BA.debugLine="If verde =1 Or todos = 1 Then"; + +case 30: +//if +this.state = 53; +if ((parent.mostCurrent._verde).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) { +this.state = 32; +}else { +this.state = 38; +}if (true) break; + +case 32: +//C +this.state = 33; + //BA.debugLineNum = 151;BA.debugLine="c2.IsInitialized"; +parent._c2.IsInitialized(); + //BA.debugLineNum = 152;BA.debugLine="c2=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL_"; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info3 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"))); + //BA.debugLineNum = 153;BA.debugLine="For i = 0 To c2.RowCount -1"; +if (true) break; + +case 33: +//for +this.state = 36; +step33 = 1; +limit33 = (int) (parent._c2.getRowCount()-1); +_i = (int) (0) ; +this.state = 79; +if (true) break; + +case 79: +//C +this.state = 36; +if ((step33 > 0 && _i <= limit33) || (step33 < 0 && _i >= limit33)) this.state = 35; +if (true) break; + +case 80: +//C +this.state = 79; +_i = ((int)(0 + _i + step33)) ; +if (true) break; + +case 35: +//C +this.state = 80; + //BA.debugLineNum = 154;BA.debugLine="c2.Position = i"; +parent._c2.setPosition(_i); + //BA.debugLineNum = 155;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")"; +parent._longitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG"))); + //BA.debugLineNum = 156;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")"; +parent._latitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT"))); + //BA.debugLineNum = 157;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")"; +parent.mostCurrent._codigo = parent._c2.GetString("CAT_CL_CODIGO"); + //BA.debugLineNum = 158;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")"; +parent.mostCurrent._tienda = parent._c2.GetString("CAT_CL_NOMBRE"); + //BA.debugLineNum = 159;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 = 160;BA.debugLine="MARK_VERDE.Snippet = Tienda"; +parent.mostCurrent._mark_verde.setSnippet(parent.mostCurrent._tienda); + if (true) break; +if (true) break; + +case 36: +//C +this.state = 53; +; + if (true) break; + +case 38: +//C +this.state = 39; + //BA.debugLineNum = 163;BA.debugLine="If verde =1 Or todos = 1 Then"; +if (true) break; + +case 39: +//if +this.state = 52; +if ((parent.mostCurrent._verde).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 164;BA.debugLine="c2.IsInitialized"; +parent._c2.IsInitialized(); + //BA.debugLineNum = 165;BA.debugLine="c2=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL"; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info3 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"))); + //BA.debugLineNum = 166;BA.debugLine="For i = 0 To c2.RowCount -1"; +if (true) break; + +case 42: +//for +this.state = 45; +step46 = 1; +limit46 = (int) (parent._c2.getRowCount()-1); +_i = (int) (0) ; +this.state = 81; +if (true) break; + +case 81: +//C +this.state = 45; +if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 44; +if (true) break; + +case 82: +//C +this.state = 81; +_i = ((int)(0 + _i + step46)) ; +if (true) break; + +case 44: +//C +this.state = 82; + //BA.debugLineNum = 167;BA.debugLine="c2.Position = i"; +parent._c2.setPosition(_i); + //BA.debugLineNum = 168;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")"; +parent._longitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG"))); + //BA.debugLineNum = 169;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")"; +parent._latitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT"))); + //BA.debugLineNum = 170;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")"; +parent.mostCurrent._codigo = parent._c2.GetString("CAT_CL_CODIGO"); + //BA.debugLineNum = 171;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")"; +parent.mostCurrent._tienda = parent._c2.GetString("CAT_CL_NOMBRE"); + //BA.debugLineNum = 172;BA.debugLine="MARK_VERDE = gmap.AddMarker2(LatitudRu, Longit"; +parent.mostCurrent._mark_verde = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_GREEN); + //BA.debugLineNum = 173;BA.debugLine="MARK_VERDE.Snippet = Tienda"; +parent.mostCurrent._mark_verde.setSnippet(parent.mostCurrent._tienda); + if (true) break; +if (true) break; + +case 45: +//C +this.state = 46; +; + //BA.debugLineNum = 175;BA.debugLine="c2 .Close"; +parent._c2.Close(); + //BA.debugLineNum = 176;BA.debugLine="If MARK_VERDE.IsInitialized Then LIST_VERDE.Add"; +if (true) break; + +case 46: +//if +this.state = 51; +if (parent.mostCurrent._mark_verde.IsInitialized()) { +this.state = 48; +;}if (true) break; + +case 48: +//C +this.state = 51; +parent.mostCurrent._list_verde.Add((Object)(parent.mostCurrent._mark_verde.getObject())); +if (true) break; + +case 51: +//C +this.state = 52; +; + if (true) break; + +case 52: +//C +this.state = 53; +; + if (true) break; +; + //BA.debugLineNum = 181;BA.debugLine="If rojo =1 Or todos = 1 Then"; + +case 53: +//if +this.state = 75; +if ((parent.mostCurrent._rojo).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) { +this.state = 55; +}else { +this.state = 61; +}if (true) break; + +case 55: +//C +this.state = 56; + //BA.debugLineNum = 182;BA.debugLine="c3.IsInitialized"; +parent._c3.IsInitialized(); + //BA.debugLineNum = 183;BA.debugLine="c3=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL_"; +parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info3 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"))); + //BA.debugLineNum = 184;BA.debugLine="For i = 0 To c3.RowCount -1"; +if (true) break; + +case 56: +//for +this.state = 59; +step62 = 1; +limit62 = (int) (parent._c3.getRowCount()-1); +_i = (int) (0) ; +this.state = 83; +if (true) break; + +case 83: +//C +this.state = 59; +if ((step62 > 0 && _i <= limit62) || (step62 < 0 && _i >= limit62)) this.state = 58; +if (true) break; + +case 84: +//C +this.state = 83; +_i = ((int)(0 + _i + step62)) ; +if (true) break; + +case 58: +//C +this.state = 84; + //BA.debugLineNum = 185;BA.debugLine="c3.Position = i"; +parent._c3.setPosition(_i); + //BA.debugLineNum = 186;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")"; +parent._longitudru = parent._c3.GetDouble("CAT_CL_LONG"); + //BA.debugLineNum = 187;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")"; +parent._latitudru = parent._c3.GetDouble("CAT_CL_LAT"); + //BA.debugLineNum = 188;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")"; +parent.mostCurrent._codigo = parent._c3.GetString("CAT_CL_CODIGO"); + //BA.debugLineNum = 189;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")"; +parent.mostCurrent._tienda = parent._c3.GetString("CAT_CL_NOMBRE"); + //BA.debugLineNum = 190;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 = 191;BA.debugLine="MARK_ROJO.Snippet = Tienda"; +parent.mostCurrent._mark_rojo.setSnippet(parent.mostCurrent._tienda); + if (true) break; +if (true) break; + +case 59: +//C +this.state = 75; +; + if (true) break; + +case 61: +//C +this.state = 62; + //BA.debugLineNum = 194;BA.debugLine="If rojo =1 Or todos = 1 Then"; +if (true) break; + +case 62: +//if +this.state = 74; +if ((parent.mostCurrent._rojo).equals(BA.NumberToString(1)) || (parent.mostCurrent._todos).equals(BA.NumberToString(1))) { +this.state = 64; +}if (true) break; + +case 64: +//C +this.state = 65; + //BA.debugLineNum = 195;BA.debugLine="c3.IsInitialized"; +parent._c3.IsInitialized(); + //BA.debugLineNum = 196;BA.debugLine="c3=skmt.ExecQuery(\"select CAT_CL_CODIGO, CAT_CL"; +parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._skmt.ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE,CAT_CL_LONG,CAT_CL_LAT from kmt_info3 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"))); + //BA.debugLineNum = 197;BA.debugLine="For i = 0 To c3.RowCount -1"; +if (true) break; + +case 65: +//for +this.state = 68; +step75 = 1; +limit75 = (int) (parent._c3.getRowCount()-1); +_i = (int) (0) ; +this.state = 85; +if (true) break; + +case 85: +//C +this.state = 68; +if ((step75 > 0 && _i <= limit75) || (step75 < 0 && _i >= limit75)) this.state = 67; +if (true) break; + +case 86: +//C +this.state = 85; +_i = ((int)(0 + _i + step75)) ; +if (true) break; + +case 67: +//C +this.state = 86; + //BA.debugLineNum = 198;BA.debugLine="c3.Position = i"; +parent._c3.setPosition(_i); + //BA.debugLineNum = 199;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")"; +parent._longitudru = parent._c3.GetDouble("CAT_CL_LONG"); + //BA.debugLineNum = 200;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")"; +parent._latitudru = parent._c3.GetDouble("CAT_CL_LAT"); + //BA.debugLineNum = 201;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")"; +parent.mostCurrent._codigo = parent._c3.GetString("CAT_CL_CODIGO"); + //BA.debugLineNum = 202;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")"; +parent.mostCurrent._tienda = parent._c3.GetString("CAT_CL_NOMBRE"); + //BA.debugLineNum = 203;BA.debugLine="MARK_ROJO = gmap.AddMarker2(LatitudRu, Longitu"; +parent.mostCurrent._mark_rojo = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_RED); + //BA.debugLineNum = 204;BA.debugLine="MARK_ROJO.Snippet = Tienda"; +parent.mostCurrent._mark_rojo.setSnippet(parent.mostCurrent._tienda); + if (true) break; +if (true) break; +; + //BA.debugLineNum = 206;BA.debugLine="If MARK_ROJO.IsInitialized Then LIST_ROJO.Add(M"; + +case 68: +//if +this.state = 73; +if (parent.mostCurrent._mark_rojo.IsInitialized()) { +this.state = 70; +;}if (true) break; + +case 70: +//C +this.state = 73; +parent.mostCurrent._list_rojo.Add((Object)(parent.mostCurrent._mark_rojo.getObject())); +if (true) break; + +case 73: +//C +this.state = 74; +; + //BA.debugLineNum = 207;BA.debugLine="c3.Close"; +parent._c3.Close(); + if (true) break; + +case 74: +//C +this.state = 75; +; + if (true) break; + +case 75: +//C +this.state = -1; +; + //BA.debugLineNum = 216;BA.debugLine="Dim aa As CameraPosition"; +_aa = new anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper(); + //BA.debugLineNum = 217;BA.debugLine="aa.Initialize(LatitudRu,LongitudRU,15)''' RECOMEN"; +_aa.Initialize(parent._latitudru,parent._longitudru,(float) (15)); + //BA.debugLineNum = 218;BA.debugLine="gmap.AnimateCamera(aa)"; +parent.mostCurrent._gmap.AnimateCamera((com.google.android.gms.maps.model.CameraPosition)(_aa.getObject())); + //BA.debugLineNum = 221;BA.debugLine="Dim OnInfoWindowClickListener1 As OnInfoWindowCli"; +parent.mostCurrent._oninfowindowclicklistener1 = new uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap.OnInfoWindowClickListener(); + //BA.debugLineNum = 222;BA.debugLine="OnInfoWindowClickListener1.Initialize(\"OnInfoWind"; +parent.mostCurrent._oninfowindowclicklistener1.Initialize(mostCurrent.activityBA,"OnInfoWindowClickListener1"); + //BA.debugLineNum = 223;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 = 225;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 = 230;BA.debugLine="Sub OnInfoWindowClickListener1_click(Marker1 As Ma"; + //BA.debugLineNum = 231;BA.debugLine="skmt.ExecNonQuery(\"delete from CUENTAA\")"; +_skmt.ExecNonQuery("delete from CUENTAA"); + //BA.debugLineNum = 232;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CUENTAA VALUES (?"; +_skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_marker1.getTitle())})); + //BA.debugLineNum = 233;BA.debugLine="Activity.Finish"; +mostCurrent._activity.Finish(); + //BA.debugLineNum = 234;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente"); + //BA.debugLineNum = 235;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 = 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="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Dim c22 As Cursor"; +_c22 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim c3 As Cursor"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 16;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/newinst2.java b/B4A/Objects/src/gunav2/keymon/com/mx/newinst2.java new file mode 100644 index 0000000..e0279e4 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/newinst2.java @@ -0,0 +1,227 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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("331588353","-- 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("331326209","---- 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("331391745","---- 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("331391747",(""+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("331391748",(""+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("331391749",(""+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("331391750",(""+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("331391753",(""+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("331391755",(""+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/gunav2/keymon/com/mx/preoptimizedclv.java b/B4A/Objects/src/gunav2/keymon/com/mx/preoptimizedclv.java new file mode 100644 index 0000000..5a1b736 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/preoptimizedclv.java @@ -0,0 +1,521 @@ +package gunav2.keymon.com.mx; + + +import anywheresoftware.b4a.BA; +import anywheresoftware.b4a.B4AClass; +import anywheresoftware.b4a.BALayout; +import anywheresoftware.b4a.debug.*; + +public class preoptimizedclv 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, "gunav2.keymon.com.mx.preoptimizedclv"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.preoptimizedclv.class).invoke(this, new Object[] {null}); + else + ba.raiseEvent2(null, true, "class_globals", false); + } + + public anywheresoftware.b4a.keywords.Common __c = null; +public b4a.example3.customlistview _mclv = null; +public anywheresoftware.b4a.objects.collections.List _items = null; +public anywheresoftware.b4a.objects.collections.List _panelscache = null; +public anywheresoftware.b4a.objects.B4XViewWrapper _stubpanel = null; +public boolean _horizontal = false; +public gunav2.keymon.com.mx.b4xset[] _assigneditems = null; +public int _assigneditemsasindex = 0; +public anywheresoftware.b4j.object.JavaObject _jclv = null; +public int _extraitems = 0; +public anywheresoftware.b4a.objects.collections.List _listofitemsthatshouldbeupdated = null; +public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; +public boolean _showscrollbar = false; +public gunav2.keymon.com.mx.b4xseekbar _b4xseekbar1 = null; +public anywheresoftware.b4a.objects.B4XViewWrapper _pnloverlay = null; +public anywheresoftware.b4a.objects.B4XViewWrapper _lblhint = null; +public int _lastuserchangeindex = 0; +public int _numberofsteps = 0; +public int _delaybeforehidingoverlay = 0; +public Object _mcallback = null; +public String _meventname = ""; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public String _additem(int _size,int _clr,Object _value) throws Exception{ +b4a.example3.customlistview._clvitem _newitem = null; + //BA.debugLineNum = 53;BA.debugLine="Public Sub AddItem (Size As Int, Clr As Int, Value"; + //BA.debugLineNum = 54;BA.debugLine="Dim NewItem As CLVItem"; +_newitem = new b4a.example3.customlistview._clvitem(); + //BA.debugLineNum = 55;BA.debugLine="NewItem.Color = Clr"; +_newitem.Color = _clr; + //BA.debugLineNum = 56;BA.debugLine="NewItem.Panel = StubPanel"; +_newitem.Panel = _stubpanel; + //BA.debugLineNum = 57;BA.debugLine="NewItem.Value = Value"; +_newitem.Value = _value; + //BA.debugLineNum = 58;BA.debugLine="NewItem.Size = Size"; +_newitem.Size = _size; + //BA.debugLineNum = 59;BA.debugLine="items.Add(NewItem)"; +_items.Add((Object)(_newitem)); + //BA.debugLineNum = 60;BA.debugLine="End Sub"; +return ""; +} +public void _b4xseekbar1_touchstatechanged(boolean _pressed) throws Exception{ +ResumableSub_B4XSeekBar1_TouchStateChanged rsub = new ResumableSub_B4XSeekBar1_TouchStateChanged(this,_pressed); +rsub.resume(ba, null); +} +public static class ResumableSub_B4XSeekBar1_TouchStateChanged extends BA.ResumableSub { +public ResumableSub_B4XSeekBar1_TouchStateChanged(gunav2.keymon.com.mx.preoptimizedclv parent,boolean _pressed) { +this.parent = parent; +this._pressed = _pressed; +} +gunav2.keymon.com.mx.preoptimizedclv parent; +boolean _pressed; +anywheresoftware.b4j.object.JavaObject _jo = 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 = 164;BA.debugLine="If Pressed = False Then"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_pressed==parent.__c.False) { +this.state = 3; +}else { +this.state = 5; +}if (true) break; + +case 3: +//C +this.state = 6; + //BA.debugLineNum = 165;BA.debugLine="mCLV.JumpToItem(LastUserChangeIndex)"; +parent._mclv._jumptoitem(parent._lastuserchangeindex); + //BA.debugLineNum = 166;BA.debugLine="Sleep(DelayBeforeHidingOverlay)"; +parent.__c.Sleep(ba,this,parent._delaybeforehidingoverlay); +this.state = 7; +return; +case 7: +//C +this.state = 6; +; + //BA.debugLineNum = 167;BA.debugLine="pnlOverlay.Visible = False"; +parent._pnloverlay.setVisible(parent.__c.False); + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 169;BA.debugLine="pnlOverlay.Visible = True"; +parent._pnloverlay.setVisible(parent.__c.True); + //BA.debugLineNum = 171;BA.debugLine="Dim jo As JavaObject = mCLV.sv"; +_jo = new anywheresoftware.b4j.object.JavaObject(); +_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(parent._mclv._sv.getObject())); + //BA.debugLineNum = 172;BA.debugLine="jo.RunMethod(\"fling\", Array(0))"; +_jo.RunMethod("fling",new Object[]{(Object)(0)}); + if (true) break; + +case 6: +//C +this.state = -1; +; + //BA.debugLineNum = 175;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b4xseekbar1_valuechanged(int _value) throws Exception{ +Object _t = null; + //BA.debugLineNum = 177;BA.debugLine="Sub B4XSeekBar1_ValueChanged (Value As Int)"; + //BA.debugLineNum = 178;BA.debugLine="LastUserChangeIndex = Max(0, items.Size - 1 - Val"; +_lastuserchangeindex = (int) (__c.Max(0,_items.getSize()-1-_value)); + //BA.debugLineNum = 179;BA.debugLine="If LastUserChangeIndex < B4XSeekBar1.Interval The"; +if (_lastuserchangeindex<_b4xseekbar1._interval /*int*/ ) { +_lastuserchangeindex = (int) (0);}; + //BA.debugLineNum = 180;BA.debugLine="lblHint.Text = \"\""; +_lblhint.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 181;BA.debugLine="If xui.SubExists(mCallback, mEventName & \"_HintRe"; +if (_xui.SubExists(ba,_mcallback,_meventname+"_HintRequested",(int) (1))) { + //BA.debugLineNum = 182;BA.debugLine="Dim t As Object = CallSub2(mCallback, mEventName"; +_t = __c.CallSubNew2(ba,_mcallback,_meventname+"_HintRequested",(Object)(_lastuserchangeindex)); + //BA.debugLineNum = 183;BA.debugLine="If t <> Null Then"; +if (_t!= null) { + //BA.debugLineNum = 184;BA.debugLine="InternalSetTextOrCSBuilderToLabel(lblHint, t)"; +_internalsettextorcsbuildertolabel(_lblhint,_t); + }; + }; + //BA.debugLineNum = 187;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 mCLV As CustomListView"; +_mclv = new b4a.example3.customlistview(); + //BA.debugLineNum = 4;BA.debugLine="Private items As List"; +_items = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 5;BA.debugLine="Private PanelsCache As List"; +_panelscache = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 6;BA.debugLine="Private StubPanel As B4XView"; +_stubpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Private horizontal As Boolean"; +_horizontal = false; + //BA.debugLineNum = 8;BA.debugLine="Private AssignedItems() As B4XSet"; +_assigneditems = new gunav2.keymon.com.mx.b4xset[(int) (0)]; +{ +int d0 = _assigneditems.length; +for (int i0 = 0;i0 < d0;i0++) { +_assigneditems[i0] = new gunav2.keymon.com.mx.b4xset(); +} +} +; + //BA.debugLineNum = 9;BA.debugLine="Private AssignedItemsAsIndex As Int"; +_assigneditemsasindex = 0; + //BA.debugLineNum = 13;BA.debugLine="Private jclv As JavaObject"; +_jclv = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 15;BA.debugLine="Public ExtraItems As Int = 3"; +_extraitems = (int) (3); + //BA.debugLineNum = 16;BA.debugLine="Private ListOfItemsThatShouldBeUpdated As List"; +_listofitemsthatshouldbeupdated = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 17;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 18;BA.debugLine="Public ShowScrollBar As Boolean = True"; +_showscrollbar = __c.True; + //BA.debugLineNum = 19;BA.debugLine="Public B4XSeekBar1 As B4XSeekBar"; +_b4xseekbar1 = new gunav2.keymon.com.mx.b4xseekbar(); + //BA.debugLineNum = 20;BA.debugLine="Public pnlOverlay As B4XView"; +_pnloverlay = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 21;BA.debugLine="Public lblHint As B4XView"; +_lblhint = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 22;BA.debugLine="Private LastUserChangeIndex As Int"; +_lastuserchangeindex = 0; + //BA.debugLineNum = 23;BA.debugLine="Public NumberOfSteps As Int = 20"; +_numberofsteps = (int) (20); + //BA.debugLineNum = 24;BA.debugLine="Public DelayBeforeHidingOverlay As Int = 50"; +_delaybeforehidingoverlay = (int) (50); + //BA.debugLineNum = 25;BA.debugLine="Private mCallback As Object"; +_mcallback = new Object(); + //BA.debugLineNum = 26;BA.debugLine="Private mEventName As String"; +_meventname = ""; + //BA.debugLineNum = 27;BA.debugLine="End Sub"; +return ""; +} +public String _clearassigneditems() throws Exception{ +gunav2.keymon.com.mx.b4xset _s = null; + //BA.debugLineNum = 151;BA.debugLine="Private Sub ClearAssignedItems"; + //BA.debugLineNum = 152;BA.debugLine="For Each s As B4XSet In AssignedItems"; +{ +final gunav2.keymon.com.mx.b4xset[] group1 = _assigneditems; +final int groupLen1 = group1.length +;int index1 = 0; +; +for (; index1 < groupLen1;index1++){ +_s = group1[index1]; + //BA.debugLineNum = 153;BA.debugLine="s.Clear"; +_s._clear /*String*/ (); + } +}; + //BA.debugLineNum = 155;BA.debugLine="End Sub"; +return ""; +} +public String _commit() throws Exception{ +int _dividersize = 0; +int _totalsize = 0; +int _i = 0; +b4a.example3.customlistview._clvitem _it = null; + //BA.debugLineNum = 62;BA.debugLine="Public Sub Commit"; + //BA.debugLineNum = 63;BA.debugLine="ClearAssignedItems"; +_clearassigneditems(); + //BA.debugLineNum = 64;BA.debugLine="Dim DividerSize As Int = mCLV.DividerSize"; +_dividersize = (int) (_mclv._getdividersize()); + //BA.debugLineNum = 65;BA.debugLine="Dim TotalSize As Int = DividerSize"; +_totalsize = _dividersize; + //BA.debugLineNum = 66;BA.debugLine="For i = 0 To items.Size - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_items.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 67;BA.debugLine="Dim it As CLVItem = items.Get(i)"; +_it = (b4a.example3.customlistview._clvitem)(_items.Get(_i)); + //BA.debugLineNum = 68;BA.debugLine="it.Offset = TotalSize"; +_it.Offset = _totalsize; + //BA.debugLineNum = 69;BA.debugLine="TotalSize = TotalSize + it.Size + DividerSize"; +_totalsize = (int) (_totalsize+_it.Size+_dividersize); + } +}; + //BA.debugLineNum = 71;BA.debugLine="If horizontal Then"; +if (_horizontal) { + //BA.debugLineNum = 72;BA.debugLine="mCLV.sv.ScrollViewContentWidth = TotalSize"; +_mclv._sv.setScrollViewContentWidth(_totalsize); + }else { + //BA.debugLineNum = 74;BA.debugLine="mCLV.sv.ScrollViewContentHeight = TotalSize"; +_mclv._sv.setScrollViewContentHeight(_totalsize); + }; + //BA.debugLineNum = 76;BA.debugLine="B4XSeekBar1.mBase.Visible = ShowScrollBar"; +_b4xseekbar1._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(_showscrollbar); + //BA.debugLineNum = 77;BA.debugLine="If ShowScrollBar Then"; +if (_showscrollbar) { + //BA.debugLineNum = 78;BA.debugLine="B4XSeekBar1.MaxValue = items.Size"; +_b4xseekbar1._maxvalue /*int*/ = _items.getSize(); + //BA.debugLineNum = 79;BA.debugLine="B4XSeekBar1.Interval = items.Size / NumberOfStep"; +_b4xseekbar1._interval /*int*/ = (int) (_items.getSize()/(double)_numberofsteps); + }; + //BA.debugLineNum = 81;BA.debugLine="RaiseVisibleRangeEvent"; +_raisevisiblerangeevent(); + //BA.debugLineNum = 83;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _createpanel() throws Exception{ + //BA.debugLineNum = 90;BA.debugLine="Private Sub CreatePanel As B4XView"; + //BA.debugLineNum = 94;BA.debugLine="Return jclv.RunMethodJO(\"_createpanel\", Array(\"Pa"; +if (true) return (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_jclv.RunMethodJO("_createpanel",new Object[]{(Object)("Panel")}).RunMethod("getObject",(Object[])(__c.Null)))); + //BA.debugLineNum = 96;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel() throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 144;BA.debugLine="Private Sub GetPanel As B4XView"; + //BA.debugLineNum = 145;BA.debugLine="If PanelsCache.Size = 0 Then Return CreatePanel"; +if (_panelscache.getSize()==0) { +if (true) return _createpanel();}; + //BA.debugLineNum = 146;BA.debugLine="Dim p As B4XView = PanelsCache.Get(PanelsCache.Si"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_panelscache.Get((int) (_panelscache.getSize()-1)))); + //BA.debugLineNum = 147;BA.debugLine="PanelsCache.RemoveAt(PanelsCache.Size - 1)"; +_panelscache.RemoveAt((int) (_panelscache.getSize()-1)); + //BA.debugLineNum = 148;BA.debugLine="Return p"; +if (true) return _p; + //BA.debugLineNum = 149;BA.debugLine="End Sub"; +return null; +} +public String _handlescrollbar(int _firstvisible) throws Exception{ + //BA.debugLineNum = 139;BA.debugLine="Private Sub HandleScrollBar (FirstVisible As Int)"; + //BA.debugLineNum = 140;BA.debugLine="If ShowScrollBar = False Then Return"; +if (_showscrollbar==__c.False) { +if (true) return "";}; + //BA.debugLineNum = 141;BA.debugLine="B4XSeekBar1.Value = items.Size - FirstVisible"; +_b4xseekbar1._setvalue /*int*/ ((int) (_items.getSize()-_firstvisible)); + //BA.debugLineNum = 142;BA.debugLine="End Sub"; +return ""; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname,b4a.example3.customlistview _clv) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 29;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; + //BA.debugLineNum = 30;BA.debugLine="mCLV = CLV"; +_mclv = _clv; + //BA.debugLineNum = 31;BA.debugLine="jclv = mCLV 'ignore"; +_jclv = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_mclv)); + //BA.debugLineNum = 36;BA.debugLine="items = jclv.GetFieldJO(\"_items\").RunMethod(\"getO"; +_items = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_jclv.GetFieldJO("_items").RunMethod("getObject",(Object[])(__c.Null)))); + //BA.debugLineNum = 37;BA.debugLine="horizontal = jclv.GetField(\"_horizontal\")"; +_horizontal = BA.ObjectToBoolean(_jclv.GetField("_horizontal")); + //BA.debugLineNum = 39;BA.debugLine="PanelsCache.Initialize"; +_panelscache.Initialize(); + //BA.debugLineNum = 40;BA.debugLine="StubPanel = CreatePanel"; +_stubpanel = _createpanel(); + //BA.debugLineNum = 41;BA.debugLine="StubPanel.AddView(xui.CreatePanel(\"\"), 0, 0, 10di"; +_stubpanel.AddView((android.view.View)(_xui.CreatePanel(ba,"").getObject()),(int) (0),(int) (0),__c.DipToCurrent((int) (10)),__c.DipToCurrent((int) (10))); + //BA.debugLineNum = 42;BA.debugLine="AssignedItems = Array As B4XSet(B4XCollections.Cr"; +_assigneditems = new gunav2.keymon.com.mx.b4xset[]{_b4xcollections._createset /*gunav2.keymon.com.mx.b4xset*/ (ba),_b4xcollections._createset /*gunav2.keymon.com.mx.b4xset*/ (ba)}; + //BA.debugLineNum = 43;BA.debugLine="ListOfItemsThatShouldBeUpdated.Initialize"; +_listofitemsthatshouldbeupdated.Initialize(); + //BA.debugLineNum = 44;BA.debugLine="mCLV.AsView.LoadLayout(\"PCLVSeekBar\")"; +_mclv._asview().LoadLayout("PCLVSeekBar",ba); + //BA.debugLineNum = 45;BA.debugLine="B4XSeekBar1.Size1 = 1dip"; +_b4xseekbar1._size1 /*int*/ = __c.DipToCurrent((int) (1)); + //BA.debugLineNum = 46;BA.debugLine="B4XSeekBar1.Size2 = 1dip"; +_b4xseekbar1._size2 /*int*/ = __c.DipToCurrent((int) (1)); + //BA.debugLineNum = 47;BA.debugLine="B4XSeekBar1.Radius1 = 8dip"; +_b4xseekbar1._radius1 /*int*/ = __c.DipToCurrent((int) (8)); + //BA.debugLineNum = 48;BA.debugLine="B4XSeekBar1.Update"; +_b4xseekbar1._update /*String*/ (); + //BA.debugLineNum = 49;BA.debugLine="mCallback = Callback"; +_mcallback = _callback; + //BA.debugLineNum = 50;BA.debugLine="mEventName = EventName"; +_meventname = _eventname; + //BA.debugLineNum = 51;BA.debugLine="End Sub"; +return ""; +} +public String _internalsettextorcsbuildertolabel(anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{ + //BA.debugLineNum = 189;BA.debugLine="Private Sub InternalSetTextOrCSBuilderToLabel(xlbl"; + //BA.debugLineNum = 191;BA.debugLine="xlbl.Text = Text"; +_xlbl.setText(BA.ObjectToCharSequence(_text)); + //BA.debugLineNum = 201;BA.debugLine="End Sub"; +return ""; +} +public void _listchangedexternally() throws Exception{ +ResumableSub_ListChangedExternally rsub = new ResumableSub_ListChangedExternally(this); +rsub.resume(ba, null); +} +public static class ResumableSub_ListChangedExternally extends BA.ResumableSub { +public ResumableSub_ListChangedExternally(gunav2.keymon.com.mx.preoptimizedclv parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.preoptimizedclv 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 = 158;BA.debugLine="ClearAssignedItems"; +parent._clearassigneditems(); + //BA.debugLineNum = 159;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); +this.state = 1; +return; +case 1: +//C +this.state = -1; +; + //BA.debugLineNum = 160;BA.debugLine="RaiseVisibleRangeEvent"; +parent._raisevisiblerangeevent(); + //BA.debugLineNum = 161;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _raisevisiblerangeevent() throws Exception{ + //BA.debugLineNum = 85;BA.debugLine="Private Sub RaiseVisibleRangeEvent"; + //BA.debugLineNum = 86;BA.debugLine="jclv.RunMethod(\"_resetvisibles\", Null)"; +_jclv.RunMethod("_resetvisibles",(Object[])(__c.Null)); + //BA.debugLineNum = 87;BA.debugLine="jclv.RunMethod(\"_updatevisiblerange\", Null)"; +_jclv.RunMethod("_updatevisiblerange",(Object[])(__c.Null)); + //BA.debugLineNum = 88;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.collections.List _visiblerangechanged(int _firstindex,int _lastindex) throws Exception{ +int _fromindex = 0; +int _toindex = 0; +gunav2.keymon.com.mx.b4xset _prevset = null; +gunav2.keymon.com.mx.b4xset _nextset = null; +int _i = 0; +b4a.example3.customlistview._clvitem _it = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; + //BA.debugLineNum = 98;BA.debugLine="Public Sub VisibleRangeChanged (FirstIndex As Int,"; + //BA.debugLineNum = 99;BA.debugLine="Dim FromIndex As Int = Max(0, FirstIndex - ExtraI"; +_fromindex = (int) (__c.Max(0,_firstindex-_extraitems)); + //BA.debugLineNum = 100;BA.debugLine="Dim ToIndex As Int = Min(mCLV.Size - 1, LastIndex"; +_toindex = (int) (__c.Min(_mclv._getsize()-1,_lastindex+_extraitems)); + //BA.debugLineNum = 101;BA.debugLine="Dim PrevSet As B4XSet = AssignedItems(AssignedIte"; +_prevset = _assigneditems[_assigneditemsasindex]; + //BA.debugLineNum = 102;BA.debugLine="AssignedItemsAsIndex = (AssignedItemsAsIndex + 1)"; +_assigneditemsasindex = (int) ((_assigneditemsasindex+1)%2); + //BA.debugLineNum = 103;BA.debugLine="Dim NextSet As B4XSet = AssignedItems(AssignedIte"; +_nextset = _assigneditems[_assigneditemsasindex]; + //BA.debugLineNum = 104;BA.debugLine="NextSet.Clear"; +_nextset._clear /*String*/ (); + //BA.debugLineNum = 105;BA.debugLine="ListOfItemsThatShouldBeUpdated.Initialize"; +_listofitemsthatshouldbeupdated.Initialize(); + //BA.debugLineNum = 106;BA.debugLine="For i = FromIndex To ToIndex"; +{ +final int step8 = 1; +final int limit8 = _toindex; +_i = _fromindex ; +for (;_i <= limit8 ;_i = _i + step8 ) { + //BA.debugLineNum = 107;BA.debugLine="Dim it As CLVItem = items.Get(i)"; +_it = (b4a.example3.customlistview._clvitem)(_items.Get(_i)); + //BA.debugLineNum = 108;BA.debugLine="If it.Panel = StubPanel Then"; +if ((_it.Panel).equals(_stubpanel)) { + //BA.debugLineNum = 109;BA.debugLine="it.Panel = GetPanel"; +_it.Panel = _getpanel(); + //BA.debugLineNum = 110;BA.debugLine="it.Panel.Tag = i"; +_it.Panel.setTag((Object)(_i)); + //BA.debugLineNum = 111;BA.debugLine="it.Panel.Color = it.Color"; +_it.Panel.setColor(_it.Color); + //BA.debugLineNum = 112;BA.debugLine="If horizontal Then"; +if (_horizontal) { + //BA.debugLineNum = 113;BA.debugLine="mCLV.sv.ScrollViewInnerPanel.AddView(it.Panel,"; +_mclv._sv.getScrollViewInnerPanel().AddView((android.view.View)(_it.Panel.getObject()),_it.Offset,(int) (0),_it.Size,_mclv._sv.getHeight()); + }else { + //BA.debugLineNum = 115;BA.debugLine="mCLV.sv.ScrollViewInnerPanel.AddView(it.Panel,"; +_mclv._sv.getScrollViewInnerPanel().AddView((android.view.View)(_it.Panel.getObject()),(int) (0),_it.Offset,_mclv._sv.getWidth(),_it.Size); + }; + //BA.debugLineNum = 117;BA.debugLine="NextSet.Add(it.Panel)"; +_nextset._add /*String*/ ((Object)(_it.Panel.getObject())); + //BA.debugLineNum = 118;BA.debugLine="ListOfItemsThatShouldBeUpdated.Add(i)"; +_listofitemsthatshouldbeupdated.Add((Object)(_i)); + }else if(_prevset._contains /*boolean*/ ((Object)(_it.Panel.getObject()))) { + //BA.debugLineNum = 120;BA.debugLine="NextSet.Add(it.Panel)"; +_nextset._add /*String*/ ((Object)(_it.Panel.getObject())); + }; + } +}; + //BA.debugLineNum = 123;BA.debugLine="For Each pnl As B4XView In PrevSet.AsList"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +{ +final anywheresoftware.b4a.BA.IterableList group25 = _prevset._aslist /*anywheresoftware.b4a.objects.collections.List*/ (); +final int groupLen25 = group25.getSize() +;int index25 = 0; +; +for (; index25 < groupLen25;index25++){ +_pnl = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(group25.Get(index25))); + //BA.debugLineNum = 124;BA.debugLine="If NextSet.Contains(pnl) = False Then"; +if (_nextset._contains /*boolean*/ ((Object)(_pnl.getObject()))==__c.False) { + //BA.debugLineNum = 125;BA.debugLine="If pnl.Parent.IsInitialized Then"; +if (_pnl.getParent().IsInitialized()) { + //BA.debugLineNum = 126;BA.debugLine="pnl.RemoveViewFromParent"; +_pnl.RemoveViewFromParent(); + //BA.debugLineNum = 127;BA.debugLine="pnl.GetView(0).RemoveAllViews"; +_pnl.GetView((int) (0)).RemoveAllViews(); + //BA.debugLineNum = 128;BA.debugLine="pnl.RemoveAllViews"; +_pnl.RemoveAllViews(); + //BA.debugLineNum = 129;BA.debugLine="PanelsCache.Add(pnl)"; +_panelscache.Add((Object)(_pnl.getObject())); + //BA.debugLineNum = 130;BA.debugLine="Dim it As CLVItem = items.Get(pnl.Tag)"; +_it = (b4a.example3.customlistview._clvitem)(_items.Get((int)(BA.ObjectToNumber(_pnl.getTag())))); + //BA.debugLineNum = 131;BA.debugLine="it.Panel = StubPanel"; +_it.Panel = _stubpanel; + }; + }; + } +}; + //BA.debugLineNum = 135;BA.debugLine="HandleScrollBar (FirstIndex)"; +_handlescrollbar(_firstindex); + //BA.debugLineNum = 136;BA.debugLine="Return ListOfItemsThatShouldBeUpdated"; +if (true) return _listofitemsthatshouldbeupdated; + //BA.debugLineNum = 137;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, "GETPANEL")) + return _getpanel(); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/roundslider.java b/B4A/Objects/src/gunav2/keymon/com/mx/roundslider.java new file mode 100644 index 0000000..e490227 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/roundslider.java @@ -0,0 +1,393 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.roundslider"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/scrollinglabel.java b/B4A/Objects/src/gunav2/keymon/com/mx/scrollinglabel.java new file mode 100644 index 0000000..9a287f0 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/scrollinglabel.java @@ -0,0 +1,422 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.scrollinglabel"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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(gunav2.keymon.com.mx.scrollinglabel parent,anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) { +this.parent = parent; +this._p = _p; +this._originalwidth = _originalwidth; +} +gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/starter.java b/B4A/Objects/src/gunav2/keymon/com/mx/starter.java new file mode 100644 index 0000000..102fb88 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/starter.java @@ -0,0 +1,448 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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.gps.GPS _gps = null; +public static anywheresoftware.b4a.phone.Phone _ph = null; +public static anywheresoftware.b4a.sql.SQL _skmt = null; +public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null; +public static uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper _flp = null; +public static gunav2.keymon.com.mx.dbrequestmanager _reqmanager = null; +public static String _server = ""; +public static anywheresoftware.b4a.objects.Timer _timer1 = null; +public static int _interval = 0; +public static String _ruta = ""; +public static anywheresoftware.b4a.keywords.StringBuilderWrapper _logs = null; +public static anywheresoftware.b4a.phone.Phone.LogCat _logcat = null; +public static boolean _logger = false; +public static String _marcacel = ""; +public static anywheresoftware.b4a.objects.Serial.BluetoothAdmin _btadmin = null; +public static String _mac_impresora = ""; +public static boolean _bluetoothstate = false; +public static anywheresoftware.b4a.gps.LocationWrapper _ubicacionactual = null; +public static boolean _enventa = false; +public static String _muestraprogreso = ""; +public static gunav2.keymon.com.mx.appupdater._mnewversion _newapp = null; +public static String _nuevolink = ""; +public static String _idcliente = ""; +public static String _encuesta = ""; +public static gunav2.keymon.com.mx.fileprovider _ffileprovider = null; +public static String _tabla = ""; +public static boolean _encliente = false; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static boolean _application_error(anywheresoftware.b4a.objects.B4AException _error,String _stacktrace) throws Exception{ +anywheresoftware.b4j.object.JavaObject _jo = null; +long _l = 0L; + //BA.debugLineNum = 149;BA.debugLine="Sub Application_Error (Error As Exception, StackTr"; + //BA.debugLineNum = 151;BA.debugLine="Dim jo As JavaObject"; +_jo = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 152;BA.debugLine="Dim l As Long = 500: jo.InitializeStatic(\"java.la"; +_l = (long) (500); + //BA.debugLineNum = 152;BA.debugLine="Dim l As Long = 500: jo.InitializeStatic(\"java.la"; +_jo.InitializeStatic("java.lang.Thread").RunMethod("sleep",new Object[]{(Object)(_l)}); + //BA.debugLineNum = 153;BA.debugLine="logcat.LogCatStop"; +_logcat.LogCatStop(); + //BA.debugLineNum = 154;BA.debugLine="logs.Append(StackTrace)"; +_logs.Append(_stacktrace); + //BA.debugLineNum = 155;BA.debugLine="Subs.revisaBD"; +mostCurrent._subs._revisabd /*String*/ (processBA); + //BA.debugLineNum = 156;BA.debugLine="Subs.errorLog.ExecNonQuery2(\"INSERT INTO errores("; +mostCurrent._subs._errorlog /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_logs.getObject())})); + //BA.debugLineNum = 157;BA.debugLine="Return True"; +if (true) return anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 158;BA.debugLine="End Sub"; +return false; +} +public static String _btadmin_statechanged(int _newstate,int _oldstate) throws Exception{ + //BA.debugLineNum = 63;BA.debugLine="Private Sub BTAdmin_StateChanged (NewState As Int,"; + //BA.debugLineNum = 64;BA.debugLine="If logger Then Log(\"BT state changed: \" & NewStat"; +if (_logger) { +anywheresoftware.b4a.keywords.Common.LogImpl("3458753","BT state changed: "+BA.NumberToString(_newstate),0);}; + //BA.debugLineNum = 65;BA.debugLine="BluetoothState = NewState = BTAdmin.STATE_ON"; +_bluetoothstate = _newstate==_btadmin.STATE_ON; + //BA.debugLineNum = 67;BA.debugLine="End Sub"; +return ""; +} +public static String _envia_ultima_gps() throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbcommand _cmd = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s7 = null; +int _totalstick = 0; +int _sfsdf = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _s8 = null; +int _totalpaquete = 0; + //BA.debugLineNum = 101;BA.debugLine="Sub ENVIA_ULTIMA_GPS"; + //BA.debugLineNum = 102;BA.debugLine="LogColor(\"Iniciamos ENVIA_ULTIMA_GPS\", Colors.Mag"; +anywheresoftware.b4a.keywords.Common.LogImpl("3851969","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 103;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 104;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 105;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 109;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new gunav2.keymon.com.mx.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 110;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 111;BA.debugLine="cmd.Name = \"UPDATE_GUNA_ACTUAL2_GPS2\""; +_cmd.Name /*String*/ = "UPDATE_GUNA_ACTUAL2_GPS2"; + //BA.debugLineNum = 112;BA.debugLine="Private s7 As Cursor = B4XPages.MainPage.skmt.Exe"; +_s7 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s7 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_CANT) AS PE_CANT, PE_PROID FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO') GROUP BY PE_PROID"))); + //BA.debugLineNum = 113;BA.debugLine="If s7.RowCount > 0 Then"; +if (_s7.getRowCount()>0) { + //BA.debugLineNum = 114;BA.debugLine="Dim totalstick As Int = 0"; +_totalstick = (int) (0); + //BA.debugLineNum = 115;BA.debugLine="For sfsdf = 0 To s7.RowCount -1"; +{ +final int step11 = 1; +final int limit11 = (int) (_s7.getRowCount()-1); +_sfsdf = (int) (0) ; +for (;_sfsdf <= limit11 ;_sfsdf = _sfsdf + step11 ) { + //BA.debugLineNum = 116;BA.debugLine="s7.Position= sfsdf"; +_s7.setPosition(_sfsdf); + //BA.debugLineNum = 117;BA.debugLine="Log(\"ENTRE AQUI\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("3851984","ENTRE AQUI",0); + //BA.debugLineNum = 118;BA.debugLine="Dim s8 As Cursor = B4XPages.MainPage.skmt.ExecQ"; +_s8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_s8 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT ifnull(CAT_GP_CONVERSION3,0) as CAT_GP_CONVERSION3 FROM CAT_GUNAPROD WHERE CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_s7.GetString("PE_PROID")))+"'")))); + //BA.debugLineNum = 119;BA.debugLine="s8.Position = 0"; +_s8.setPosition((int) (0)); + //BA.debugLineNum = 120;BA.debugLine="totalstick = totalstick + (s7.GetString(\"PE_CAN"; +_totalstick = (int) (_totalstick+((double)(Double.parseDouble(_s7.GetString("PE_CANT")))*(double)(Double.parseDouble(_s8.GetString("CAT_GP_CONVERSION3"))))); + //BA.debugLineNum = 121;BA.debugLine="Dim totalpaquete As Int = 0"; +_totalpaquete = (int) (0); + //BA.debugLineNum = 123;BA.debugLine="totalpaquete = totalpaquete +(totalstick/200)"; +_totalpaquete = (int) (_totalpaquete+(_totalstick/(double)200)); + //BA.debugLineNum = 124;BA.debugLine="Log(totalpaquete)"; +anywheresoftware.b4a.keywords.Common.LogImpl("3851991",BA.NumberToString(_totalpaquete),0); + } +}; + }; + //BA.debugLineNum = 130;BA.debugLine="cmd.Parameters = Array As Object(NumberFormat2(B4"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._montoactual /*String*/ )),(int) (0),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False)),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._clientestotal /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._clientesventa /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._batt /*int*/ ),(Object)(0),(Object)(_totalpaquete),(Object)(_totalstick),(Object)(_encuesta),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._almacen /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._rutapreventa /*String*/ )}; + //BA.debugLineNum = 132;BA.debugLine="reqManager.ExecuteCommand(cmd, \"actualizaUltimaGP"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("actualizaUltimaGPS")); + //BA.debugLineNum = 133;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 = 135;BA.debugLine="Timer1.Enabled = False"; +_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 136;BA.debugLine="Timer1.Interval = Interval * 1000"; +_timer1.setInterval((long) (_interval*1000)); + //BA.debugLineNum = 137;BA.debugLine="Timer1.Enabled = True"; +_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 138;BA.debugLine="End Sub"; +return ""; +} +public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 89;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 91;BA.debugLine="End Sub"; +return ""; +} +public static String _jobdone(gunav2.keymon.com.mx.httpjob _job) throws Exception{ +gunav2.keymon.com.mx.dbrequestmanager._dbresult _result = null; + //BA.debugLineNum = 160;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 161;BA.debugLine="Log(\"JOBDONE STARTER\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("31048577","JOBDONE STARTER",0); + //BA.debugLineNum = 163;BA.debugLine="If Job.Success = False Then ' Si hay unerror en e"; +if (_job._success /*boolean*/ ==anywheresoftware.b4a.keywords.Common.False) { + //BA.debugLineNum = 165;BA.debugLine="LogColor(\"Error: \" & Job.ErrorMessage, Colors.re"; +anywheresoftware.b4a.keywords.Common.LogImpl("31048581","Error: "+_job._errormessage /*String*/ ,anywheresoftware.b4a.keywords.Common.Colors.Red); + }else { + //BA.debugLineNum = 167;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 168;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM"; +_result = mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._reqmanager /*gunav2.keymon.com.mx.dbrequestmanager*/ ._handlejob /*gunav2.keymon.com.mx.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 169;BA.debugLine="Log($\"Tag: ${RESULT.tag}, success=${Job.Success"; +anywheresoftware.b4a.keywords.Common.LogImpl("31048585",("Tag: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_result.Tag /*Object*/ )+", success="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_job._success /*boolean*/ ))+""),0); + }; + }; + //BA.debugLineNum = 173;BA.debugLine="End Sub"; +return ""; +} +public static String _logcat_logcatdata(byte[] _buffer,int _length) throws Exception{ + //BA.debugLineNum = 141;BA.debugLine="Private Sub logcat_LogCatData (Buffer() As Byte, L"; + //BA.debugLineNum = 142;BA.debugLine="logs.Append(BytesToString(Buffer, 0, Length, \"utf"; +_logs.Append(anywheresoftware.b4a.keywords.Common.BytesToString(_buffer,(int) (0),_length,"utf8")); + //BA.debugLineNum = 143;BA.debugLine="If logs.Length > 4000 Then"; +if (_logs.getLength()>4000) { + //BA.debugLineNum = 144;BA.debugLine="logs.Remove(0, logs.Length - 2000) 'Obtenemos lo"; +_logs.Remove((int) (0),(int) (_logs.getLength()-2000)); + }; + //BA.debugLineNum = 146;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 gps As GPS"; +_gps = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 10;BA.debugLine="Dim ph As Phone"; +_ph = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 11;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 12;BA.debugLine="Public rp As RuntimePermissions"; +_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); + //BA.debugLineNum = 13;BA.debugLine="Public FLP As FusedLocationProvider"; +_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new gunav2.keymon.com.mx.dbrequestmanager(); + //BA.debugLineNum = 16;BA.debugLine="Dim server As String = \"http://keymon.net:1782\""; +_server = "http://keymon.net:1782"; + //BA.debugLineNum = 18;BA.debugLine="Dim Timer1 As Timer"; +_timer1 = new anywheresoftware.b4a.objects.Timer(); + //BA.debugLineNum = 19;BA.debugLine="Dim Interval As Int = 300"; +_interval = (int) (300); + //BA.debugLineNum = 20;BA.debugLine="Dim ruta As String = File.DirInternal"; +_ruta = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); + //BA.debugLineNum = 22;BA.debugLine="Private logs As StringBuilder"; +_logs = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 23;BA.debugLine="Private logcat As LogCat"; +_logcat = new anywheresoftware.b4a.phone.Phone.LogCat(); + //BA.debugLineNum = 24;BA.debugLine="Dim logger As Boolean = False"; +_logger = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 25;BA.debugLine="Dim marcaCel As String = ph.manufacturer"; +_marcacel = _ph.getManufacturer(); + //BA.debugLineNum = 26;BA.debugLine="Private BTAdmin As BluetoothAdmin"; +_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); + //BA.debugLineNum = 27;BA.debugLine="Dim MAC_IMPRESORA As String"; +_mac_impresora = ""; + //BA.debugLineNum = 28;BA.debugLine="Public BluetoothState As Boolean"; +_bluetoothstate = false; + //BA.debugLineNum = 29;BA.debugLine="Dim ubicacionActual As Location"; +_ubicacionactual = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 30;BA.debugLine="Dim enVenta As Boolean = False"; +_enventa = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 31;BA.debugLine="Dim muestraProgreso = 0 'Parte de la funcionalida"; +_muestraprogreso = BA.NumberToString(0); + //BA.debugLineNum = 32;BA.debugLine="Public newApp As mNewVersion 'Parte de la funcion"; +_newapp = new gunav2.keymon.com.mx.appupdater._mnewversion(); + //BA.debugLineNum = 33;BA.debugLine="Dim nuevoLink As String"; +_nuevolink = ""; + //BA.debugLineNum = 34;BA.debugLine="Dim idCliente As String = \"\""; +_idcliente = ""; + //BA.debugLineNum = 35;BA.debugLine="Dim encuesta As String = 0"; +_encuesta = BA.NumberToString(0); + //BA.debugLineNum = 36;BA.debugLine="Public fFileProvider As FileProvider"; +_ffileprovider = new gunav2.keymon.com.mx.fileprovider(); + //BA.debugLineNum = 37;BA.debugLine="Dim tabla As String"; +_tabla = ""; + //BA.debugLineNum = 38;BA.debugLine="Dim enCliente As Boolean = False"; +_encliente = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 39;BA.debugLine="End Sub"; +return ""; +} +public static String _service_create() throws Exception{ + //BA.debugLineNum = 41;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 44;BA.debugLine="gps.Initialize(\"GPS\")"; +_gps.Initialize("GPS"); + //BA.debugLineNum = 45;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._firebasemessaging.getObject()),"SubscribeToTopics"); + //BA.debugLineNum = 46;BA.debugLine="BTAdmin.Initialize(\"admin\")"; +_btadmin.Initialize(processBA,"admin"); + //BA.debugLineNum = 47;BA.debugLine="Timer1.Initialize(\"Timer1\", Interval * 1000)"; +_timer1.Initialize(processBA,"Timer1",(long) (_interval*1000)); + //BA.debugLineNum = 48;BA.debugLine="Timer1.Enabled = True"; +_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 51;BA.debugLine="logcat.LogCatStart(Array As String(\"-v\",\"raw\",\"*:"; +_logcat.LogCatStart(processBA,new String[]{"-v","raw","*:F","B4A:v"},"logcat"); + //BA.debugLineNum = 53;BA.debugLine="logs.Initialize"; +_logs.Initialize(); + //BA.debugLineNum = 54;BA.debugLine="fFileProvider.Initialize"; +_ffileprovider._initialize /*String*/ (processBA); + //BA.debugLineNum = 55;BA.debugLine="CallSubDelayed(FirebaseMessaging, \"SubscribeToTop"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._firebasemessaging.getObject()),"SubscribeToTopics"); + //BA.debugLineNum = 56;BA.debugLine="ubicacionActual.Initialize"; +_ubicacionactual.Initialize(); + //BA.debugLineNum = 57;BA.debugLine="If File.Exists(File.DirInternal, \"kmt.db\") = Fals"; +if (anywheresoftware.b4a.keywords.Common.File.Exists(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db")==anywheresoftware.b4a.keywords.Common.False) { + //BA.debugLineNum = 58;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", File.DirInte"; +anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db"); + }; + //BA.debugLineNum = 60;BA.debugLine="skmt.Initialize(File.DirInternal,\"kmt.db\", True)"; +_skmt.Initialize(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 61;BA.debugLine="End Sub"; +return ""; +} +public static String _service_destroy() throws Exception{ + //BA.debugLineNum = 97;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 99;BA.debugLine="End Sub"; +return ""; +} +public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _s = null; + //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 = 71;BA.debugLine="Subs.revisaBD"; +mostCurrent._subs._revisabd /*String*/ (processBA); + //BA.debugLineNum = 72;BA.debugLine="Log(marcaCel)"; +anywheresoftware.b4a.keywords.Common.LogImpl("3524291",_marcacel,0); + //BA.debugLineNum = 73;BA.debugLine="Private s As Cursor = skmt.ExecQuery(\"select * fr"; +_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)(_skmt.ExecQuery("select * from cat_variables where cat_va_descripcion = 'DBReqServer'"))); + //BA.debugLineNum = 74;BA.debugLine="If s.RowCount > 0 Then 'Si tenemso valor en BD lo"; +if (_s.getRowCount()>0) { + //BA.debugLineNum = 75;BA.debugLine="s.Position = 0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 76;BA.debugLine="server = s.GetString(\"CAT_VA_VALOR\")"; +_server = _s.GetString("CAT_VA_VALOR"); + }else { + //BA.debugLineNum = 78;BA.debugLine="skmt.ExecNonQuery2(\"delete from CAT_VARIABLES wh"; +_skmt.ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer")})); + //BA.debugLineNum = 79;BA.debugLine="skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIABLES(CA"; +_skmt.ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("DBReqServer"),(Object)(_server)})); + }; + //BA.debugLineNum = 81;BA.debugLine="reqManager.Initialize(Me, server)"; +_reqmanager._initialize /*String*/ (processBA,starter.getObject(),_server); + //BA.debugLineNum = 82;BA.debugLine="End Sub"; +return ""; +} +public static String _service_taskremoved() throws Exception{ + //BA.debugLineNum = 93;BA.debugLine="Sub Service_TaskRemoved"; + //BA.debugLineNum = 95;BA.debugLine="End Sub"; +return ""; +} +public static String _timer1_tick() throws Exception{ + //BA.debugLineNum = 84;BA.debugLine="Private Sub Timer1_Tick"; + //BA.debugLineNum = 86;BA.debugLine="ENVIA_ULTIMA_GPS"; +_envia_ultima_gps(); + //BA.debugLineNum = 87;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/subs.java b/B4A/Objects/src/gunav2/keymon/com/mx/subs.java new file mode 100644 index 0000000..9211e3e --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/subs.java @@ -0,0 +1,3802 @@ +package gunav2.keymon.com.mx; + + +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 static boolean _subslogs = false; +public static anywheresoftware.b4a.sql.SQL _skmt = null; +public static anywheresoftware.b4a.objects.IntentWrapper _in = null; +public static boolean _intentusado = false; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static String _actualizaproducto(anywheresoftware.b4a.BA _ba,String _cedis,String _costou,String _cant,String _nombre,String _prodid,String _clienteid,String _fecha,String _usuario,String _rutav,String _preciosin,String _tipoventa,String _dev,String _futuro) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +int _antcant = 0; +int _difcant = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pe = null; + //BA.debugLineNum = 1762;BA.debugLine="Sub actualizaProducto(cedis As String, costoU As S"; + //BA.debugLineNum = 1763;BA.debugLine="If nombre.Length < 6 Then ToastMessageShow(\"(actu"; +if (_nombre.length()<6) { +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("(actualizaProducto) El nombre del producto no es valido "+_nombre),anywheresoftware.b4a.keywords.Common.True);}; + //BA.debugLineNum = 1764;BA.debugLine="precioSin = NumberFormat2(precioSin, 1, 2, 2, Fal"; +_preciosin = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_preciosin)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 1765;BA.debugLine="costoU = NumberFormat2(costoU, 1, 2, 2, False)"; +_costou = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_costou)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 1766;BA.debugLine="LogColor($\"actualizaProducto, c=${clienteId}, p=$"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058628",("actualizaProducto, c="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+", p="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", nombre="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+", cant="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", cedis="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+", tipo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+""),anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 1769;BA.debugLine="If dev = 0 Then"; +if ((_dev).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1770;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)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' and PE_CEDIS <> 'DUR' AND PE_FUTURO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_futuro))+"'")))); + //BA.debugLineNum = 1771;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1773;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1774;BA.debugLine="Private antCant As Int = 0"; +_antcant = (int) (0); + //BA.debugLineNum = 1775;BA.debugLine="If IsNumber(c.GetInt(\"PE_CANT\")) Then antCant=c"; +if (anywheresoftware.b4a.keywords.Common.IsNumber(BA.NumberToString(_c.GetInt("PE_CANT")))) { +_antcant = _c.GetInt("PE_CANT");}; + //BA.debugLineNum = 1776;BA.debugLine="Private difCant As Int = cant - antCant"; +_difcant = (int) ((double)(Double.parseDouble(_cant))-_antcant); + //BA.debugLineNum = 1777;BA.debugLine="Starter.skmt.ExecNonQuery($\"update pedido set p"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update pedido set pe_cant = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", pe_costo_tot = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.NumberFormat2(((double)(Double.parseDouble(_cant))*(double)(Double.parseDouble(_c.GetString("PE_COSTOU")))),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False)))+", pe_folio = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+"' where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FUTURO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_futuro))+"' ")); + //BA.debugLineNum = 1778;BA.debugLine="If cedis <> \"DUR\" Then Starter.skmt.ExecNonQuer"; +if ((_cedis).equals("DUR") == false) { +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_tipoventa)))+" set cat_gp_almacen = cat_gp_almacen - ("+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_difcant))+") where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' "));}; + //BA.debugLineNum = 1779;BA.debugLine="If cant = 0 Then"; +if ((_cant).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1780;BA.debugLine="LogColor($\"BORRAMOS PRODUCTO - ${prodId}\"$, Co"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058642",("BORRAMOS PRODUCTO - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+""),anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 1781;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedido"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FUTURO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_futuro))+"' ")); + //BA.debugLineNum = 1782;BA.debugLine="Log($\"Borramos pe_cedis='${cedis}' and pe_proi"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058644",("Borramos pe_cedis='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"'"),0); + //BA.debugLineNum = 1783;BA.debugLine="Private pe As Cursor = Starter.skmt.ExecQuery("; +_pe = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pe = (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(pe_cliente) as cuantosPedidos from pedido where pe_cliente In (select cuenta from cuentaa)"))); + //BA.debugLineNum = 1784;BA.debugLine="pe.Position=0"; +_pe.setPosition((int) (0)); + //BA.debugLineNum = 1785;BA.debugLine="If pe.GetString(\"cuantosPedidos\") = 0 Then"; +if ((_pe.GetString("cuantosPedidos")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1786;BA.debugLine="Log(\"###### delete from pedido_cliente - \""; +anywheresoftware.b4a.keywords.Common.LogImpl("312058648","###### delete from pedido_cliente - "+_traecliente(_ba)+"|"+_clienteid,0); + //BA.debugLineNum = 1787;BA.debugLine="Log($\"delete from pedido_cliente where PC_CLI"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058649",("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'"),0); + //BA.debugLineNum = 1788;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedid"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'")); + }; + }; + }else { + //BA.debugLineNum = 1794;BA.debugLine="If cant > 0 Then guardaProductoSinGestion(cedis"; +if ((double)(Double.parseDouble(_cant))>0) { +_guardaproductosingestion(_ba,_cedis,_costou,_cant,_nombre,_prodid,_clienteid,_fecha,_usuario,_rutav,_preciosin,_tipoventa,_futuro);}; + }; + //BA.debugLineNum = 1796;BA.debugLine="c.Close"; +_c.Close(); + }else if((_dev).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 1798;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)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' and PE_CEDIS = 'DUR' AND PE_FUTURO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_futuro))+"' ")))); + //BA.debugLineNum = 1799;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1801;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1802;BA.debugLine="Private antCant As Int = 0"; +_antcant = (int) (0); + //BA.debugLineNum = 1803;BA.debugLine="If IsNumber(c.GetInt(\"PE_CANT\")) Then antCant=c"; +if (anywheresoftware.b4a.keywords.Common.IsNumber(BA.NumberToString(_c.GetInt("PE_CANT")))) { +_antcant = _c.GetInt("PE_CANT");}; + //BA.debugLineNum = 1804;BA.debugLine="Private difCant As Int = cant - antCant"; +_difcant = (int) ((double)(Double.parseDouble(_cant))-_antcant); + //BA.debugLineNum = 1805;BA.debugLine="Starter.skmt.ExecNonQuery($\"update pedido set p"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update pedido set pe_cant = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", pe_costo_tot = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.NumberFormat2(((double)(Double.parseDouble(_cant))*(double)(Double.parseDouble(_c.GetString("PE_COSTOU")))),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False)))+", pe_folio = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipoventa))+"' where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FUTURO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_futuro))+"' ")); + //BA.debugLineNum = 1806;BA.debugLine="If cedis <> \"DUR\" Then Starter.skmt.ExecNonQuer"; +if ((_cedis).equals("DUR") == false) { +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_tipoventa)))+" set cat_gp_almacen = cat_gp_almacen - ("+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_difcant))+") where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' "));}; + //BA.debugLineNum = 1807;BA.debugLine="If cant = 0 Then"; +if ((_cant).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1808;BA.debugLine="LogColor($\"BORRAMOS PRODUCTO - ${prodId}\"$, Co"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058670",("BORRAMOS PRODUCTO - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+""),anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 1809;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedido"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"' AND PE_FUTURO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_futuro))+"' ")); + //BA.debugLineNum = 1810;BA.debugLine="Log($\"Borramos pe_cedis='${cedis}' and pe_proi"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058672",("Borramos pe_cedis='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cedis))+"' and pe_proid='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and pe_cliente='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteid))+"'"),0); + //BA.debugLineNum = 1811;BA.debugLine="Private pe As Cursor = Starter.skmt.ExecQuery("; +_pe = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pe = (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(pe_cliente) as cuantosPedidos from pedido where pe_cliente In (select cuenta from cuentaa)"))); + //BA.debugLineNum = 1812;BA.debugLine="pe.Position=0"; +_pe.setPosition((int) (0)); + //BA.debugLineNum = 1813;BA.debugLine="If pe.GetString(\"cuantosPedidos\") = 0 Then"; +if ((_pe.GetString("cuantosPedidos")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1814;BA.debugLine="Log(\"###### delete from pedido_cliente - \""; +anywheresoftware.b4a.keywords.Common.LogImpl("312058676","###### delete from pedido_cliente - "+_traecliente(_ba)+"|"+_clienteid,0); + //BA.debugLineNum = 1815;BA.debugLine="Log($\"delete from pedido_cliente where PC_CLI"; +anywheresoftware.b4a.keywords.Common.LogImpl("312058677",("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'"),0); + //BA.debugLineNum = 1816;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedid"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'")); + }; + }; + }else { + //BA.debugLineNum = 1822;BA.debugLine="If cant > 0 Then guardaProductoSinGestion(cedis"; +if ((double)(Double.parseDouble(_cant))>0) { +_guardaproductosingestion(_ba,_cedis,_costou,_cant,_nombre,_prodid,_clienteid,_fecha,_usuario,_rutav,_preciosin,_tipoventa,_futuro);}; + }; + //BA.debugLineNum = 1824;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 1827;BA.debugLine="End Sub"; +return ""; +} +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 = 1293;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri"; + //BA.debugLineNum = 1294;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 1295;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._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 = 1296;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1297;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; +if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1298;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._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 = 1299;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +anywheresoftware.b4a.keywords.Common.LogImpl("310878982",("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 = 1303;BA.debugLine="Try"; +try { //BA.debugLineNum = 1304;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"ALTER TAB"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._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 = 1305;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +anywheresoftware.b4a.keywords.Common.LogImpl("310878988",("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 = 1307;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("310878990",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + }; + //BA.debugLineNum = 1309;BA.debugLine="Log(2)"; +anywheresoftware.b4a.keywords.Common.LogImpl("310878992",BA.NumberToString(2),0); + }; + //BA.debugLineNum = 1311;BA.debugLine="End Sub"; +return ""; +} +public static boolean _alcanzanlosvariablesparapromo(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _promomap,anywheresoftware.b4a.objects.collections.Map _inventariosinfijos) throws Exception{ +boolean _thislog = false; +int _totalprodsvariables = 0; +int _totalprodsvariables2 = 0; +anywheresoftware.b4a.objects.collections.List _prodsvariables = null; +anywheresoftware.b4a.objects.collections.List _prodsvariables2 = null; +int _p = 0; +String _t = ""; +String _p2 = ""; +boolean _res = false; +boolean _res1 = false; +boolean _res2 = false; + //BA.debugLineNum = 2178;BA.debugLine="Sub alcanzanLosVariablesParaPromo(promoMap As Map,"; + //BA.debugLineNum = 2179;BA.debugLine="Private thisLog As Boolean = False 'Si es verdade"; +_thislog = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 2180;BA.debugLine="If thisLog Then LogColor(\"Inventario inicial: \"&i"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("313041666","Inventario inicial: "+BA.ObjectToString(_inventariosinfijos),anywheresoftware.b4a.keywords.Common.Colors.Gray);}; + //BA.debugLineNum = 2181;BA.debugLine="Private totalProdsVariables As Int = 0"; +_totalprodsvariables = (int) (0); + //BA.debugLineNum = 2182;BA.debugLine="Private totalProdsVariables2 As Int = 0"; +_totalprodsvariables2 = (int) (0); + //BA.debugLineNum = 2184;BA.debugLine="Private prodsVariables As List = promoMap.get(\"pr"; +_prodsvariables = new anywheresoftware.b4a.objects.collections.List(); +_prodsvariables = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsVariables")))); + //BA.debugLineNum = 2185;BA.debugLine="Private prodsVariables2 As List = promoMap.get(\"p"; +_prodsvariables2 = new anywheresoftware.b4a.objects.collections.List(); +_prodsvariables2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsVariables2")))); + //BA.debugLineNum = 2186;BA.debugLine="For p = 0 To prodsVariables.Size - 1"; +{ +final int step7 = 1; +final int limit7 = (int) (_prodsvariables.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit7 ;_p = _p + step7 ) { + //BA.debugLineNum = 2187;BA.debugLine="Private t As String = prodsVariables.Get(p) 'Obt"; +_t = BA.ObjectToString(_prodsvariables.Get(_p)); + //BA.debugLineNum = 2189;BA.debugLine="If inventarioSinFijos.ContainsKey(t) Then 'Si ex"; +if (_inventariosinfijos.ContainsKey((Object)(_t))) { + //BA.debugLineNum = 2190;BA.debugLine="Private p2 As String = inventarioSinFijos.Get(t"; +_p2 = BA.ObjectToString(_inventariosinfijos.Get((Object)(_t))); + //BA.debugLineNum = 2192;BA.debugLine="totalProdsVariables = totalProdsVariables + p2"; +_totalprodsvariables = (int) (_totalprodsvariables+(double)(Double.parseDouble(_p2))); + //BA.debugLineNum = 2194;BA.debugLine="If thisLog Then Log($\"prod ${t}, hay: ${p2}\"$)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("313041680",("prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", hay: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p2))+""),0);}; + }; + } +}; + //BA.debugLineNum = 2197;BA.debugLine="For p = 0 To prodsVariables2.Size - 1"; +{ +final int step15 = 1; +final int limit15 = (int) (_prodsvariables2.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit15 ;_p = _p + step15 ) { + //BA.debugLineNum = 2198;BA.debugLine="Private t As String = prodsVariables2.Get(p) 'Ob"; +_t = BA.ObjectToString(_prodsvariables2.Get(_p)); + //BA.debugLineNum = 2199;BA.debugLine="If inventarioSinFijos.ContainsKey(t) Then 'Si ex"; +if (_inventariosinfijos.ContainsKey((Object)(_t))) { + //BA.debugLineNum = 2200;BA.debugLine="Private p2 As String = inventarioSinFijos.Get(t"; +_p2 = BA.ObjectToString(_inventariosinfijos.Get((Object)(_t))); + //BA.debugLineNum = 2201;BA.debugLine="totalProdsVariables2 = totalProdsVariables2 + p"; +_totalprodsvariables2 = (int) (_totalprodsvariables2+(double)(Double.parseDouble(_p2))); + //BA.debugLineNum = 2202;BA.debugLine="If thisLog Then Log($\"prod ${t}, hay: ${p2}\"$)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("313041688",("prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", hay: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p2))+""),0);}; + }; + } +}; + //BA.debugLineNum = 2205;BA.debugLine="If thisLog Then Log(\"Total prods variables=\" & to"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("313041691","Total prods variables="+BA.NumberToString(_totalprodsvariables)+", requeridos="+BA.ObjectToString(_promomap.Get((Object)("prodsVariablesRequeridos"))),0);}; + //BA.debugLineNum = 2206;BA.debugLine="If thisLog Then Log(\"Total prods variables2=\" & t"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("313041692","Total prods variables2="+BA.NumberToString(_totalprodsvariables2)+", requeridos2="+BA.ObjectToString(_promomap.Get((Object)("prodsVariables2Requeridos"))),0);}; + //BA.debugLineNum = 2207;BA.debugLine="Private res As Boolean = False"; +_res = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 2208;BA.debugLine="Private res1 As Boolean = False"; +_res1 = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 2209;BA.debugLine="Private res2 As Boolean = False"; +_res2 = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 2214;BA.debugLine="If totalProdsVariables > 0 And totalProdsVariable"; +if (_totalprodsvariables>0 && _totalprodsvariables>=(double)(BA.ObjectToNumber(_promomap.Get((Object)("prodsVariablesRequeridos"))))) { + //BA.debugLineNum = 2215;BA.debugLine="res1 = True 'Si el total de inventario de produc"; +_res1 = anywheresoftware.b4a.keywords.Common.True; + }; + //BA.debugLineNum = 2217;BA.debugLine="If promoMap.Get(\"prodsVariablesRequeridos\").As (I"; +if (((int)(BA.ObjectToNumber(_promomap.Get((Object)("prodsVariablesRequeridos")))))==0) { +_res1 = anywheresoftware.b4a.keywords.Common.True;}; + //BA.debugLineNum = 2218;BA.debugLine="If totalProdsVariables2 > 0 And totalProdsVariabl"; +if (_totalprodsvariables2>0 && _totalprodsvariables2>=(double)(BA.ObjectToNumber(_promomap.Get((Object)("prodsVariables2Requeridos"))))) { + //BA.debugLineNum = 2219;BA.debugLine="res2 = True 'Si el total de inventario de produc"; +_res2 = anywheresoftware.b4a.keywords.Common.True; + }; + //BA.debugLineNum = 2221;BA.debugLine="If promoMap.Get(\"prodsVariables2Requeridos\").As(I"; +if (((int)(BA.ObjectToNumber(_promomap.Get((Object)("prodsVariables2Requeridos")))))==0) { +_res2 = anywheresoftware.b4a.keywords.Common.True;}; + //BA.debugLineNum = 2222;BA.debugLine="If res1 And res2 Then 'Solo si son verdadero los"; +if (_res1 && _res2) { + //BA.debugLineNum = 2223;BA.debugLine="res = True"; +_res = anywheresoftware.b4a.keywords.Common.True; + }else { + //BA.debugLineNum = 2225;BA.debugLine="res = False"; +_res = anywheresoftware.b4a.keywords.Common.False; + }; + //BA.debugLineNum = 2228;BA.debugLine="Return res"; +if (true) return _res; + //BA.debugLineNum = 2229;BA.debugLine="End Sub"; +return false; +} +public static String _bitacora(anywheresoftware.b4a.BA _ba,String _fechab,String _usuariob,String _almacenb,String _rutab,String _eventob,String _clienteb,String _iniciob,String _finb,String _latitudb,String _longitudb,String _precision,String _motivonoventa,String _motivonovisita,String _ban_geob) throws Exception{ + //BA.debugLineNum = 1415;BA.debugLine="Sub bitacora(fechab As String, usuariob As String,"; + //BA.debugLineNum = 1457;BA.debugLine="End Sub"; +return ""; +} +public static String _borraarribade100errores(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 434;BA.debugLine="Sub borraArribaDe100Errores 'ignore"; + //BA.debugLineNum = 435;BA.debugLine="revisaBD"; +_revisabd(_ba); + //BA.debugLineNum = 436;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)"; +anywheresoftware.b4a.keywords.Common.LogImpl("38192002","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 437;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 = 438;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")"; +_errorlog.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 439;BA.debugLine="Log(\"Borramos mas de 100 de errorLog\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("38192005","Borramos mas de 100 de errorLog",0); + //BA.debugLineNum = 440;BA.debugLine="End Sub"; +return ""; +} +public static String _borraarribade600renglonesbitacora(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 443;BA.debugLine="Sub borraArribaDe600RenglonesBitacora 'ignore"; + //BA.debugLineNum = 444;BA.debugLine="revisaBD"; +_revisabd(_ba); + //BA.debugLineNum = 445;BA.debugLine="If Starter.logger Then LogColor(\"Recortamos la ta"; +if (mostCurrent._starter._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("38257538","Recortamos la tabla de la Bitacora, limite de 600",anywheresoftware.b4a.keywords.Common.Colors.Magenta);}; + //BA.debugLineNum = 446;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 447;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select fech"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select fecha from bitacora"))); + //BA.debugLineNum = 448;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 449;BA.debugLine="If c.RowCount > 650 Then"; +if (_c.getRowCount()>650) { + //BA.debugLineNum = 450;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )"); + //BA.debugLineNum = 451;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"vacuum;\")"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("vacuum;"); + }; + //BA.debugLineNum = 454;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 455;BA.debugLine="End Sub"; +return ""; +} +public static String _borralogdb(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 318;BA.debugLine="Sub borraLogDB 'ignore"; + //BA.debugLineNum = 319;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)"; +anywheresoftware.b4a.keywords.Common.LogImpl("37995393","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 320;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")"; +_kmt.ExecNonQuery("delete from bitacora"); + //BA.debugLineNum = 321;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; +_kmt.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 322;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 = 193;BA.debugLine="Sub borramosArchivoGPS 'ignore"; + //BA.debugLineNum = 194;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.getDirRootExternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 195;BA.debugLine="Dim s As String = \"\""; +_s = ""; + //BA.debugLineNum = 196;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; +_t = _s.getBytes("UTF-8"); + //BA.debugLineNum = 197;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; +_out.WriteBytes(_t,(int) (0),_t.length); + //BA.debugLineNum = 198;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 199;BA.debugLine="End Sub"; +return ""; +} +public static String _borrapedidoclienteactual(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _thisc = null; +int _i = 0; + //BA.debugLineNum = 722;BA.debugLine="Sub borraPedidoClienteActual As String"; + //BA.debugLineNum = 736;BA.debugLine="Private thisC As Cursor"; +_thisc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 738;BA.debugLine="thisC=Starter.skmt.ExecQuery(\"select PE_PROID, PE"; +_thisc = (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 PE_PROID, PE_CANT, PE_FOLIO FROM PEDIDO where pe_cliente in (Select CUENTA from cuentaa) AND PE_CEDIS <> 'DUR'"))); + //BA.debugLineNum = 739;BA.debugLine="If thisC.RowCount>0 Then"; +if (_thisc.getRowCount()>0) { + //BA.debugLineNum = 740;BA.debugLine="For i=0 To thisC.RowCount -1"; +{ +final int step4 = 1; +final int limit4 = (int) (_thisc.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 741;BA.debugLine="thisC.Position = i"; +_thisc.setPosition(_i); + //BA.debugLineNum = 743;BA.debugLine="Starter.skmt.ExecNonQuery($\"update ${traeTablaP"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_thisc.GetString("PE_FOLIO"))))+" set cat_gp_almacen = cat_gp_almacen + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_CANT")))+" where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_PROID")))+"'")); + //BA.debugLineNum = 744;BA.debugLine="LogColor($\"update ${traeTablaProds(thisC.GetStr"; +anywheresoftware.b4a.keywords.Common.LogImpl("39568278",("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_thisc.GetString("PE_FOLIO"))))+" set cat_gp_almacen = cat_gp_almacen + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_CANT")))+" where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_thisc.GetString("PE_PROID")))+"'"),anywheresoftware.b4a.keywords.Common.Colors.Red); + } +}; + }; + //BA.debugLineNum = 748;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_cli"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where pc_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 749;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido whe"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido where pe_cliente in (Select CUENTA from cuentaa)"); + //BA.debugLineNum = 750;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE kmt_info set ge"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info set gestion = 0 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 751;BA.debugLine="Return 1"; +if (true) return BA.NumberToString(1); + //BA.debugLineNum = 752;BA.debugLine="End Sub"; +return ""; +} +public static String _buscadbusuario(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _usuario = ""; + //BA.debugLineNum = 596;BA.debugLine="Sub buscaDBUsuario As String 'ignore"; + //BA.debugLineNum = 597;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 598;BA.debugLine="Private usuario As String = \"SinUsuario\""; +_usuario = "SinUsuario"; + //BA.debugLineNum = 599;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 = 600;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 601;BA.debugLine="If c.RowCount > 0 Then usuario = c.GetString(\"USU"; +if (_c.getRowCount()>0) { +_usuario = _c.GetString("USUARIO");}; + //BA.debugLineNum = 602;BA.debugLine="Return usuario"; +if (true) return _usuario; + //BA.debugLineNum = 603;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _totalparcial = ""; +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; + //BA.debugLineNum = 2232;BA.debugLine="Sub calculaTotalConPromoXRango(idCliente As String"; + //BA.debugLineNum = 2240;BA.debugLine="Private totalParcial As String = 0"; +_totalparcial = BA.NumberToString(0); + //BA.debugLineNum = 2241;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2242;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"'")))); + //BA.debugLineNum = 2243;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2244;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 2246;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2247;BA.debugLine="Log(\"***************************************\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("313107215","***************************************",0); + //BA.debugLineNum = 2248;BA.debugLine="If cx.getstring(\"RECANT\") = \"N\" Then ' Sin prod"; +if ((_cx.GetString("RECANT")).equals("N")) { + //BA.debugLineNum = 2249;BA.debugLine="totalParcial = cx.getstring(\"PE_COSTO_TOT\")"; +_totalparcial = _cx.GetString("PE_COSTO_TOT"); + }else if((_cx.GetString("RECANT")).equals(_cx.GetString("PE_CANT"))) { + //BA.debugLineNum = 2251;BA.debugLine="totalParcial = cx.getstring(\"PE_RECALCULOTOT\")"; +_totalparcial = _cx.GetString("PE_RECALCULOTOT"); + }else { + //BA.debugLineNum = 2253;BA.debugLine="totalParcial = ((cx.getstring(\"PE_CANT\") - cx."; +_totalparcial = BA.NumberToString((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))+((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))); + //BA.debugLineNum = 2254;BA.debugLine="Log($\"${((cx.getstring(\"PE_CANT\") - cx.getstri"; +anywheresoftware.b4a.keywords.Common.LogImpl("313107222",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))))+" + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))))+" "),0); + }; + //BA.debugLineNum = 2256;BA.debugLine="Log($\"Total:${total} + Total Parcial: ${totalPa"; +anywheresoftware.b4a.keywords.Common.LogImpl("313107224",("Total:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+" + Total Parcial: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalparcial))+""),0); + //BA.debugLineNum = 2257;BA.debugLine="total = total + totalParcial"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_totalparcial))); + } +}; + }; + //BA.debugLineNum = 2260;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2261;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2262;BA.debugLine="Log($\"Total con promocXrango = ${total}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("313107230",("Total con promocXrango = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+""),0); + //BA.debugLineNum = 2263;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2264;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango1(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _totalparcial = ""; +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; + //BA.debugLineNum = 2267;BA.debugLine="Sub calculaTotalConPromoXRango1(idCliente As Strin"; + //BA.debugLineNum = 2275;BA.debugLine="Private totalParcial As String = 0"; +_totalparcial = BA.NumberToString(0); + //BA.debugLineNum = 2276;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2277;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"' and PE_FUTURO = '1' ")))); + //BA.debugLineNum = 2278;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2279;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 2281;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2283;BA.debugLine="If cx.getstring(\"RECANT\") = \"N\" Then ' Sin prod"; +if ((_cx.GetString("RECANT")).equals("N")) { + //BA.debugLineNum = 2284;BA.debugLine="totalParcial = cx.getstring(\"PE_COSTO_TOT\")"; +_totalparcial = _cx.GetString("PE_COSTO_TOT"); + }else if((_cx.GetString("RECANT")).equals(_cx.GetString("PE_CANT"))) { + //BA.debugLineNum = 2286;BA.debugLine="totalParcial = cx.getstring(\"PE_RECALCULOTOT\")"; +_totalparcial = _cx.GetString("PE_RECALCULOTOT"); + }else { + //BA.debugLineNum = 2288;BA.debugLine="totalParcial = ((cx.getstring(\"PE_CANT\") - cx."; +_totalparcial = BA.NumberToString((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))+((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))); + //BA.debugLineNum = 2289;BA.debugLine="Log($\"${((cx.getstring(\"PE_CANT\") - cx.getstri"; +anywheresoftware.b4a.keywords.Common.LogImpl("313172758",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))))+" + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))))+" "),0); + }; + //BA.debugLineNum = 2292;BA.debugLine="total = total + totalParcial"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_totalparcial))); + } +}; + }; + //BA.debugLineNum = 2295;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2296;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2298;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2299;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango2(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _totalparcial = ""; +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; + //BA.debugLineNum = 2303;BA.debugLine="Sub calculaTotalConPromoXRango2(idCliente As Strin"; + //BA.debugLineNum = 2311;BA.debugLine="Private totalParcial As String = 0"; +_totalparcial = BA.NumberToString(0); + //BA.debugLineNum = 2312;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2313;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"' and PE_FUTURO = '0' ")))); + //BA.debugLineNum = 2314;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2315;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 2317;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2318;BA.debugLine="Log(\"***************************************\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("313238287","***************************************",0); + //BA.debugLineNum = 2319;BA.debugLine="If cx.getstring(\"RECANT\") = \"N\" Then ' Sin prod"; +if ((_cx.GetString("RECANT")).equals("N")) { + //BA.debugLineNum = 2320;BA.debugLine="totalParcial = cx.getstring(\"PE_COSTO_TOT\")"; +_totalparcial = _cx.GetString("PE_COSTO_TOT"); + }else if((_cx.GetString("RECANT")).equals(_cx.GetString("PE_CANT"))) { + //BA.debugLineNum = 2322;BA.debugLine="totalParcial = cx.getstring(\"PE_RECALCULOTOT\")"; +_totalparcial = _cx.GetString("PE_RECALCULOTOT"); + }else { + //BA.debugLineNum = 2324;BA.debugLine="totalParcial = ((cx.getstring(\"PE_CANT\") - cx."; +_totalparcial = BA.NumberToString((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))+((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))); + //BA.debugLineNum = 2325;BA.debugLine="Log($\"${((cx.getstring(\"PE_CANT\") - cx.getstri"; +anywheresoftware.b4a.keywords.Common.LogImpl("313238294",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))))+" + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))))+" "),0); + }; + //BA.debugLineNum = 2327;BA.debugLine="Log($\"Total:${total} + Total Parcial: ${totalPa"; +anywheresoftware.b4a.keywords.Common.LogImpl("313238296",("Total:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+" + Total Parcial: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalparcial))+""),0); + //BA.debugLineNum = 2328;BA.debugLine="total = total + totalParcial"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_totalparcial))); + } +}; + }; + //BA.debugLineNum = 2331;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2332;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2333;BA.debugLine="Log($\"Total con promocXrango = ${total}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("313238302",("Total con promocXrango = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+""),0); + //BA.debugLineNum = 2334;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2335;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango3(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _precioprom = null; + //BA.debugLineNum = 2338;BA.debugLine="Sub calculaTotalConPromoXRango3(idCliente As Strin"; + //BA.debugLineNum = 2347;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2348;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 * from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"' and PE_FUTURO = '0' AND PE_PROID <> PE_CEDIS ")))); + //BA.debugLineNum = 2349;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2350;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 2352;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2353;BA.debugLine="Log(\"***************************************\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("313303823","***************************************",0); + //BA.debugLineNum = 2355;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.ExecQue"; +_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_precioprom = (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_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cx.GetString("PE_PRONOMBRE")))+"' ")))); + //BA.debugLineNum = 2356;BA.debugLine="If precioprom.RowCount > 0 Then"; +if (_precioprom.getRowCount()>0) { + //BA.debugLineNum = 2357;BA.debugLine="precioprom.Position = 0"; +_precioprom.setPosition((int) (0)); + //BA.debugLineNum = 2358;BA.debugLine="Log (precioprom.GETSTRING(\"CAT_GP_PRECIO\"))"; +anywheresoftware.b4a.keywords.Common.LogImpl("313303828",_precioprom.GetString("CAT_GP_PRECIO"),0); + //BA.debugLineNum = 2359;BA.debugLine="Log (cx.GETSTRING(\"PE_CANT\"))"; +anywheresoftware.b4a.keywords.Common.LogImpl("313303829",_cx.GetString("PE_CANT"),0); + //BA.debugLineNum = 2360;BA.debugLine="Log (cx.GETSTRING(\"PE_PRONOMBRE\"))"; +anywheresoftware.b4a.keywords.Common.LogImpl("313303830",_cx.GetString("PE_PRONOMBRE"),0); + //BA.debugLineNum = 2362;BA.debugLine="total = total + ((cx.GETSTRING(\"PE_CANT\")*prec"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(((double)(Double.parseDouble(_cx.GetString("PE_CANT")))*(double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))))); + }; + //BA.debugLineNum = 2366;BA.debugLine="Log($\"Total:${total} \"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("313303836",("Total:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+" "),0); + } +}; + }; + //BA.debugLineNum = 2370;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2371;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2372;BA.debugLine="Log($\"Total con promocXrango = ${total}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("313303842",("Total con promocXrango = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+""),0); + //BA.debugLineNum = 2373;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2374;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango4(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _precioprom = null; + //BA.debugLineNum = 2377;BA.debugLine="Sub calculaTotalConPromoXRango4(idCliente As Strin"; + //BA.debugLineNum = 2386;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2387;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 * from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"' and PE_FUTURO = '1' AND PE_PROID <> PE_CEDIS ")))); + //BA.debugLineNum = 2388;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2389;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 2391;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2394;BA.debugLine="Dim precioprom As Cursor = Starter.skmt.ExecQue"; +_precioprom = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_precioprom = (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_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_NOMBRE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cx.GetString("PE_PRONOMBRE")))+"' ")))); + //BA.debugLineNum = 2395;BA.debugLine="If precioprom.RowCount > 0 Then"; +if (_precioprom.getRowCount()>0) { + //BA.debugLineNum = 2396;BA.debugLine="precioprom.Position = 0"; +_precioprom.setPosition((int) (0)); + //BA.debugLineNum = 2402;BA.debugLine="total = total + ((cx.GETSTRING(\"PE_CANT\")*prec"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(((double)(Double.parseDouble(_cx.GetString("PE_CANT")))*(double)(Double.parseDouble(_precioprom.GetString("CAT_GP_PRECIO")))))); + }; + } +}; + }; + //BA.debugLineNum = 2410;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2411;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2413;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2414;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango5(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _totalparcial = ""; +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; + //BA.debugLineNum = 2417;BA.debugLine="Sub calculaTotalConPromoXRango5(idCliente As Strin"; + //BA.debugLineNum = 2425;BA.debugLine="Private totalParcial As String = 0"; +_totalparcial = BA.NumberToString(0); + //BA.debugLineNum = 2426;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2427;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"' and PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO')")))); + //BA.debugLineNum = 2428;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2429;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 2431;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2433;BA.debugLine="If cx.getstring(\"RECANT\") = \"N\" Then ' Sin prod"; +if ((_cx.GetString("RECANT")).equals("N")) { + //BA.debugLineNum = 2434;BA.debugLine="totalParcial = cx.getstring(\"PE_COSTO_TOT\")"; +_totalparcial = _cx.GetString("PE_COSTO_TOT"); + }else if((_cx.GetString("RECANT")).equals(_cx.GetString("PE_CANT"))) { + //BA.debugLineNum = 2436;BA.debugLine="totalParcial = cx.getstring(\"PE_RECALCULOTOT\")"; +_totalparcial = _cx.GetString("PE_RECALCULOTOT"); + }else { + //BA.debugLineNum = 2438;BA.debugLine="totalParcial = ((cx.getstring(\"PE_CANT\") - cx."; +_totalparcial = BA.NumberToString((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))+((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))); + //BA.debugLineNum = 2439;BA.debugLine="Log($\"${((cx.getstring(\"PE_CANT\") - cx.getstri"; +anywheresoftware.b4a.keywords.Common.LogImpl("313434902",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))))+" + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))))+" "),0); + }; + //BA.debugLineNum = 2442;BA.debugLine="total = total + totalParcial"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_totalparcial))); + } +}; + }; + //BA.debugLineNum = 2445;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2446;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2448;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2449;BA.debugLine="End Sub"; +return ""; +} +public static String _calculatotalconpromoxrango6(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +String _totalparcial = ""; +String _total = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cx = null; +int _i = 0; + //BA.debugLineNum = 2453;BA.debugLine="Sub calculaTotalConPromoXRango6(idCliente As Strin"; + //BA.debugLineNum = 2461;BA.debugLine="Private totalParcial As String = 0"; +_totalparcial = BA.NumberToString(0); + //BA.debugLineNum = 2462;BA.debugLine="Private total As String = 0"; +_total = BA.NumberToString(0); + //BA.debugLineNum = 2463;BA.debugLine="Private cx As Cursor = Starter.skmt.ExecQuery($\"s"; +_cx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cx = (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 *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"' AND PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP') ")))); + //BA.debugLineNum = 2464;BA.debugLine="If cx.RowCount > 0 Then"; +if (_cx.getRowCount()>0) { + //BA.debugLineNum = 2465;BA.debugLine="For i = 0 To cx.RowCount - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_cx.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 2467;BA.debugLine="cx.Position = i"; +_cx.setPosition(_i); + //BA.debugLineNum = 2468;BA.debugLine="Log(\"***************************************\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("313500431","***************************************",0); + //BA.debugLineNum = 2469;BA.debugLine="If cx.getstring(\"RECANT\") = \"N\" Then ' Sin prod"; +if ((_cx.GetString("RECANT")).equals("N")) { + //BA.debugLineNum = 2470;BA.debugLine="totalParcial = cx.getstring(\"PE_COSTO_TOT\")"; +_totalparcial = _cx.GetString("PE_COSTO_TOT"); + }else if((_cx.GetString("RECANT")).equals(_cx.GetString("PE_CANT"))) { + //BA.debugLineNum = 2472;BA.debugLine="totalParcial = cx.getstring(\"PE_RECALCULOTOT\")"; +_totalparcial = _cx.GetString("PE_RECALCULOTOT"); + }else { + //BA.debugLineNum = 2474;BA.debugLine="totalParcial = ((cx.getstring(\"PE_CANT\") - cx."; +_totalparcial = BA.NumberToString((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))+((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))); + //BA.debugLineNum = 2475;BA.debugLine="Log($\"${((cx.getstring(\"PE_CANT\") - cx.getstri"; +anywheresoftware.b4a.keywords.Common.LogImpl("313500438",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((((double)(Double.parseDouble(_cx.GetString("PE_CANT")))-(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))*(double)(Double.parseDouble(_cx.GetString("PE_COSTOU"))))))+" + "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(Double.parseDouble(_cx.GetString("PE_RECALCULO")))*(double)(Double.parseDouble(_cx.GetString("PE_RECCANT"))))))+" "),0); + }; + //BA.debugLineNum = 2477;BA.debugLine="Log($\"Total:${total} + Total Parcial: ${totalPa"; +anywheresoftware.b4a.keywords.Common.LogImpl("313500440",("Total:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+" + Total Parcial: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalparcial))+""),0); + //BA.debugLineNum = 2478;BA.debugLine="total = total + totalParcial"; +_total = BA.NumberToString((double)(Double.parseDouble(_total))+(double)(Double.parseDouble(_totalparcial))); + } +}; + }; + //BA.debugLineNum = 2481;BA.debugLine="cx.Close"; +_cx.Close(); + //BA.debugLineNum = 2482;BA.debugLine="total = NumberFormat2(total, 1, 2, 2, False)"; +_total = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_total)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 2483;BA.debugLine="Log($\"Total con promocXrango = ${total}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("313500446",("Total con promocXrango = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_total))+""),0); + //BA.debugLineNum = 2484;BA.debugLine="Return total"; +if (true) return _total; + //BA.debugLineNum = 2485;BA.debugLine="End Sub"; +return ""; +} +public static String _centraedittext(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.EditTextWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 591;BA.debugLine="Sub centraEditText(elemento As EditText, anchoElem"; + //BA.debugLineNum = 592;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 = 593;BA.debugLine="End Sub"; +return ""; +} +public static String _centraetiqueta(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.LabelWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 572;BA.debugLine="Sub centraEtiqueta(elemento As Label, anchoElement"; + //BA.debugLineNum = 573;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 = 574;BA.debugLine="End Sub"; +return ""; +} +public static String _centralistview(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 52;BA.debugLine="Sub centraListView(elemento As ListView, anchoElem"; + //BA.debugLineNum = 53;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 = 54;BA.debugLine="End Sub"; +return ""; +} +public static String _centrapanel(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 577;BA.debugLine="Sub centraPanel(elemento As Panel, anchoElementoSu"; + //BA.debugLineNum = 578;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 = 579;BA.debugLine="End Sub"; +return ""; +} +public static String _centrapanelv(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _elemento,int _altoelementosuperior) throws Exception{ + //BA.debugLineNum = 582;BA.debugLine="Sub centraPanelV(elemento As Panel, altoElementoSu"; + //BA.debugLineNum = 583;BA.debugLine="elemento.Top = Round(altoElementoSuperior/2)-(ele"; +_elemento.setTop((int) (anywheresoftware.b4a.keywords.Common.Round(_altoelementosuperior/(double)2)-(_elemento.getHeight()/(double)2))); + //BA.debugLineNum = 584;BA.debugLine="End Sub"; +return ""; +} +public static String _centraprogressbar(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ProgressBarWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 587;BA.debugLine="Sub centraProgressBar(elemento As ProgressBar, anc"; + //BA.debugLineNum = 588;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 = 589;BA.debugLine="End Sub"; +return ""; +} +public static String _compress(anywheresoftware.b4a.BA _ba,String _str) throws Exception{ +byte[] _compressed = null; +String _base64 = ""; + //BA.debugLineNum = 58;BA.debugLine="Sub compress(str As String) As String 'ignore"; + //BA.debugLineNum = 60;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)"; +_compressed = _gzip.compress(_str); + //BA.debugLineNum = 63;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed"; +_base64 = _su.EncodeBase64(_compressed); + //BA.debugLineNum = 64;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("36684678",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0); + //BA.debugLineNum = 66;BA.debugLine="Return base64"; +if (true) return _base64; + //BA.debugLineNum = 67;BA.debugLine="End Sub"; +return ""; +} +public static String _copiadb(anywheresoftware.b4a.BA _ba,boolean _result) throws Exception{ +String _p = ""; +String _thedir = ""; + //BA.debugLineNum = 530;BA.debugLine="Sub copiaDB(result As Boolean) 'ignore"; + //BA.debugLineNum = 531;BA.debugLine="ToastMessageShow(\"copiaDB\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("copiaDB"),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 532;BA.debugLine="If result Then"; +if (_result) { + //BA.debugLineNum = 533;BA.debugLine="Dim p As String"; +_p = ""; + //BA.debugLineNum = 534;BA.debugLine="If File.ExternalWritable Then"; +if (anywheresoftware.b4a.keywords.Common.File.getExternalWritable()) { + //BA.debugLineNum = 535;BA.debugLine="p = File.DirRootExternal"; +_p = anywheresoftware.b4a.keywords.Common.File.getDirRootExternal(); + }else { + //BA.debugLineNum = 538;BA.debugLine="p = File.DirInternal"; +_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); + }; + //BA.debugLineNum = 541;BA.debugLine="Dim theDir As String"; +_thedir = ""; + //BA.debugLineNum = 542;BA.debugLine="Try"; +try { //BA.debugLineNum = 543;BA.debugLine="File.MakeDir(File.DirRootExternal,\"kmts\")"; +anywheresoftware.b4a.keywords.Common.File.MakeDir(anywheresoftware.b4a.keywords.Common.File.getDirRootExternal(),"kmts"); + //BA.debugLineNum = 544;BA.debugLine="theDir = \"/kmts\""; +_thedir = "/kmts"; + } + catch (Exception e14) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e14); //BA.debugLineNum = 546;BA.debugLine="theDir = \"\""; +_thedir = ""; + }; + //BA.debugLineNum = 548;BA.debugLine="Try"; +try { //BA.debugLineNum = 549;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirRoo"; +anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db",anywheresoftware.b4a.keywords.Common.File.getDirRootExternal()+_thedir,"cedex_kmt.db"); + //BA.debugLineNum = 550;BA.debugLine="File.Copy(File.DirInternal,\"errorLog.db\",File.D"; +anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"errorLog.db",anywheresoftware.b4a.keywords.Common.File.getDirRootExternal()+_thedir,"cedex_errorLog.db"); + //BA.debugLineNum = 551;BA.debugLine="ToastMessageShow(\"BD copiada!\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("BD copiada!"),anywheresoftware.b4a.keywords.Common.False); + } + catch (Exception e21) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e21); //BA.debugLineNum = 553;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 = 555;BA.debugLine="Log(\"rootExternal=\"&p)"; +anywheresoftware.b4a.keywords.Common.LogImpl("38585241","rootExternal="+_p,0); + //BA.debugLineNum = 556;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)"; +anywheresoftware.b4a.keywords.Common.LogImpl("38585242","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0); + //BA.debugLineNum = 557;BA.debugLine="Log(\"File.DirRootExternal=\"&File.DirRootExternal"; +anywheresoftware.b4a.keywords.Common.LogImpl("38585243","File.DirRootExternal="+anywheresoftware.b4a.keywords.Common.File.getDirRootExternal(),0); + }else { + //BA.debugLineNum = 559;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),anywheresoftware.b4a.keywords.Common.False); + }; + //BA.debugLineNum = 561;BA.debugLine="End Sub"; +return ""; +} +public static String _cuantosvariablestengobd(anywheresoftware.b4a.BA _ba,String _promo) throws Exception{ + //BA.debugLineNum = 1244;BA.debugLine="Sub cuantosVariablesTengoBD(promo As String) As St"; + //BA.debugLineNum = 1255;BA.debugLine="End Sub"; +return ""; +} +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 = 468;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,"; + //BA.debugLineNum = 469;BA.debugLine="Log(\"dameErroresJSON\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("38388609","dameErroresJSON",0); + //BA.debugLineNum = 470;BA.debugLine="Private j As JSONGenerator"; +_j = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); + //BA.debugLineNum = 471;BA.debugLine="Private lim As String"; +_lim = ""; + //BA.debugLineNum = 472;BA.debugLine="Private cur As ResultSet"; +_cur = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); + //BA.debugLineNum = 473;BA.debugLine="Private l As List"; +_l = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 474;BA.debugLine="Private i As Int = 0"; +_i = (int) (0); + //BA.debugLineNum = 475;BA.debugLine="l.Initialize"; +_l.Initialize(); + //BA.debugLineNum = 476;BA.debugLine="Dim m, m2 As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m2 = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 477;BA.debugLine="m2.Initialize"; +_m2.Initialize(); + //BA.debugLineNum = 478;BA.debugLine="If maxErrores = 0 Then lim = \"\" Else lim = \"limit"; +if (_maxerrores==0) { +_lim = "";} +else { +_lim = "limit "+BA.NumberToString(_maxerrores);}; + //BA.debugLineNum = 479;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 = 480;BA.debugLine="Do While cur.NextRow"; +while (_cur.NextRow()) { + //BA.debugLineNum = 481;BA.debugLine="m.Initialize"; +_m.Initialize(); + //BA.debugLineNum = 482;BA.debugLine="m.Put(\"fecha\", cur.GetString(\"fecha\"))"; +_m.Put((Object)("fecha"),(Object)(_cur.GetString("fecha"))); + //BA.debugLineNum = 483;BA.debugLine="m.Put(\"error\", cur.GetString(\"error\"))"; +_m.Put((Object)("error"),(Object)(_cur.GetString("error"))); + //BA.debugLineNum = 484;BA.debugLine="m2.Put(i,m)"; +_m2.Put((Object)(_i),(Object)(_m.getObject())); + //BA.debugLineNum = 485;BA.debugLine="i = i + 1"; +_i = (int) (_i+1); + } +; + //BA.debugLineNum = 487;BA.debugLine="cur.Close"; +_cur.Close(); + //BA.debugLineNum = 488;BA.debugLine="j.Initialize(m2)"; +_j.Initialize(_m2); + //BA.debugLineNum = 489;BA.debugLine="Log(j.ToString)"; +anywheresoftware.b4a.keywords.Common.LogImpl("38388629",_j.ToString(),0); + //BA.debugLineNum = 490;BA.debugLine="If comprimido Then"; +if (_comprimido) { + //BA.debugLineNum = 491;BA.debugLine="Return compress(j.ToString)"; +if (true) return _compress(_ba,_j.ToString()); + }else { + //BA.debugLineNum = 493;BA.debugLine="Return j.ToString"; +if (true) return _j.ToString(); + }; + //BA.debugLineNum = 495;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 = 149;BA.debugLine="Sub dameRuta(inicioRuta As String, origenRuta As S"; + //BA.debugLineNum = 151;BA.debugLine="Dim fechaInicio As String"; +_fechainicio = ""; + //BA.debugLineNum = 152;BA.debugLine="Try 'incioRuta es numero"; +try { //BA.debugLineNum = 153;BA.debugLine="inicioRuta = inicioRuta * 1"; +_inicioruta = BA.NumberToString((double)(Double.parseDouble(_inicioruta))*1); + //BA.debugLineNum = 155;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 = 157;BA.debugLine="fechaInicio = fechaInicioHoy"; +_fechainicio = _fechainiciohoy(_ba); + }; + //BA.debugLineNum = 160;BA.debugLine="If subsLogs Then Log(\"fechaInicio: \"&fechaInicio&"; +if (_subslogs) { +anywheresoftware.b4a.keywords.Common.LogImpl("37143435","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);}; + //BA.debugLineNum = 161;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 162;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 = 163;BA.debugLine="If subsLogs Then Log(\"select FECHA, LAT, LON from"; +if (_subslogs) { +anywheresoftware.b4a.keywords.Common.LogImpl("37143438","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);}; + //BA.debugLineNum = 164;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 = 165;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 166;BA.debugLine="Dim ruta2 As String = \"\""; +_ruta2 = ""; + //BA.debugLineNum = 167;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 168;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 = 169;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 170;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 = 171;BA.debugLine="B4XPages.MainPage.fechaRuta = c.GetString(\"FECH"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._fecharuta /*String*/ = _c.GetString("FECHA"); + } +}; + }; + //BA.debugLineNum = 174;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 175;BA.debugLine="Return compress(ruta2)"; +if (true) return _compress(_ba,_ruta2); + //BA.debugLineNum = 176;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 = 606;BA.debugLine="Sub dameUsuarioDeDB As String 'ignore"; + //BA.debugLineNum = 607;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 608;BA.debugLine="Private u As String = \"SinUsuario\""; +_u = "SinUsuario"; + //BA.debugLineNum = 609;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 610;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 = 611;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 612;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")"; +if (_c.getRowCount()>0) { +_u = _c.GetString("USUARIO");}; + //BA.debugLineNum = 613;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 614;BA.debugLine="Return u"; +if (true) return _u; + //BA.debugLineNum = 615;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 = 70;BA.debugLine="Sub decompress(base64 As String) As String 'ignore"; + //BA.debugLineNum = 71;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64"; +_decompressedbytes = _su.DecodeBase64(_base64); + //BA.debugLineNum = 73;BA.debugLine="Dim bc As ByteConverter"; +_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); + //BA.debugLineNum = 74;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d"; +_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8"); + //BA.debugLineNum = 75;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("36750213",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0); + //BA.debugLineNum = 77;BA.debugLine="Return uncompressed"; +if (true) return _uncompressed; + //BA.debugLineNum = 78;BA.debugLine="End Sub"; +return ""; +} +public static String _deleteerrorlog_db(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 186;BA.debugLine="Sub deleteErrorLog_DB 'ignore"; + //BA.debugLineNum = 187;BA.debugLine="errorLog.ExecNonQuery(\"delete from errores\")"; +_errorlog.ExecNonQuery("delete from errores"); + //BA.debugLineNum = 188;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")"; +_errorlog.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 189;BA.debugLine="ToastMessageShow(\"BD Errores Borrada\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("BD Errores Borrada"),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 190;BA.debugLine="End Sub"; +return ""; +} +public static String _deletefolder(anywheresoftware.b4a.BA _ba,String _folder) throws Exception{ +String _f = ""; + //BA.debugLineNum = 1913;BA.debugLine="Sub deleteFolder(folder As String)"; + //BA.debugLineNum = 1914;BA.debugLine="Log(\"Borrando \" & folder)"; +anywheresoftware.b4a.keywords.Common.LogImpl("312582913","Borrando "+_folder,0); + //BA.debugLineNum = 1915;BA.debugLine="For Each f As String In File.ListFiles(folder)"; +{ +final anywheresoftware.b4a.BA.IterableList group2 = anywheresoftware.b4a.keywords.Common.File.ListFiles(_folder); +final int groupLen2 = group2.getSize() +;int index2 = 0; +; +for (; index2 < groupLen2;index2++){ +_f = BA.ObjectToString(group2.Get(index2)); + //BA.debugLineNum = 1916;BA.debugLine="Log(f)"; +anywheresoftware.b4a.keywords.Common.LogImpl("312582915",_f,0); + //BA.debugLineNum = 1917;BA.debugLine="If File.IsDirectory(folder, f) Then"; +if (anywheresoftware.b4a.keywords.Common.File.IsDirectory(_folder,_f)) { + //BA.debugLineNum = 1918;BA.debugLine="deleteFolder(File.Combine(folder, f))"; +_deletefolder(_ba,anywheresoftware.b4a.keywords.Common.File.Combine(_folder,_f)); + //BA.debugLineNum = 1919;BA.debugLine="Log($\"Borramos ${File.Combine(folder, f)}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("312582918",("Borramos "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.File.Combine(_folder,_f)))+""),0); + }; + //BA.debugLineNum = 1921;BA.debugLine="File.Delete(folder, f)"; +anywheresoftware.b4a.keywords.Common.File.Delete(_folder,_f); + } +}; + //BA.debugLineNum = 1923;BA.debugLine="End Sub"; +return ""; +} +public static String _deletegps_db(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 179;BA.debugLine="Sub deleteGPS_DB 'ignore"; + //BA.debugLineNum = 180;BA.debugLine="kmt.ExecNonQuery(\"delete from RUTA_GPS\")"; +_kmt.ExecNonQuery("delete from RUTA_GPS"); + //BA.debugLineNum = 181;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; +_kmt.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 182;BA.debugLine="ToastMessageShow(\"Borramos BD Coords GPS\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Borramos BD Coords GPS"),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 183;BA.debugLine="End Sub"; +return ""; +} +public static String _enviawhatsappmsg(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 1925;BA.debugLine="Sub enviaWhatsappMsg()"; + //BA.debugLineNum = 1960;BA.debugLine="End Sub"; +return ""; +} +public static String _fechainiciohoy(anywheresoftware.b4a.BA _ba) throws Exception{ +String _origformat = ""; +String _h = ""; + //BA.debugLineNum = 277;BA.debugLine="Sub fechaInicioHoy As String 'ignore"; + //BA.debugLineNum = 278;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 279;BA.debugLine="DateTime.DateFormat=\"yyMMdd\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd"); + //BA.debugLineNum = 280;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 = 281;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 282;BA.debugLine="Log(\"Hoy=\"&h)"; +anywheresoftware.b4a.keywords.Common.LogImpl("37733253","Hoy="+_h,0); + //BA.debugLineNum = 283;BA.debugLine="Return h"; +if (true) return _h; + //BA.debugLineNum = 284;BA.debugLine="End Sub"; +return ""; +} +public static String _fechakmt(anywheresoftware.b4a.BA _ba,String _fecha) throws Exception{ +String _origformat = ""; +String _nuevafecha = ""; + //BA.debugLineNum = 81;BA.debugLine="Sub fechaKMT(fecha As String) As String 'ignore"; + //BA.debugLineNum = 83;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 84;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss"); + //BA.debugLineNum = 85;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)"; +_nuevafecha = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); + //BA.debugLineNum = 86;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 88;BA.debugLine="Return nuevaFecha"; +if (true) return _nuevafecha; + //BA.debugLineNum = 89;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 = 498;BA.debugLine="Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore"; + //BA.debugLineNum = 499;BA.debugLine="Try"; +try { //BA.debugLineNum = 500;BA.debugLine="If fKMT.Length = 12 Then"; +if (_fkmt.length()==12) { + //BA.debugLineNum = 501;BA.debugLine="Private parteFecha As String = fKMT.SubString2("; +_partefecha = _fkmt.substring((int) (0),(int) (6)); + //BA.debugLineNum = 502;BA.debugLine="Private parteHora As String = fKMT.SubString(6)"; +_partehora = _fkmt.substring((int) (6)); + //BA.debugLineNum = 503;BA.debugLine="Private OrigFormat As String = DateTime.DateFor"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 504;BA.debugLine="DateTime.DateFormat=\"yymmdd\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yymmdd"); + //BA.debugLineNum = 505;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 506;BA.debugLine="Private ticks As Long = DateTime.DateTimeParse("; +_ticks = anywheresoftware.b4a.keywords.Common.DateTime.DateTimeParse(_partefecha,_partehora); + //BA.debugLineNum = 507;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 508;BA.debugLine="Return ticks"; +if (true) return _ticks; + }else { + //BA.debugLineNum = 510;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '"; +anywheresoftware.b4a.keywords.Common.LogImpl("38454156","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0); + //BA.debugLineNum = 511;BA.debugLine="Return 0"; +if (true) return (long) (0); + }; + } + catch (Exception e16) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 514;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("38454160",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + //BA.debugLineNum = 515;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p"; +anywheresoftware.b4a.keywords.Common.LogImpl("38454161",("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 = 516;BA.debugLine="Return 0"; +if (true) return (long) (0); + }; + //BA.debugLineNum = 518;BA.debugLine="End Sub"; +return 0L; +} +public static String _fechanormal(anywheresoftware.b4a.BA _ba,String _fecha) throws Exception{ +String _origformat = ""; +String _nuevafecha = ""; + //BA.debugLineNum = 214;BA.debugLine="Sub fechanormal(fecha As String) As String 'ignore"; + //BA.debugLineNum = 216;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 217;BA.debugLine="DateTime.DateFormat = \"YYYY/MM/dd HH:mm:ss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("YYYY/MM/dd HH:mm:ss"); + //BA.debugLineNum = 218;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)"; +_nuevafecha = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); + //BA.debugLineNum = 219;BA.debugLine="DateTime.DateFormat = OrigFormat 'return to orig"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 221;BA.debugLine="Return nuevaFecha"; +if (true) return _nuevafecha; + //BA.debugLineNum = 222;BA.debugLine="End Sub"; +return ""; +} +public static String _getphnid(anywheresoftware.b4a.BA _ba) throws Exception{ +String _t = ""; +String _s = ""; + //BA.debugLineNum = 23;BA.debugLine="Sub getPhnId As String 'ignore"; + //BA.debugLineNum = 25;BA.debugLine="devModel = phn.Model"; +_devmodel = _phn.getModel(); + //BA.debugLineNum = 26;BA.debugLine="If devModel.Length <= 3 Then 'Si phn.Model esta e"; +if (_devmodel.length()<=3) { + //BA.debugLineNum = 27;BA.debugLine="Dim t As String = phn.GetSettings(\"android_id\")"; +_t = _phn.GetSettings("android_id"); + //BA.debugLineNum = 28;BA.debugLine="devModel = t"; +_devmodel = _t; + }; + //BA.debugLineNum = 30;BA.debugLine="If devModel.Length >= 3 Then 'Si tenemos valor pa"; +if (_devmodel.length()>=3) { + //BA.debugLineNum = 31;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 = 34;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 = 35;BA.debugLine="devModel = s"; +_devmodel = _s; + }; + //BA.debugLineNum = 39;BA.debugLine="Return devModel"; +if (true) return _devmodel; + //BA.debugLineNum = 40;BA.debugLine="End Sub"; +return ""; +} +public static String _getssid(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 225;BA.debugLine="Sub getSSID 'ignore"; + //BA.debugLineNum = 230;BA.debugLine="End Sub"; +return ""; +} +public static String _guardaappinfo(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 1314;BA.debugLine="Sub guardaAppInfo 'ignore"; + //BA.debugLineNum = 1315;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'EMPRESA' or CAT_VA_DESCRIPCION = 'APP_NAME' or CAT_VA_DESCRIPCION = 'APP_VERSION'"); + //BA.debugLineNum = 1316;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('APP_NAME', '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getLabelName()))+"')")); + //BA.debugLineNum = 1317;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('APP_VERSION', '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()))+"')")); + //BA.debugLineNum = 1318;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 = 120;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore"; + //BA.debugLineNum = 122;BA.debugLine="Dim OrigFormat As String=DateTime.DateFormat 'sa"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 123;BA.debugLine="DateTime.DateFormat=\"MMM-dd HH:mm:ss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MMM-dd HH:mm:ss"); + //BA.debugLineNum = 124;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 = 125;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 127;BA.debugLine="Dim ubic As String = coords&\",\"&lastUpdate"; +_ubic = _coords+","+_lastupdate; + //BA.debugLineNum = 128;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.getDirRootExternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 129;BA.debugLine="Dim s As String = ubic & CRLF"; +_s = _ubic+anywheresoftware.b4a.keywords.Common.CRLF; + //BA.debugLineNum = 130;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; +_t = _s.getBytes("UTF-8"); + //BA.debugLineNum = 131;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; +_out.WriteBytes(_t,(int) (0),_t.length); + //BA.debugLineNum = 132;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 133;BA.debugLine="End Sub"; +return ""; +} +public static String _guardainfoenbd(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ +String[] _latlon = null; + //BA.debugLineNum = 136;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore"; + //BA.debugLineNum = 137;BA.debugLine="Log(\"Guardamos ubicacion en BD - \"&coords)"; +anywheresoftware.b4a.keywords.Common.LogImpl("37077889","Guardamos ubicacion en BD - "+_coords,0); + //BA.debugLineNum = 138;BA.debugLine="Try"; +try { //BA.debugLineNum = 139;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord"; +_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_coords); + //BA.debugLineNum = 140;BA.debugLine="If latlon.Length < 2 Then latlon = Regex.Split(\""; +if (_latlon.length<2) { +_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords);}; + //BA.debugLineNum = 141;BA.debugLine="If subsLogs Then Log(\"LatLon=\"&latlon)"; +if (_subslogs) { +anywheresoftware.b4a.keywords.Common.LogImpl("37077893","LatLon="+BA.ObjectToString(_latlon),0);}; + //BA.debugLineNum = 142;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 = 144;BA.debugLine="LogColor(LastException, Colors.red)"; +anywheresoftware.b4a.keywords.Common.LogImpl("37077896",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 146;BA.debugLine="End Sub"; +return ""; +} +public static String _guardaproducto(anywheresoftware.b4a.BA _ba,String _cedis,String _costou,String _cant,String _nombre,String _prodid,String _clienteid,String _fecha,String _usuario,String _rutav,String _preciosin,String _tipoventa) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 861;BA.debugLine="Sub guardaProducto(cedis As String, costoU As Stri"; + //BA.debugLineNum = 862;BA.debugLine="LogColor(\"guardaProducto: \"&prodId&\", cant=\"&cant"; +anywheresoftware.b4a.keywords.Common.LogImpl("310158081","guardaProducto: "+_prodid+", cant="+_cant+" - TV:"+_tipoventa,anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 863;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 864;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INTO"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO,PE_RUTA,PE_COSTO_SIN,PE_FOLIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(((double)(Double.parseDouble(_cant))*(double)(Double.parseDouble(_costou)))),(Object)(_costou),(Object)(_cant),(Object)(_nombre),(Object)(_prodid),(Object)(_clienteid),(Object)(_fecha),(Object)(_usuario),(Object)(_traerutabitacora(_ba)),(Object)(_preciosin),(Object)(_tipoventa)})); + //BA.debugLineNum = 865;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2($\"update ${t"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cant),(Object)(_prodid)})); + //BA.debugLineNum = 866;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(pe"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 867;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 868;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente where PC_CLIENTE In (select cuenta from cuentaa)"); + //BA.debugLineNum = 869;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"insert into"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clienteid),(Object)(_fecha),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._lat_gps /*String*/ ),(Object)(_cedis),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 870;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"UPDATE kmt_i"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE kmt_info3 set gestion = 2 where CAT_CL_CODIGO In (select cuenta from cuentaa)"); + //BA.debugLineNum = 871;BA.debugLine="End Sub"; +return ""; +} +public static String _guardaproductosin(anywheresoftware.b4a.BA _ba,String _cedis,String _costotot,String _costou,String _cant,String _nombre,String _prodid,String _clienteid,String _fecha,String _usuario,String _rutav,String _preciosin,String _tipov,String _precio2,String _query) throws Exception{ + //BA.debugLineNum = 626;BA.debugLine="Sub guardaProductoSin(cedis As String, costoTot As"; + //BA.debugLineNum = 639;BA.debugLine="ToastMessageShow(\"guardaProdSin\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("guardaProdSin"),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 640;BA.debugLine="End Sub"; +return ""; +} +public static String _guardaproductosingestion(anywheresoftware.b4a.BA _ba,String _cedis,String _costou,String _cant,String _nombre,String _prodid,String _clienteid,String _fecha,String _usuario,String _rutav,String _preciosin,String _tipoventa,String _futuro) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 1833;BA.debugLine="Sub guardaProductoSinGestion(cedis As String, cost"; + //BA.debugLineNum = 1834;BA.debugLine="If nombre.Length < 6 Then ToastMessageShow(\"(guar"; +if (_nombre.length()<6) { +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("(guardaProductoSinGestion) El nombre del producto no es valido "+_nombre),anywheresoftware.b4a.keywords.Common.True);}; + //BA.debugLineNum = 1835;BA.debugLine="precioSin = NumberFormat2(precioSin, 1, 2, 2, Fal"; +_preciosin = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_preciosin)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 1836;BA.debugLine="costoU = NumberFormat2(costoU, 1, 2, 2, False)"; +_costou = anywheresoftware.b4a.keywords.Common.NumberFormat2((double)(Double.parseDouble(_costou)),(int) (1),(int) (2),(int) (2),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 1838;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1841;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDIDO (P"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO (PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_RUTA, PE_COSTO_SIN, PE_FOLIO,PE_FUTURO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cedis),(Object)(((double)(Double.parseDouble(_cant))*(double)(Double.parseDouble(_costou)))),(Object)(_costou),(Object)(_cant),(Object)(_nombre),(Object)(_prodid),(Object)(_clienteid),(Object)(_fecha),(Object)(_usuario),(Object)(_rutav),(Object)(_preciosin),(Object)(_tipoventa),(Object)(_futuro)})); + //BA.debugLineNum = 1843;BA.debugLine="If cedis <> \"DUR\" Then Starter.skmt.ExecNonQuery2"; +if ((_cedis).equals("DUR") == false) { +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2(("update "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_tipoventa)))+" set cat_gp_almacen = cat_gp_almacen - ? where cat_gp_id = ? "),anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cant),(Object)(_prodid)}));}; + //BA.debugLineNum = 1844;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot"; +_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 sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE, SUM(PE_COSTO_SIN) AS TOTAL_CLIE_SIN FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 1845;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1848;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedido_cl"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'")); + //BA.debugLineNum = 1849;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into pedido_cl"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into pedido_cliente(PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT,PC_ALMACEN,PC_RUTA,PC_COSTO_SIN) VALUES (?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clienteid),(Object)(_fecha),(Object)(_usuario),(Object)(_c.GetString("CANT_CLIE")),(Object)(_c.GetString("TOTAL_CLIE")),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._lat_gps /*String*/ ),(Object)(_cedis),(Object)(_rutav),(Object)(_c.GetString("TOTAL_CLIE_SIN"))})); + //BA.debugLineNum = 1850;BA.debugLine="End Sub"; +return ""; +} +public static String _guardaproductox(anywheresoftware.b4a.BA _ba,String _cedis,String _costotot,String _costou,String _cant,String _nombre,String _prodid,String _clienteid,String _fecha,String _usuario,String _tipov,String _precio2,String _query) throws Exception{ + //BA.debugLineNum = 618;BA.debugLine="Sub guardaProductoX(cedis As String, costoTot As S"; + //BA.debugLineNum = 624;BA.debugLine="End Sub"; +return ""; +} +public static String _guardavariable(anywheresoftware.b4a.BA _ba,String _nombre,String _valor) throws Exception{ + //BA.debugLineNum = 1890;BA.debugLine="Sub guardaVariable(nombre As String, valor As Stri"; + //BA.debugLineNum = 1891;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"delete from"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+"'")); + //BA.debugLineNum = 1892;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery($\"insert into"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into CAT_VARIABLES (CAT_VA_DESCRIPCION, CAT_VA_VALOR) values ('"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+"', '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_valor))+"')")); + //BA.debugLineNum = 1893;BA.debugLine="End Sub"; +return ""; +} +public static boolean _haypedido(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _thisc = null; +boolean _hay = false; + //BA.debugLineNum = 852;BA.debugLine="Sub hayPedido As Boolean"; + //BA.debugLineNum = 853;BA.debugLine="Private thisC As Cursor=B4XPages.MainPage.skmt.Ex"; +_thisc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_thisc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(PE_CLIENTE) as hayPedido from PEDIDO where PE_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'")))); + //BA.debugLineNum = 854;BA.debugLine="thisC.Position=0"; +_thisc.setPosition((int) (0)); + //BA.debugLineNum = 855;BA.debugLine="Private hay As Boolean = False"; +_hay = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 856;BA.debugLine="If thisC.GetInt(\"hayPedido\") > 0 Then hay = True"; +if (_thisc.GetInt("hayPedido")>0) { +_hay = anywheresoftware.b4a.keywords.Common.True;}; + //BA.debugLineNum = 858;BA.debugLine="Return hay"; +if (true) return _hay; + //BA.debugLineNum = 859;BA.debugLine="End Sub"; +return false; +} +public static String _importabddesdewhatsapp(anywheresoftware.b4a.BA _ba) throws Exception{ +String _xmldata = ""; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _outstr = null; +anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _instr = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _a = null; + //BA.debugLineNum = 1708;BA.debugLine="Sub importaBDDesdeWhatsApp"; + //BA.debugLineNum = 1710;BA.debugLine="Log(\"Revisamos intent de importar desde whatsapp\""; +anywheresoftware.b4a.keywords.Common.LogImpl("311927554","Revisamos intent de importar desde whatsapp",0); + //BA.debugLineNum = 1711;BA.debugLine="Log(B4XPages.MainPage.intentUsado)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311927555",BA.ObjectToString(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._intentusado /*boolean*/ ),0); + //BA.debugLineNum = 1712;BA.debugLine="Log(in)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311927556",BA.ObjectToString(_in),0); + //BA.debugLineNum = 1713;BA.debugLine="If Not(in.IsInitialized) Then in = B4XPages.GetNa"; +if (anywheresoftware.b4a.keywords.Common.Not(_in.IsInitialized())) { +_in = mostCurrent._b4xpages._getnativeparent /*anywheresoftware.b4a.objects.ActivityWrapper*/ (_ba,(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba))).GetStartingIntent();}; + //BA.debugLineNum = 1714;BA.debugLine="If Not(B4XPages.MainPage.intentUsado) And in <> N"; +if (anywheresoftware.b4a.keywords.Common.Not(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._intentusado /*boolean*/ ) && _in!= null) { + //BA.debugLineNum = 1716;BA.debugLine="LogColor(\"Importamos base de datos desde Whatsap"; +anywheresoftware.b4a.keywords.Common.LogImpl("311927560","Importamos base de datos desde Whatsapp.",anywheresoftware.b4a.keywords.Common.Colors.Blue); + //BA.debugLineNum = 1717;BA.debugLine="B4XPages.MainPage.intentUsado = True"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._intentusado /*boolean*/ = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 1719;BA.debugLine="If in.GetData <> Null Then"; +if (_in.GetData()!= null) { + //BA.debugLineNum = 1720;BA.debugLine="Dim XmlData As String"; +_xmldata = ""; + //BA.debugLineNum = 1721;BA.debugLine="XmlData = in.GetData"; +_xmldata = _in.GetData(); + //BA.debugLineNum = 1722;BA.debugLine="Try"; +try { //BA.debugLineNum = 1723;BA.debugLine="Dim OutStr As OutputStream = File.OpenOutput(F"; +_outstr = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_outstr = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db",anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 1724;BA.debugLine="Dim InStr As InputStream = File.OpenInput(\"Con"; +_instr = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); +_instr = anywheresoftware.b4a.keywords.Common.File.OpenInput("ContentDir",_xmldata); + //BA.debugLineNum = 1725;BA.debugLine="File.Copy2(InStr,OutStr)"; +anywheresoftware.b4a.keywords.Common.File.Copy2((java.io.InputStream)(_instr.getObject()),(java.io.OutputStream)(_outstr.getObject())); + //BA.debugLineNum = 1726;BA.debugLine="LogColor(\"BD copiada a interna.\", Colors.Blue)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311927570","BD copiada a interna.",anywheresoftware.b4a.keywords.Common.Colors.Blue); + //BA.debugLineNum = 1727;BA.debugLine="OutStr.Close"; +_outstr.Close(); + //BA.debugLineNum = 1728;BA.debugLine="If in.As(String).Contains(\"whatsapp\") Then Toa"; +if ((BA.ObjectToString(_in)).contains("whatsapp")) { +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("BD cargada desde Whatsapp"),anywheresoftware.b4a.keywords.Common.False);}; + } + catch (Exception e19) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19); //BA.debugLineNum = 1730;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311927574",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + }; + //BA.debugLineNum = 1735;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)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'APP_NAME'")))); + //BA.debugLineNum = 1736;BA.debugLine="If a.RowCount > 0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 1737;BA.debugLine="a.Position = 0"; +_a.setPosition((int) (0)); + //BA.debugLineNum = 1738;BA.debugLine="ToastMessageShow($\"BD de \"${a.GetString(\"CAT_V"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(("BD de \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_a.GetString("CAT_VA_VALOR")))+"\" cargada.")),anywheresoftware.b4a.keywords.Common.True); + }; + //BA.debugLineNum = 1740;BA.debugLine="a = Starter.skmt.ExecQuery($\"select * from usua"; +_a = (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 * from usuarioa")))); + //BA.debugLineNum = 1741;BA.debugLine="If a.RowCount > 0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 1742;BA.debugLine="a.Position = 0"; +_a.setPosition((int) (0)); + //BA.debugLineNum = 1743;BA.debugLine="B4XPages.MainPage.user.Text = a.GetString(\"USU"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_a.GetString("USUARIO"))); + //BA.debugLineNum = 1744;BA.debugLine="B4XPages.MainPage.pass.Text = a.GetString(\"PAS"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_a.GetString("PASS"))); + }; + }; + }; + //BA.debugLineNum = 1748;BA.debugLine="End Sub"; +return ""; +} +public static String _iniciaactividad(anywheresoftware.b4a.BA _ba,String _ia) throws Exception{ + //BA.debugLineNum = 1516;BA.debugLine="Sub iniciaActividad(ia As String)"; + //BA.debugLineNum = 1517;BA.debugLine="If ia <> \"\" And ia <> Null Then"; +if ((_ia).equals("") == false && _ia!= null) { + //BA.debugLineNum = 1519;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fro"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("ULTIMOMODULO")})); + //BA.debugLineNum = 1520;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._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)("ULTIMOMODULO"),(Object)(_ia)})); + //BA.debugLineNum = 1521;BA.debugLine="B4XPages.ShowPage(ia)"; +mostCurrent._b4xpages._showpage /*String*/ (_ba,_ia); + }; + //BA.debugLineNum = 1524;BA.debugLine="End Sub"; +return ""; +} +public static String _insertarenglonespruebaenerrorlog(anywheresoftware.b4a.BA _ba) throws Exception{ +int _x = 0; + //BA.debugLineNum = 458;BA.debugLine="Sub insertaRenglonesPruebaEnErrorLog 'ignore"; + //BA.debugLineNum = 459;BA.debugLine="revisaBD"; +_revisabd(_ba); + //BA.debugLineNum = 460;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("38323074","insertamos 50 renglones a errorLog",0); + //BA.debugLineNum = 461;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 = 462;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 = 463;BA.debugLine="Log(x)"; +anywheresoftware.b4a.keywords.Common.LogImpl("38323077",BA.NumberToString(_x),0); + } +}; + //BA.debugLineNum = 465;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 = 520;BA.debugLine="Sub InstallAPK(dir As String, apk As String) 'igno"; + //BA.debugLineNum = 521;BA.debugLine="If File.Exists(dir, apk) Then"; +if (anywheresoftware.b4a.keywords.Common.File.Exists(_dir,_apk)) { + //BA.debugLineNum = 522;BA.debugLine="Dim i As Intent"; +_i = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 523;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 = 524;BA.debugLine="i.SetType(\"application/vnd.android.package-archi"; +_i.SetType("application/vnd.android.package-archive"); + //BA.debugLineNum = 525;BA.debugLine="StartActivity(i)"; +anywheresoftware.b4a.keywords.Common.StartActivity((_ba.processBA == null ? _ba : _ba.processBA),(Object)(_i.getObject())); + }; + //BA.debugLineNum = 527;BA.debugLine="End Sub"; +return ""; +} +public static boolean _invsuficientepromoesp(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _y = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +int _i = 0; + //BA.debugLineNum = 1374;BA.debugLine="Sub InvSuficientePromoEsp As Boolean"; + //BA.debugLineNum = 1375;BA.debugLine="Private y As Boolean = False"; +_y = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1376;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_DP_IDPROD, CAT_DP_PZAS, ifnull(CAT_GP_ALMACEN, 0) As CAT_GP_ALMACEN from CAT_DETALLES_PAQ left JOIN "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" ON CAT_DP_IDPROD = CAT_GP_ID WHERE CAT_DP_ID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP)")))); + //BA.debugLineNum = 1377;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1378;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 = 1379;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 1380;BA.debugLine="If c.GetString(\"CAT_GP_ALMACEN\") >= c.GetString"; +if ((double)(Double.parseDouble(_c.GetString("CAT_GP_ALMACEN")))>=(double)(Double.parseDouble(_c.GetString("CAT_DP_PZAS")))) { + //BA.debugLineNum = 1381;BA.debugLine="y = True"; +_y = anywheresoftware.b4a.keywords.Common.True; + }else { + //BA.debugLineNum = 1385;BA.debugLine="y = False"; +_y = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1388;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + }; + //BA.debugLineNum = 1392;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1393;BA.debugLine="Return y"; +if (true) return _y; + //BA.debugLineNum = 1394;BA.debugLine="End Sub"; +return false; +} +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 = 233;BA.debugLine="Sub JSON2Map(theJson As String) As Map 'ignore"; + //BA.debugLineNum = 235;BA.debugLine="Try"; +try { //BA.debugLineNum = 236;BA.debugLine="Private json As JSONParser"; +_json = new anywheresoftware.b4a.objects.collections.JSONParser(); + //BA.debugLineNum = 237;BA.debugLine="json.Initialize(theJson)"; +_json.Initialize(_thejson); + //BA.debugLineNum = 238;BA.debugLine="Return json.NextObject"; +if (true) return _json.NextObject(); + } + catch (Exception e6) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 240;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("37602183",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + //BA.debugLineNum = 241;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)"; +_log2db(_ba,"JSON2Map: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba))); + //BA.debugLineNum = 242;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 = 243;BA.debugLine="Return m"; +if (true) return _m; + }; + //BA.debugLineNum = 245;BA.debugLine="End Sub"; +return null; +} +public static String _log2db(anywheresoftware.b4a.BA _ba,String _texto) throws Exception{ + //BA.debugLineNum = 287;BA.debugLine="Sub log2DB(texto As String) 'ignore"; + //BA.debugLineNum = 288;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te"; +anywheresoftware.b4a.keywords.Common.LogImpl("37798785",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.LightGray); + //BA.debugLineNum = 289;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO bitacora(fecha, te"; +_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 = 290;BA.debugLine="End Sub"; +return ""; +} +public static String _logjobdoneresultados(anywheresoftware.b4a.BA _ba,gunav2.keymon.com.mx.dbrequestmanager._dbresult _resultado) throws Exception{ +Object[] _records = null; +String _k = ""; + //BA.debugLineNum = 2488;BA.debugLine="Sub logJobDoneResultados(resultado As DBResult)"; + //BA.debugLineNum = 2489;BA.debugLine="For Each records() As Object In resultado.Rows"; +{ +final anywheresoftware.b4a.BA.IterableList group1 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen1 = group1.getSize() +;int index1 = 0; +; +for (; index1 < groupLen1;index1++){ +_records = (Object[])(group1.Get(index1)); + //BA.debugLineNum = 2490;BA.debugLine="LogColor($\"====== ${resultado.Tag} - REGISTROS ="; +anywheresoftware.b4a.keywords.Common.LogImpl("313565954",("====== "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_resultado.Tag /*Object*/ )+" - REGISTROS = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (215),(int) (37),(int) (0))); + //BA.debugLineNum = 2491;BA.debugLine="For Each k As String In resultado.Columns.Keys"; +{ +final anywheresoftware.b4a.BA.IterableList group3 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final int groupLen3 = group3.getSize() +;int index3 = 0; +; +for (; index3 < groupLen3;index3++){ +_k = BA.ObjectToString(group3.Get(index3)); + //BA.debugLineNum = 2492;BA.debugLine="LogColor(k & \" = \" & records(resultado.Columns."; +anywheresoftware.b4a.keywords.Common.LogImpl("313565956",_k+" = "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (215),(int) (37),(int) (0))); + } +}; + } +}; + //BA.debugLineNum = 2495;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 = 248;BA.debugLine="Sub map2JSON(m As Map) As String 'ignore"; + //BA.debugLineNum = 251;BA.debugLine="Dim jg As JSONGenerator"; +_jg = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); + //BA.debugLineNum = 252;BA.debugLine="jg.Initialize(m)"; +_jg.Initialize(_m); + //BA.debugLineNum = 253;BA.debugLine="Dim t As String = jg.ToString"; +_t = _jg.ToString(); + //BA.debugLineNum = 254;BA.debugLine="Return t"; +if (true) return _t; + //BA.debugLineNum = 255;BA.debugLine="End Sub"; +return ""; +} +public static boolean _masdexxmins(anywheresoftware.b4a.BA _ba,int _hora,int _mins) throws Exception{ + //BA.debugLineNum = 293;BA.debugLine="Sub masDeXXMins(hora As Int, mins As Int) As Boole"; + //BA.debugLineNum = 294;BA.debugLine="If (hora + mins * DateTime.TicksPerMinute) < Date"; +if ((_hora+_mins*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute)\")"; +_inicio = _error.indexOf(""); + //BA.debugLineNum = 1698;BA.debugLine="Private final As Int = error.IndexOf(\"\")"; +_final = _error.indexOf(""); + //BA.debugLineNum = 1699;BA.debugLine="Log(\"|\" & inicio & \"|\" & final & \"|\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("311862020","|"+BA.NumberToString(_inicio)+"|"+BA.NumberToString(_final)+"|",0); + //BA.debugLineNum = 1700;BA.debugLine="If inicio > 0 And final > 0 Then"; +if (_inicio>0 && _final>0) { + //BA.debugLineNum = 1701;BA.debugLine="nuevoError = error.SubString2(inicio + 17, final"; +_nuevoerror = _error.substring((int) (_inicio+17),_final); + }; + //BA.debugLineNum = 1704;BA.debugLine="Return nuevoError"; +if (true) return _nuevoerror; + //BA.debugLineNum = 1705;BA.debugLine="End Sub"; +return ""; +} +public static boolean _pedidoguardado(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _guardado = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _g = null; + //BA.debugLineNum = 708;BA.debugLine="Sub pedidoGuardado As Boolean"; + //BA.debugLineNum = 709;BA.debugLine="Private guardado As Boolean = False"; +_guardado = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 710;BA.debugLine="Private g As Cursor = B4XPages.MainPage.skmt.Exec"; +_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)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select gestion from kmt_info3 where CAT_CL_CODIGO in (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 711;BA.debugLine="If g.RowCount > 0 Then"; +if (_g.getRowCount()>0) { + //BA.debugLineNum = 712;BA.debugLine="g.Position=0"; +_g.setPosition((int) (0)); + //BA.debugLineNum = 713;BA.debugLine="If g.GetString(\"gestion\") = \"2\" Or g.GetString(\""; +if ((_g.GetString("gestion")).equals("2") || (_g.GetString("gestion")).equals("3")) { +_guardado = anywheresoftware.b4a.keywords.Common.True;}; + }; + //BA.debugLineNum = 716;BA.debugLine="Return guardado"; +if (true) return _guardado; + //BA.debugLineNum = 717;BA.debugLine="End Sub"; +return false; +} +public static anywheresoftware.b4a.objects.collections.Map _procesapromocion(anywheresoftware.b4a.BA _ba,String _idpromo,String _cliente) throws Exception{ +boolean _thislog = false; +String _iniciocontador = ""; +anywheresoftware.b4a.objects.collections.Map _pm = null; +anywheresoftware.b4a.objects.collections.Map _inventariosinfijos = null; +boolean _pv = false; + //BA.debugLineNum = 1074;BA.debugLine="Sub procesaPromocion(idPromo As String, cliente As"; + //BA.debugLineNum = 1075;BA.debugLine="Private thisLog As Boolean = True 'Si es verdade"; +_thislog = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 1076;BA.debugLine="Private inicioContador As String = DateTime.Now"; +_iniciocontador = BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 1077;BA.debugLine="If thisLog Then LogColor($\"********* Iniciamos re"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485763",("********* Iniciamos revision de Promo "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idpromo))+" *********"),anywheresoftware.b4a.keywords.Common.Colors.Magenta);}; + //BA.debugLineNum = 1079;BA.debugLine="Private pm As Map = traePromo(idPromo, cliente)"; +_pm = new anywheresoftware.b4a.objects.collections.Map(); +_pm = _traepromo(_ba,_idpromo,_cliente); + //BA.debugLineNum = 1080;BA.debugLine="If thisLog Then LogColor(pm, Colors.Blue)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485766",BA.ObjectToString(_pm),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1081;BA.debugLine="If pm.Get(\"resultado\") = \"ok\" Then 'Si encontramo"; +if ((_pm.Get((Object)("resultado"))).equals((Object)("ok"))) { + //BA.debugLineNum = 1083;BA.debugLine="If thisLog Then LogColor($\"Promociones permitida"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485769",("Promociones permitidas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traemaxpromos(_ba,_pm)))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1084;BA.debugLine="If thisLog Then Log(\"Promos vendidas: \" & traePr"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485770","Promos vendidas: "+BA.NumberToString(_traepromosvendidas(_ba,_idpromo,_cliente)),0);}; + //BA.debugLineNum = 1085;BA.debugLine="If traePromosVendidas(idPromo, cliente) >= traeM"; +if (_traepromosvendidas(_ba,_idpromo,_cliente)>=_traemaxpromos(_ba,_pm)) { + //BA.debugLineNum = 1086;BA.debugLine="If thisLog Then LogColor(\"Ya se vendieron las p"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485772","Ya se vendieron las promos PERMITIDAS para el cliente",anywheresoftware.b4a.keywords.Common.Colors.Red);}; + //BA.debugLineNum = 1087;BA.debugLine="Return CreateMap(\"status\":\"ko\", \"mp\":pm)"; +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ko"),(Object)("mp"),(Object)(_pm.getObject())}); + }; + //BA.debugLineNum = 1090;BA.debugLine="Private inventarioSinFijos As Map = restaFijosPr"; +_inventariosinfijos = new anywheresoftware.b4a.objects.collections.Map(); +_inventariosinfijos = _restafijospromo(_ba,_pm); + //BA.debugLineNum = 1091;BA.debugLine="If thisLog Then LogColor(\"inventariosfijos=\"&inv"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485777","inventariosfijos="+BA.ObjectToString(_inventariosinfijos),anywheresoftware.b4a.keywords.Common.Colors.Green);}; + //BA.debugLineNum = 1093;BA.debugLine="If inventarioSinFijos.Get(\"resultado\") = \"ok\" Th"; +if ((_inventariosinfijos.Get((Object)("resultado"))).equals((Object)("ok"))) { + //BA.debugLineNum = 1095;BA.debugLine="Private pv As Boolean = alcanzanLosVariablesPa"; +_pv = _alcanzanlosvariablesparapromo(_ba,_pm,_inventariosinfijos); + //BA.debugLineNum = 1096;BA.debugLine="If thisLog Then Log(\"Alcanzan los variables? --"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485782","Alcanzan los variables? --> "+BA.ObjectToString(_pv),0);}; + //BA.debugLineNum = 1097;BA.debugLine="If pv Then Return CreateMap(\"status\":\"ok\", \"mp\""; +if (_pv) { +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ok"),(Object)("mp"),(Object)(_pm.getObject())});} +else { +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ko"),(Object)("mp"),(Object)(_pm.getObject())});}; + }else { + //BA.debugLineNum = 1099;BA.debugLine="If thisLog Then LogColor(\"NO HAY INVENTARIO SUF"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310485785","NO HAY INVENTARIO SUFICIENTE "+_idpromo,anywheresoftware.b4a.keywords.Common.Colors.Red);}; + //BA.debugLineNum = 1100;BA.debugLine="Return CreateMap(\"status\":\"ko\", \"mp\":pm)"; +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("status"),(Object)("ko"),(Object)("mp"),(Object)(_pm.getObject())}); + }; + }; + //BA.debugLineNum = 1106;BA.debugLine="LogColor(\"TIEMPO DE PROCESO ESTA PROMO: \" & ((Dat"; +anywheresoftware.b4a.keywords.Common.LogImpl("310485792","TIEMPO DE PROCESO ESTA PROMO: "+BA.NumberToString(((anywheresoftware.b4a.keywords.Common.DateTime.getNow()-(double)(Double.parseDouble(_iniciocontador)))/(double)1000)),anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 1107;BA.debugLine="End Sub"; +return null; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 3;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 6;BA.debugLine="Public GZip As GZipStrings 'Usa la libreria Com"; +_gzip = new de.donmanfred.GZipStringswrapper(); + //BA.debugLineNum = 7;BA.debugLine="Private su As StringUtils 'Usa la libreria Stri"; +_su = new anywheresoftware.b4a.objects.StringUtils(); + //BA.debugLineNum = 8;BA.debugLine="Dim phn As Phone"; +_phn = new anywheresoftware.b4a.phone.Phone(); + //BA.debugLineNum = 9;BA.debugLine="Dim devModel As String"; +_devmodel = ""; + //BA.debugLineNum = 10;BA.debugLine="Dim kmt, errorLog As SQL 'Requiere la libreria \"S"; +_kmt = new anywheresoftware.b4a.sql.SQL(); +_errorlog = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 12;BA.debugLine="Dim ssid As String 'ignore"; +_ssid = ""; + //BA.debugLineNum = 13;BA.debugLine="Dim rutaMaxPoints As Int = 3000"; +_rutamaxpoints = (int) (3000); + //BA.debugLineNum = 14;BA.debugLine="Dim rutaHrsAtras As Int = 48"; +_rutahrsatras = (int) (48); + //BA.debugLineNum = 16;BA.debugLine="Private subsLogs As Boolean = False"; +_subslogs = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 17;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 18;BA.debugLine="Dim in As Intent"; +_in = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim intentUsado As Boolean = False"; +_intentusado = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 20;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _restafijospromo(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _promomap) throws Exception{ +boolean _thislog = false; +anywheresoftware.b4a.objects.collections.Map _inventariosdisponiblesparaestapromo = null; +int _i = 0; +anywheresoftware.b4a.objects.collections.Map _prodsmap = null; +anywheresoftware.b4a.objects.collections.List _prodsfijos = null; +int _p = 0; +String _t = ""; +anywheresoftware.b4a.objects.collections.Map _p2 = null; + //BA.debugLineNum = 973;BA.debugLine="Sub restaFijosPromo(promoMap As Map) As Map 'ignor"; + //BA.debugLineNum = 974;BA.debugLine="Private thisLog As Boolean = False 'Si es verdade"; +_thislog = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 975;BA.debugLine="Private inventariosDisponiblesParaEstaPromo As Ma"; +_inventariosdisponiblesparaestapromo = new anywheresoftware.b4a.objects.collections.Map(); +_inventariosdisponiblesparaestapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_promomap.Get((Object)("id")))); + //BA.debugLineNum = 976;BA.debugLine="If thisLog Then LogColor(inventariosDisponiblesPa"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310289155",BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Red);}; + //BA.debugLineNum = 977;BA.debugLine="If thisLog Then LogColor(\"Inventario inicial ante"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310289156","Inventario inicial antes de FIJOS: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Gray);}; + //BA.debugLineNum = 978;BA.debugLine="Private i As Int"; +_i = 0; + //BA.debugLineNum = 979;BA.debugLine="Private prodsmap As Map = promoMap.Get(\"productos"; +_prodsmap = new anywheresoftware.b4a.objects.collections.Map(); +_prodsmap = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_promomap.Get((Object)("productos")))); + //BA.debugLineNum = 980;BA.debugLine="Private prodsFijos As List = promoMap.get(\"prodsF"; +_prodsfijos = new anywheresoftware.b4a.objects.collections.List(); +_prodsfijos = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijos")))); + //BA.debugLineNum = 981;BA.debugLine="For p = 0 To prodsFijos.Size - 1"; +{ +final int step8 = 1; +final int limit8 = (int) (_prodsfijos.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit8 ;_p = _p + step8 ) { + //BA.debugLineNum = 982;BA.debugLine="Private t As String = prodsFijos.Get(p) 'Obtenem"; +_t = BA.ObjectToString(_prodsfijos.Get(_p)); + //BA.debugLineNum = 983;BA.debugLine="Private p2 As Map = prodsmap.Get(t) 'Obtenemos u"; +_p2 = new anywheresoftware.b4a.objects.collections.Map(); +_p2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_t)))); + //BA.debugLineNum = 984;BA.debugLine="If thisLog Then Log($\"T: ${t}, prod ${p2.Get(\"id"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310289163",("T: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+", prod "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_p2.Get((Object)("idProducto")))+", piezas: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_p2.Get((Object)("piezas")))+""),0);}; + //BA.debugLineNum = 985;BA.debugLine="If thisLog Then Log(\"inventariosDisponiblesParaE"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310289164","inventariosDisponiblesParaEstaPromo="+BA.ObjectToString(_inventariosdisponiblesparaestapromo),0);}; + //BA.debugLineNum = 986;BA.debugLine="If inventariosDisponiblesParaEstaPromo.ContainsK"; +if (_inventariosdisponiblesparaestapromo.ContainsKey((Object)(_t))) { + //BA.debugLineNum = 987;BA.debugLine="i = inventariosDisponiblesParaEstaPromo.get(t)"; +_i = (int)(BA.ObjectToNumber(_inventariosdisponiblesparaestapromo.Get((Object)(_t)))); + //BA.debugLineNum = 988;BA.debugLine="If thisLog Then Log($\"Nuevo inventario de ${t}:"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310289167",("Nuevo inventario de "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_t))+": "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_i))+"-"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p))+" = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("1.0",(Object)(_i-(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p)))))+""),0);}; + //BA.debugLineNum = 989;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(t, $\"${"; +_inventariosdisponiblesparaestapromo.Put((Object)(_t),(Object)((""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_i-(double)(BA.ObjectToNumber(((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_promomap.Get((Object)("prodsFijosPiezas"))))).Get(_p)))))+""))); + //BA.debugLineNum = 990;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(\"result"; +_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("ok")); + }else { + //BA.debugLineNum = 992;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(\"result"; +_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("No hay suficiente producto para la promocion.")); + //BA.debugLineNum = 993;BA.debugLine="LogColor(\"Sin suficiente inventario fijo: \" & t"; +anywheresoftware.b4a.keywords.Common.LogImpl("310289172","Sin suficiente inventario fijo: "+_t,anywheresoftware.b4a.keywords.Common.Colors.Blue); + //BA.debugLineNum = 994;BA.debugLine="Exit"; +if (true) break; + }; + //BA.debugLineNum = 996;BA.debugLine="If i - p2.Get(\"piezas\") < 0 Then"; +if (_i-(double)(BA.ObjectToNumber(_p2.Get((Object)("piezas"))))<0) { + //BA.debugLineNum = 997;BA.debugLine="inventariosDisponiblesParaEstaPromo.Put(\"result"; +_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("No hay suficiente producto para la promocion.")); + //BA.debugLineNum = 998;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 1001;BA.debugLine="If prodsFijos.Size = 0 Then inventariosDisponible"; +if (_prodsfijos.getSize()==0) { +_inventariosdisponiblesparaestapromo.Put((Object)("resultado"),(Object)("ok"));}; + //BA.debugLineNum = 1002;BA.debugLine="If thisLog Then LogColor(\"Inventario final depues"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310289181","Inventario final depues de FIJOS: "+BA.ObjectToString(_inventariosdisponiblesparaestapromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1003;BA.debugLine="Return inventariosDisponiblesParaEstaPromo"; +if (true) return _inventariosdisponiblesparaestapromo; + //BA.debugLineNum = 1004;BA.debugLine="End Sub"; +return null; +} +public static String _revisabd(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 202;BA.debugLine="Sub revisaBD 'ignore"; + //BA.debugLineNum = 204;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 = 205;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 = 206;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 = 208;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS bita"; +_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS bitacora(fecha INTEGER, texto TEXT)"); + //BA.debugLineNum = 210;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 = 211;BA.debugLine="errorLog.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS"; +_errorlog.ExecNonQuery("CREATE TABLE IF NOT EXISTS errores(fecha INTEGER, error TEXT)"); + //BA.debugLineNum = 212;BA.debugLine="End Sub"; +return ""; +} +public static String _revisaflp(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _todobienflp = false; + //BA.debugLineNum = 365;BA.debugLine="Sub revisaFLP 'ignore"; + //BA.debugLineNum = 366;BA.debugLine="LogColor(\"**** **** Revisamos FLP **** ****\", Col"; +anywheresoftware.b4a.keywords.Common.LogImpl("38126465","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227))); + //BA.debugLineNum = 367;BA.debugLine="Private todoBienFLP As Boolean = True"; +_todobienflp = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 368;BA.debugLine="Try"; +try { //BA.debugLineNum = 369;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 = 370;BA.debugLine="log2DB(\"revisaFLP: No esta inicializado ... 'Re"; +_log2db(_ba,"revisaFLP: No esta inicializado ... 'Reinicializando FLP'"); + //BA.debugLineNum = 371;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 = 372;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + } + catch (Exception e10) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e10); //BA.debugLineNum = 375;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsInitialized) ---"; +anywheresoftware.b4a.keywords.Common.LogImpl("38126474","If Not(Tracker.FLP.IsInitialized) --- "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 377;BA.debugLine="Try"; +try { //BA.debugLineNum = 378;BA.debugLine="If Tracker.FLP.IsInitialized Then"; +if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized()) { + //BA.debugLineNum = 379;BA.debugLine="Try"; +try { //BA.debugLineNum = 380;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 = 381;BA.debugLine="log2DB(\"revisaFLP: No esta conectado ... 'Rec"; +_log2db(_ba,"revisaFLP: No esta conectado ... 'Reconectando FLP'"); + //BA.debugLineNum = 383;BA.debugLine="CallSubDelayed(Tracker,\"StartFLP\")"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject()),"StartFLP"); + //BA.debugLineNum = 384;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + } + catch (Exception e21) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e21); //BA.debugLineNum = 387;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsConnected) -->"; +anywheresoftware.b4a.keywords.Common.LogImpl("38126486","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 389;BA.debugLine="Try"; +try { //BA.debugLineNum = 390;BA.debugLine="If Tracker.FLP.IsConnected And _ Tracker."; +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 = 393;BA.debugLine="log2DB(\"revisaFLP: 'No se esta actualizando,"; +_log2db(_ba,"revisaFLP: 'No se esta actualizando, lo reiniciamos ...'"); + //BA.debugLineNum = 394;BA.debugLine="StartService(Tracker)"; +anywheresoftware.b4a.keywords.Common.StartService((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject())); + //BA.debugLineNum = 395;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + } + catch (Exception e30) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e30); //BA.debugLineNum = 398;BA.debugLine="LogColor(\"If FLP.IsConnectctd and FLP.getLKL.I"; +anywheresoftware.b4a.keywords.Common.LogImpl("38126497","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + }; + //BA.debugLineNum = 401;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin error"; +if (_todobienflp) { +anywheresoftware.b4a.keywords.Common.LogImpl("38126500"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);}; + } + catch (Exception e35) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e35); //BA.debugLineNum = 403;BA.debugLine="LogColor(\"If Tracker.FLP.IsInitialized --> \"&Las"; +anywheresoftware.b4a.keywords.Common.LogImpl("38126502","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 406;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _revisaforzaractualizacion(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _ra = null; +String _nuevaversion = ""; +int _forzaractualizacion = 0; +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 1666;BA.debugLine="Sub revisaForzarActualizacion As Map"; + //BA.debugLineNum = 1667;BA.debugLine="Private ra As ResultSet = Starter.skmt.ExecQuery("; +_ra = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_ra = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'VERSION_NUEVA' or CAT_VA_DESCRIPCION = 'FORZAR_ACTUALIZACION'")))); + //BA.debugLineNum = 1668;BA.debugLine="Private nuevaVersion As String = \"\""; +_nuevaversion = ""; + //BA.debugLineNum = 1669;BA.debugLine="Private forzarActualizacion As Int = 2"; +_forzaractualizacion = (int) (2); + //BA.debugLineNum = 1670;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1671;BA.debugLine="m.Initialize"; +_m.Initialize(); + //BA.debugLineNum = 1672;BA.debugLine="Do While ra.NextRow"; +while (_ra.NextRow()) { + //BA.debugLineNum = 1673;BA.debugLine="If ra.GetString(\"CAT_VA_DESCRIPCION\") = \"VERSION"; +if ((_ra.GetString("CAT_VA_DESCRIPCION")).equals("VERSION_NUEVA")) { +_nuevaversion = _ra.GetString("CAT_VA_VALOR");}; + //BA.debugLineNum = 1674;BA.debugLine="If ra.GetString(\"CAT_VA_DESCRIPCION\") = \"FORZAR_"; +if ((_ra.GetString("CAT_VA_DESCRIPCION")).equals("FORZAR_ACTUALIZACION")) { +_forzaractualizacion = _ra.GetInt("CAT_VA_VALOR");}; + } +; + //BA.debugLineNum = 1678;BA.debugLine="If nuevaVersion <> Application.VersionName And fo"; +if ((_nuevaversion).equals(anywheresoftware.b4a.keywords.Common.Application.getVersionName()) == false && _forzaractualizacion==1) { + //BA.debugLineNum = 1679;BA.debugLine="m.Put(\"forzar\", 1)"; +_m.Put((Object)("forzar"),(Object)(1)); + //BA.debugLineNum = 1680;BA.debugLine="m.Put(\"nuevaVersion\", nuevaVersion)"; +_m.Put((Object)("nuevaVersion"),(Object)(_nuevaversion)); + }else if(_forzaractualizacion==2) { + //BA.debugLineNum = 1682;BA.debugLine="m.Put(\"forzar\", 2)"; +_m.Put((Object)("forzar"),(Object)(2)); + //BA.debugLineNum = 1683;BA.debugLine="m.Put(\"nuevaVersion\", \"Recargar\")"; +_m.Put((Object)("nuevaVersion"),(Object)("Recargar")); + }else { + //BA.debugLineNum = 1685;BA.debugLine="m.Put(\"forzar\", 0)"; +_m.Put((Object)("forzar"),(Object)(0)); + //BA.debugLineNum = 1686;BA.debugLine="m.Put(\"nuevaVersion\", nuevaVersion)"; +_m.Put((Object)("nuevaVersion"),(Object)(_nuevaversion)); + }; + //BA.debugLineNum = 1688;BA.debugLine="If nuevaVersion = \"\" Or nuevaVersion = Null Or nu"; +if ((_nuevaversion).equals("") || _nuevaversion== null || (_nuevaversion).equals("null")) { + //BA.debugLineNum = 1689;BA.debugLine="m.Put(\"forzar\", 0)"; +_m.Put((Object)("forzar"),(Object)(0)); + //BA.debugLineNum = 1690;BA.debugLine="m.Put(\"nuevaVersion\", \"\")"; +_m.Put((Object)("nuevaVersion"),(Object)("")); + }; + //BA.debugLineNum = 1692;BA.debugLine="Return m"; +if (true) return _m; + //BA.debugLineNum = 1693;BA.debugLine="End Sub"; +return null; +} +public static boolean _revisaimpreso(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _impreso = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 1906;BA.debugLine="Sub revisaImpreso As Boolean 'ignore"; + //BA.debugLineNum = 1907;BA.debugLine="Private impreso As Boolean = False"; +_impreso = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1908;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)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select idCliente from ticket_impreso where idCliente in (select cuenta from cuentaa)"))); + //BA.debugLineNum = 1909;BA.debugLine="If c.RowCount > 0 Then impreso = True"; +if (_c.getRowCount()>0) { +_impreso = anywheresoftware.b4a.keywords.Common.True;}; + //BA.debugLineNum = 1910;BA.debugLine="Return impreso"; +if (true) return _impreso; + //BA.debugLineNum = 1911;BA.debugLine="End Sub"; +return false; +} +public static int _revisamaxpromosprodsfijosporinventario(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _pm) throws Exception{ +boolean _thislog = false; +anywheresoftware.b4a.objects.collections.Map _invfijoxpromo = null; +anywheresoftware.b4a.objects.collections.List _t = null; +anywheresoftware.b4a.objects.collections.Map _invdispparapromo = null; +anywheresoftware.b4a.objects.collections.List _prodsfijospiezas = null; +anywheresoftware.b4a.objects.collections.List _idprodsfijos = null; +int _p = 0; +String[] _x = null; + //BA.debugLineNum = 1153;BA.debugLine="Sub revisaMaxPromosProdsFijosPorInventario(pm As M"; + //BA.debugLineNum = 1154;BA.debugLine="Private thisLog As Boolean = False"; +_thislog = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1155;BA.debugLine="Private invFijoXpromo As Map"; +_invfijoxpromo = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1156;BA.debugLine="Private t As List"; +_t = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 1157;BA.debugLine="t.Initialize"; +_t.Initialize(); + //BA.debugLineNum = 1158;BA.debugLine="t.Add(traeMaxPromos(pm)) ' Agregamos a la lista l"; +_t.Add((Object)(_traemaxpromos(_ba,_pm))); + //BA.debugLineNum = 1159;BA.debugLine="invFijoXpromo.Initialize"; +_invfijoxpromo.Initialize(); + //BA.debugLineNum = 1160;BA.debugLine="If thisLog Then LogColor($\"pm=${pm}\"$, Colors.Blu"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616839",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1161;BA.debugLine="Private invDispParaPromo As Map = traemosInventar"; +_invdispparapromo = new anywheresoftware.b4a.objects.collections.Map(); +_invdispparapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_pm.Get((Object)("id")))); + //BA.debugLineNum = 1162;BA.debugLine="If thisLog Then Log($\"invDispParaPromo=${invDispP"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616841",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);}; + //BA.debugLineNum = 1163;BA.debugLine="Private prodsFijosPiezas As List = pm.Get(\"prodsF"; +_prodsfijospiezas = new anywheresoftware.b4a.objects.collections.List(); +_prodsfijospiezas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijosPiezas")))); + //BA.debugLineNum = 1164;BA.debugLine="Private idProdsFijos As List = pm.Get(\"prodsFijos"; +_idprodsfijos = new anywheresoftware.b4a.objects.collections.List(); +_idprodsfijos = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijos")))); + //BA.debugLineNum = 1165;BA.debugLine="For p = 0 To idProdsFijos.Size -1 'Generamos una"; +{ +final int step12 = 1; +final int limit12 = (int) (_idprodsfijos.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit12 ;_p = _p + step12 ) { + //BA.debugLineNum = 1166;BA.debugLine="If thisLog Then Log($\"id=${idProdsFijos.Get(p)},"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616845",("id="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_idprodsfijos.Get(_p))+", inv="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_invdispparapromo.Get(_idprodsfijos.Get(_p)))+", pzas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_prodsfijospiezas.Get(_p))+""),0);}; + //BA.debugLineNum = 1167;BA.debugLine="If thisLog Then Log($\"${(invDispParaPromo.Get(id"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616846",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_p))))/(double)(double)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p))))))+""),0);}; + //BA.debugLineNum = 1168;BA.debugLine="Private x() As String = Regex.Split(\"\\.\", $\"${(i"; +_x = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_p))))/(double)(double)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p))))))+"")); + //BA.debugLineNum = 1169;BA.debugLine="If thisLog Then Log(x(0))"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616848",_x[(int) (0)],0);}; + //BA.debugLineNum = 1170;BA.debugLine="t.Add(x(0).As(Int)) 'Solo guardamos la parte del"; +_t.Add((Object)(((int)(Double.parseDouble(_x[(int) (0)]))))); + } +}; + //BA.debugLineNum = 1172;BA.debugLine="t.Sort(True) 'Ordenamos la lista para que en el l"; +_t.Sort(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 1173;BA.debugLine="If thisLog Then LogColor($\"prodsFijos=${idProdsFi"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616852",("prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsfijos.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1174;BA.debugLine="If thisLog Then LogColor($\"prodsFijosPiezasReq=${"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616853",("prodsFijosPiezasReq="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsfijospiezas.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1175;BA.debugLine="If thisLog Then LogColor($\"invFijoXpromo=${invFij"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310616854",("invFijoXpromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invfijoxpromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1176;BA.debugLine="LogColor(\"Max promos de prodsFijos POR inventario"; +anywheresoftware.b4a.keywords.Common.LogImpl("310616855","Max promos de prodsFijos POR inventario = "+BA.ObjectToString(_t.Get((int) (0))),anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 1177;BA.debugLine="Return t.Get(0) 'Regresamos el resultado mas pequ"; +if (true) return (int)(BA.ObjectToNumber(_t.Get((int) (0)))); + //BA.debugLineNum = 1178;BA.debugLine="End Sub"; +return 0; +} +public static int _revisamaxpromosprodsfijosporinventario2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _pm) throws Exception{ +boolean _thislog = false; +anywheresoftware.b4a.objects.collections.Map _invdispparapromo = null; +String _maxpromos = ""; +int _maxpromosfijosxinv = 0; +int _fpf2 = 0; +int _pdp2 = 0; +boolean _salir = false; +anywheresoftware.b4a.objects.collections.List _pf = null; +anywheresoftware.b4a.objects.collections.List _pfp = null; +anywheresoftware.b4a.objects.collections.Map _invfijoxpromo = null; +int _p = 0; +int _i = 0; +int _q = 0; +String _q2 = ""; + //BA.debugLineNum = 1110;BA.debugLine="Sub revisaMaxPromosProdsFijosPorInventario2(pm As"; + //BA.debugLineNum = 1111;BA.debugLine="Private thisLog As Boolean = False"; +_thislog = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1112;BA.debugLine="If thisLog Then Log($\"pm=${pm}\"$)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551298",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),0);}; + //BA.debugLineNum = 1114;BA.debugLine="Private invDispParaPromo As Map = traemosInventar"; +_invdispparapromo = new anywheresoftware.b4a.objects.collections.Map(); +_invdispparapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_pm.Get((Object)("id")))); + //BA.debugLineNum = 1115;BA.debugLine="If thisLog Then Log($\"invDispParaPromo=${invDispP"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551301",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);}; + //BA.debugLineNum = 1116;BA.debugLine="Private maxPromos As String = traeMaxPromos(pm)"; +_maxpromos = BA.NumberToString(_traemaxpromos(_ba,_pm)); + //BA.debugLineNum = 1117;BA.debugLine="Private maxPromosFijosXinv As Int = 1"; +_maxpromosfijosxinv = (int) (1); + //BA.debugLineNum = 1118;BA.debugLine="Private fpf2, pdp2 As Int"; +_fpf2 = 0; +_pdp2 = 0; + //BA.debugLineNum = 1119;BA.debugLine="Private salir As Boolean = False"; +_salir = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1120;BA.debugLine="Private pf As List = pm.Get(\"prodsFijos\")"; +_pf = new anywheresoftware.b4a.objects.collections.List(); +_pf = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijos")))); + //BA.debugLineNum = 1121;BA.debugLine="Private pfp As List = pm.Get(\"prodsFijosPiezas\")"; +_pfp = new anywheresoftware.b4a.objects.collections.List(); +_pfp = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijosPiezas")))); + //BA.debugLineNum = 1122;BA.debugLine="If thisLog Then Log($\"maxPromos=${maxPromos}, pro"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551308",("maxPromos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromos))+", prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pf.getObject()))+", piezas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pfp.getObject()))+""),0);}; + //BA.debugLineNum = 1123;BA.debugLine="If thisLog Then LogColor($\"InvFijo disponible=${i"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551309",("InvFijo disponible="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1124;BA.debugLine="Private invFijoXpromo As Map"; +_invfijoxpromo = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1125;BA.debugLine="invFijoXpromo.Initialize"; +_invfijoxpromo.Initialize(); + //BA.debugLineNum = 1126;BA.debugLine="For p = 0 To pf.Size -1 'Generamos mapa con los p"; +{ +final int step15 = 1; +final int limit15 = (int) (_pf.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit15 ;_p = _p + step15 ) { + //BA.debugLineNum = 1127;BA.debugLine="invFijoXpromo.Put(pf.Get(p), pfp.Get(p))"; +_invfijoxpromo.Put(_pf.Get(_p),_pfp.Get(_p)); + } +}; + //BA.debugLineNum = 1129;BA.debugLine="If thisLog Then LogColor(\"Inv req. de prods fijos"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551315","Inv req. de prods fijos x promo"+BA.ObjectToString(_invfijoxpromo),anywheresoftware.b4a.keywords.Common.Colors.Green);}; + //BA.debugLineNum = 1130;BA.debugLine="For i = 1 To maxPromos 'Revisamos cuantas promoci"; +{ +final int step19 = 1; +final int limit19 = (int)(Double.parseDouble(_maxpromos)); +_i = (int) (1) ; +for (;_i <= limit19 ;_i = _i + step19 ) { + //BA.debugLineNum = 1131;BA.debugLine="If thisLog Then LogColor(\"Prods para promo \" & ("; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551317","Prods para promo "+BA.NumberToString((_i+1)),anywheresoftware.b4a.keywords.Common.Colors.Magenta);}; + //BA.debugLineNum = 1132;BA.debugLine="For q = 0 To pf.Size - 1"; +{ +final int step21 = 1; +final int limit21 = (int) (_pf.getSize()-1); +_q = (int) (0) ; +for (;_q <= limit21 ;_q = _q + step21 ) { + //BA.debugLineNum = 1133;BA.debugLine="Private q2 As String = pf.Get(q)"; +_q2 = BA.ObjectToString(_pf.Get(_q)); + //BA.debugLineNum = 1134;BA.debugLine="If thisLog Then Log(\"q=\"&q2)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551320","q="+_q2,0);}; + //BA.debugLineNum = 1136;BA.debugLine="fpf2 = pfp.Get(q) * i 'Multiplicamos las piezas"; +_fpf2 = (int) ((double)(BA.ObjectToNumber(_pfp.Get(_q)))*_i); + //BA.debugLineNum = 1137;BA.debugLine="pdp2 = invDispParaPromo.Get(q2)"; +_pdp2 = (int)(BA.ObjectToNumber(_invdispparapromo.Get((Object)(_q2)))); + //BA.debugLineNum = 1138;BA.debugLine="If thisLog Then Log($\"pf=${q2}, Actual=${(i)},"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551324",("pf="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_q2))+", Actual="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)((_i)))+", max promos: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pdp2))+"-"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fpf2))+"="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pdp2-_fpf2))+""),0);}; + //BA.debugLineNum = 1139;BA.debugLine="If pdp2 - fpf2 < 0 Then 'Si el inventario es ne"; +if (_pdp2-_fpf2<0) { + //BA.debugLineNum = 1140;BA.debugLine="salir=True"; +_salir = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 1141;BA.debugLine="Exit"; +if (true) break; + }; + } +}; + //BA.debugLineNum = 1144;BA.debugLine="If salir Then Exit"; +if (_salir) { +if (true) break;}; + //BA.debugLineNum = 1145;BA.debugLine="maxPromosFijosXinv = i"; +_maxpromosfijosxinv = _i; + } +}; + //BA.debugLineNum = 1147;BA.debugLine="If thisLog Then LogColor(\"InvFijo requerido x pro"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310551333","InvFijo requerido x promo="+BA.ObjectToString(_invfijoxpromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 1148;BA.debugLine="LogColor(\"Maximo de promociones de prodsFijos POR"; +anywheresoftware.b4a.keywords.Common.LogImpl("310551334","Maximo de promociones de prodsFijos POR inventario = "+BA.NumberToString(_maxpromosfijosxinv),anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 1149;BA.debugLine="Return maxPromosFijosXinv"; +if (true) return _maxpromosfijosxinv; + //BA.debugLineNum = 1150;BA.debugLine="End Sub"; +return 0; +} +public static int _revisamaxpromosprodsvariablesporinventario(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _pm) throws Exception{ +boolean _thislog = false; +anywheresoftware.b4a.objects.collections.Map _invfijoxpromo = null; +int _totalprodsvariablesdisponibles = 0; +int _totalprodsvariables2disponibles = 0; +anywheresoftware.b4a.objects.collections.Map _invdispparapromo = null; +String _maxpromos = ""; +int _maxpromosxfijos = 0; +anywheresoftware.b4a.objects.collections.List _idprodsvariables = null; +anywheresoftware.b4a.objects.collections.List _idprodsvariables2 = null; +int _prodsvariablesrequeridos = 0; +int _prodsvariables2requeridos = 0; +anywheresoftware.b4a.objects.collections.List _prodsfijospiezas = null; +anywheresoftware.b4a.objects.collections.List _idprodsfijos = null; +int _p = 0; +String _idesteprod = ""; +int _investeprod = 0; +int _pzasreqesteprod = 0; +int _maxpromosxvariables = 0; +int _maxpromosxvariables2 = 0; +int _x = 0; +int _i = 0; + //BA.debugLineNum = 2103;BA.debugLine="Sub revisaMaxPromosProdsVariablesPorInventario(pm"; + //BA.debugLineNum = 2104;BA.debugLine="Private thisLog As Boolean = False"; +_thislog = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 2105;BA.debugLine="If thisLog Then Log(\"============================"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976130","======================================================",0);}; + //BA.debugLineNum = 2106;BA.debugLine="If thisLog Then Log(\"============================"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976131","======================================================",0);}; + //BA.debugLineNum = 2107;BA.debugLine="Private invFijoXpromo As Map"; +_invfijoxpromo = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 2108;BA.debugLine="invFijoXpromo.Initialize"; +_invfijoxpromo.Initialize(); + //BA.debugLineNum = 2109;BA.debugLine="Private totalProdsVariablesDisponibles As Int = 0"; +_totalprodsvariablesdisponibles = (int) (0); + //BA.debugLineNum = 2110;BA.debugLine="Private totalProdsVariables2Disponibles As Int ="; +_totalprodsvariables2disponibles = (int) (0); + //BA.debugLineNum = 2111;BA.debugLine="If thisLog Then LogColor($\"pm=${pm}\"$, Colors.Blu"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976136",("pm="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pm.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2112;BA.debugLine="Private invDispParaPromo As Map = traemosInventar"; +_invdispparapromo = new anywheresoftware.b4a.objects.collections.Map(); +_invdispparapromo = _traemosinventariodisponibleparapromo(_ba,BA.ObjectToString(_pm.Get((Object)("id")))); + //BA.debugLineNum = 2113;BA.debugLine="If thisLog Then Log($\"invDispParaPromo=${invDispP"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976138",("invDispParaPromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invdispparapromo.getObject()))+""),0);}; + //BA.debugLineNum = 2114;BA.debugLine="Private maxPromos As String = traeMaxPromos(pm)"; +_maxpromos = BA.NumberToString(_traemaxpromos(_ba,_pm)); + //BA.debugLineNum = 2115;BA.debugLine="Private maxPromosXFijos As Int = revisaMaxPromosP"; +_maxpromosxfijos = _revisamaxpromosprodsfijosporinventario(_ba,_pm); + //BA.debugLineNum = 2116;BA.debugLine="Private idProdsVariables As List = pm.Get(\"prodsV"; +_idprodsvariables = new anywheresoftware.b4a.objects.collections.List(); +_idprodsvariables = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsVariables")))); + //BA.debugLineNum = 2117;BA.debugLine="Private idProdsVariables2 As List = pm.Get(\"prods"; +_idprodsvariables2 = new anywheresoftware.b4a.objects.collections.List(); +_idprodsvariables2 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsVariables2")))); + //BA.debugLineNum = 2118;BA.debugLine="Private prodsVariablesRequeridos As Int = pm.Get("; +_prodsvariablesrequeridos = (int)(BA.ObjectToNumber(_pm.Get((Object)("prodsVariablesRequeridos")))); + //BA.debugLineNum = 2119;BA.debugLine="Private prodsVariables2Requeridos As Int = pm.Get"; +_prodsvariables2requeridos = (int)(BA.ObjectToNumber(_pm.Get((Object)("prodsVariables2Requeridos")))); + //BA.debugLineNum = 2120;BA.debugLine="Private prodsFijosPiezas As List = pm.Get(\"prodsF"; +_prodsfijospiezas = new anywheresoftware.b4a.objects.collections.List(); +_prodsfijospiezas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijosPiezas")))); + //BA.debugLineNum = 2121;BA.debugLine="Private idProdsFijos As List = pm.Get(\"prodsFijos"; +_idprodsfijos = new anywheresoftware.b4a.objects.collections.List(); +_idprodsfijos = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_pm.Get((Object)("prodsFijos")))); + //BA.debugLineNum = 2122;BA.debugLine="For p = 0 To idProdsFijos.Size -1 'Generamos mapa"; +{ +final int step19 = 1; +final int limit19 = (int) (_idprodsfijos.getSize()-1); +_p = (int) (0) ; +for (;_p <= limit19 ;_p = _p + step19 ) { + //BA.debugLineNum = 2123;BA.debugLine="invFijoXpromo.Put(idProdsFijos.Get(p), prodsFijo"; +_invfijoxpromo.Put(_idprodsfijos.Get(_p),_prodsfijospiezas.Get(_p)); + //BA.debugLineNum = 2124;BA.debugLine="Private idEsteProd As String = idProdsFijos.Get("; +_idesteprod = BA.ObjectToString(_idprodsfijos.Get(_p)); + //BA.debugLineNum = 2125;BA.debugLine="Private invEsteProd As Int = invDispParaPromo.Ge"; +_investeprod = (int)(BA.ObjectToNumber(_invdispparapromo.Get((Object)(_idesteprod)))); + //BA.debugLineNum = 2126;BA.debugLine="Private pzasReqEsteProd As Int = prodsFijosPieza"; +_pzasreqesteprod = (int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_p))); + //BA.debugLineNum = 2127;BA.debugLine="If thisLog Then Log($\"id=${idEsteProd}, inv=${in"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976152",("id="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idesteprod))+", inv="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_investeprod))+", pzas="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pzasreqesteprod))+""),0);}; + } +}; + //BA.debugLineNum = 2130;BA.debugLine="If thisLog Then LogColor($\"MaxPromos=${maxPromos}"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976155",("MaxPromos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromos))+", promosXFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_maxpromosxfijos))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2131;BA.debugLine="If thisLog Then LogColor($\"prodsFijos=${idProdsFi"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976156",("prodsFijos="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsfijos.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2132;BA.debugLine="If thisLog Then LogColor($\"prodsFijosPiezasReq=${"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976157",("prodsFijosPiezasReq="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsfijospiezas.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2133;BA.debugLine="If thisLog Then LogColor($\"prodsVariables=${idPro"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976158",("prodsVariables="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsvariables.getObject()))+""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.CRLF))+"Variables Req="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariablesrequeridos))+" "),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2134;BA.debugLine="If thisLog Then LogColor($\"prodsVariables2=${idPr"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976159",("prodsVariables2="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idprodsvariables2.getObject()))+""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.CRLF))+"Variables2 Req="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariables2requeridos))+" "),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2135;BA.debugLine="If thisLog Then LogColor($\"invFijoXpromo=${invFij"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976160",("invFijoXpromo="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_invfijoxpromo.getObject()))+""),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2136;BA.debugLine="If thisLog Then Log($\"Prods variables disponibles"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976161",("Prods variables disponibles = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariablesdisponibles))+""),0);}; + //BA.debugLineNum = 2137;BA.debugLine="If thisLog Then Log($\"Prods variables2 disponible"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976162",("Prods variables2 disponibles = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariables2disponibles))+""),0);}; + //BA.debugLineNum = 2138;BA.debugLine="Private maxPromosXVariables As Int = 0"; +_maxpromosxvariables = (int) (0); + //BA.debugLineNum = 2139;BA.debugLine="Private maxPromosXVariables2 As Int = 0"; +_maxpromosxvariables2 = (int) (0); + //BA.debugLineNum = 2140;BA.debugLine="For x = 1 To maxPromosXFijos"; +{ +final int step36 = 1; +final int limit36 = _maxpromosxfijos; +_x = (int) (1) ; +for (;_x <= limit36 ;_x = _x + step36 ) { + //BA.debugLineNum = 2141;BA.debugLine="If thisLog Then Log(\"==========================="; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976166","=====================================================",0);}; + //BA.debugLineNum = 2142;BA.debugLine="If thisLog Then Log(\"==========================="; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976167","=====================================================",0);}; + //BA.debugLineNum = 2143;BA.debugLine="For i = 0 To idProdsFijos.Size - 1"; +{ +final int step39 = 1; +final int limit39 = (int) (_idprodsfijos.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit39 ;_i = _i + step39 ) { + //BA.debugLineNum = 2144;BA.debugLine="If thisLog Then Log($\"FIJO - ${idProdsFijos.Get"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976169",("FIJO - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_idprodsfijos.Get(_i))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",_invdispparapromo.Get(_idprodsfijos.Get(_i)))+" - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(((int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_i))))*(_i+1)))+""),0);}; + //BA.debugLineNum = 2145;BA.debugLine="invDispParaPromo.Put(idProdsFijos.Get(i), invDi"; +_invdispparapromo.Put(_idprodsfijos.Get(_i),(Object)(((int)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsfijos.Get(_i)))))-((int)(BA.ObjectToNumber(_prodsfijospiezas.Get(_i))))*(_i+1))); + } +}; + //BA.debugLineNum = 2147;BA.debugLine="If thisLog Then LogColor(\"Inv disponible despues"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976172","Inv disponible despues de restar fijos = "+BA.ObjectToString(_invdispparapromo),anywheresoftware.b4a.keywords.Common.Colors.Blue);}; + //BA.debugLineNum = 2149;BA.debugLine="totalProdsVariablesDisponibles = 0"; +_totalprodsvariablesdisponibles = (int) (0); + //BA.debugLineNum = 2150;BA.debugLine="totalProdsVariables2Disponibles = 0"; +_totalprodsvariables2disponibles = (int) (0); + //BA.debugLineNum = 2151;BA.debugLine="For i = 0 To idProdsVariables.Size - 1 'Obtenemo"; +{ +final int step46 = 1; +final int limit46 = (int) (_idprodsvariables.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit46 ;_i = _i + step46 ) { + //BA.debugLineNum = 2152;BA.debugLine="If invDispParaPromo.ContainsKey(idProdsVariable"; +if (_invdispparapromo.ContainsKey(_idprodsvariables.Get(_i))) { + //BA.debugLineNum = 2153;BA.debugLine="totalProdsVariablesDisponibles = totalProdsVar"; +_totalprodsvariablesdisponibles = (int) (_totalprodsvariablesdisponibles+(double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsvariables.Get(_i))))); + }; + } +}; + //BA.debugLineNum = 2156;BA.debugLine="For i = 0 To idProdsVariables2.Size - 1 'Obtenem"; +{ +final int step51 = 1; +final int limit51 = (int) (_idprodsvariables2.getSize()-1); +_i = (int) (0) ; +for (;_i <= limit51 ;_i = _i + step51 ) { + //BA.debugLineNum = 2157;BA.debugLine="If invDispParaPromo.ContainsKey(idProdsVariable"; +if (_invdispparapromo.ContainsKey(_idprodsvariables2.Get(_i))) { + //BA.debugLineNum = 2158;BA.debugLine="totalProdsVariables2Disponibles = totalProdsVa"; +_totalprodsvariables2disponibles = (int) (_totalprodsvariables2disponibles+(double)(BA.ObjectToNumber(_invdispparapromo.Get(_idprodsvariables2.Get(_i))))); + }; + } +}; + //BA.debugLineNum = 2162;BA.debugLine="If thisLog Then Log($\"Var disponibles - var req"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976187",("Var disponibles - var requeridos : "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalprodsvariablesdisponibles))+" - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodsvariablesrequeridos*_x))+""),0);}; + //BA.debugLineNum = 2163;BA.debugLine="totalProdsVariablesDisponibles = totalProdsVaria"; +_totalprodsvariablesdisponibles = (int) (_totalprodsvariablesdisponibles-(_prodsvariablesrequeridos*_x)); + //BA.debugLineNum = 2164;BA.debugLine="totalProdsVariables2Disponibles = totalProdsVari"; +_totalprodsvariables2disponibles = (int) (_totalprodsvariables2disponibles-(_prodsvariables2requeridos*_x)); + //BA.debugLineNum = 2165;BA.debugLine="If thisLog Then Log(\"prodsVariables disponibles"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976190","prodsVariables disponibles despues de promo = "+BA.NumberToString(_totalprodsvariablesdisponibles),0);}; + //BA.debugLineNum = 2166;BA.debugLine="If thisLog Then Log(\"prodsVariables2 disponibles"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976191","prodsVariables2 disponibles despues de promo = "+BA.NumberToString(_totalprodsvariables2disponibles),0);}; + //BA.debugLineNum = 2167;BA.debugLine="If totalProdsVariablesDisponibles < 0 Then Exit"; +if (_totalprodsvariablesdisponibles<0) { +if (true) break;}; + //BA.debugLineNum = 2168;BA.debugLine="If totalProdsVariables2Disponibles < 0 Then Exit"; +if (_totalprodsvariables2disponibles<0) { +if (true) break;}; + //BA.debugLineNum = 2169;BA.debugLine="maxPromosXVariables = x"; +_maxpromosxvariables = _x; + } +}; + //BA.debugLineNum = 2172;BA.debugLine="If thisLog Then LogColor(\"Max promos de prodsVari"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("312976197","Max promos de prodsVariables POR inventario = "+BA.NumberToString(_maxpromosxvariables),anywheresoftware.b4a.keywords.Common.Colors.Red);}; + //BA.debugLineNum = 2173;BA.debugLine="Return maxPromosXVariables"; +if (true) return _maxpromosxvariables; + //BA.debugLineNum = 2174;BA.debugLine="End Sub"; +return 0; +} +public static boolean _revisapro2265(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r = null; +boolean _x = false; + //BA.debugLineNum = 1632;BA.debugLine="Sub revisaPRO2265(idCliente As String) As Boolean"; + //BA.debugLineNum = 1633;BA.debugLine="Private r As ResultSet = Starter.skmt.ExecQuery($"; +_r = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from HIST_PRO2265 where H_IDCLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"'")))); + //BA.debugLineNum = 1634;BA.debugLine="Private x As Boolean = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1635;BA.debugLine="Do While r.NextRow"; +while (_r.NextRow()) { + //BA.debugLineNum = 1636;BA.debugLine="x = True"; +_x = anywheresoftware.b4a.keywords.Common.True; + } +; + //BA.debugLineNum = 1638;BA.debugLine="Log($\">>>> revisaPRO2265 ${idCliente} = ${x}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311599878",(">>>> revisaPRO2265 "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+" = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_x))+""),0); + //BA.debugLineNum = 1639;BA.debugLine="Return x"; +if (true) return _x; + //BA.debugLineNum = 1640;BA.debugLine="End Sub"; +return false; +} +public static boolean _revisapro3054(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r = null; +boolean _x = false; + //BA.debugLineNum = 1643;BA.debugLine="Sub revisaPRO3054(idCliente As String) As Boolean"; + //BA.debugLineNum = 1644;BA.debugLine="Private r As ResultSet = Starter.skmt.ExecQuery($"; +_r = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from HIST_PRO3054 where H_IDCLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"'")))); + //BA.debugLineNum = 1645;BA.debugLine="Private x As Boolean = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1646;BA.debugLine="Do While r.NextRow"; +while (_r.NextRow()) { + //BA.debugLineNum = 1647;BA.debugLine="x = True"; +_x = anywheresoftware.b4a.keywords.Common.True; + } +; + //BA.debugLineNum = 1649;BA.debugLine="Log($\">>>> revisaPRO3054 ${idCliente} = ${x}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311665414",(">>>> revisaPRO3054 "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+" = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_x))+""),0); + //BA.debugLineNum = 1650;BA.debugLine="Return x"; +if (true) return _x; + //BA.debugLineNum = 1651;BA.debugLine="End Sub"; +return false; +} +public static boolean _revisapro3055(anywheresoftware.b4a.BA _ba,String _idcliente) throws Exception{ +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r = null; +boolean _x = false; + //BA.debugLineNum = 1654;BA.debugLine="Sub revisaPRO3055(idCliente As String) As Boolean"; + //BA.debugLineNum = 1655;BA.debugLine="Private r As ResultSet = Starter.skmt.ExecQuery($"; +_r = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from HIST_PRO3055 where H_IDCLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"'")))); + //BA.debugLineNum = 1656;BA.debugLine="Private x As Boolean = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1657;BA.debugLine="Do While r.NextRow"; +while (_r.NextRow()) { + //BA.debugLineNum = 1658;BA.debugLine="x = True"; +_x = anywheresoftware.b4a.keywords.Common.True; + } +; + //BA.debugLineNum = 1660;BA.debugLine="Log($\">>>> revisaPRO3055 ${idCliente} = ${x}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311730950",(">>>> revisaPRO3055 "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+" = "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_x))+""),0); + //BA.debugLineNum = 1661;BA.debugLine="Return x"; +if (true) return _x; + //BA.debugLineNum = 1662;BA.debugLine="End Sub"; +return false; +} +public static boolean _revisaprodfueradepromo(anywheresoftware.b4a.BA _ba,String _prodid) throws Exception{ +boolean _fueradepromo = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _p = null; + //BA.debugLineNum = 1863;BA.debugLine="Sub revisaProdFueraDePromo(prodId As String) As Bo"; + //BA.debugLineNum = 1864;BA.debugLine="Private fueraDePromo As Boolean = False"; +_fueradepromo = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1865;BA.debugLine="Private p As Cursor = Starter.skmt.ExecQuery($\"se"; +_p = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_p = (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 PE_CEDIS from PEDIDO where PE_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and PE_CEDIS in (select id_almacen from CAT_ALMACEN) and PE_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._cliente /*gunav2.keymon.com.mx.c_cliente*/ ._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"'")))); + //BA.debugLineNum = 1866;BA.debugLine="Log(\"rowcount: \" & p.RowCount)"; +anywheresoftware.b4a.keywords.Common.LogImpl("312255235","rowcount: "+BA.NumberToString(_p.getRowCount()),0); + //BA.debugLineNum = 1867;BA.debugLine="If p.RowCount > 0 Then"; +if (_p.getRowCount()>0) { + //BA.debugLineNum = 1868;BA.debugLine="p.Position = 0"; +_p.setPosition((int) (0)); + //BA.debugLineNum = 1869;BA.debugLine="Log($\"|${p.GetString(\"PE_CEDIS\")}|${prodId}|\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("312255238",("|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_p.GetString("PE_CEDIS")))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"|"),0); + //BA.debugLineNum = 1870;BA.debugLine="fueraDePromo = True"; +_fueradepromo = anywheresoftware.b4a.keywords.Common.True; + }; + //BA.debugLineNum = 1872;BA.debugLine="Return fueraDePromo"; +if (true) return _fueradepromo; + //BA.debugLineNum = 1873;BA.debugLine="End Sub"; +return false; +} +public static String _revisapromoprocterpro3009(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _prodsmap1) throws Exception{ +anywheresoftware.b4a.objects.collections.List _almacenes = null; +String _idregalo = ""; +anywheresoftware.b4a.objects.collections.Map _newprodsmap = null; +String _monto = ""; +int _invregalo = 0; +int _totalregalos = 0; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r = null; +anywheresoftware.b4a.objects.collections.Map _m1 = null; +anywheresoftware.b4a.objects.collections.Map _m2 = null; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r2 = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pe = null; + //BA.debugLineNum = 1527;BA.debugLine="Sub revisaPromoProcterPRO3009(prodsMap1 As Map)"; + //BA.debugLineNum = 1528;BA.debugLine="Log(\"entramos a promo Procter\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468801","entramos a promo Procter",0); + //BA.debugLineNum = 1529;BA.debugLine="Dim almacenes As List"; +_almacenes = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 1530;BA.debugLine="almacenes.Initialize2(Array As String(\"3\", \"17\","; +_almacenes.Initialize2(anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"3","17","37","31","68","71","33","80"})); + //BA.debugLineNum = 1531;BA.debugLine="Log(\"Posicion de almacen: \" & almacenes.IndexOf(t"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468804","Posicion de almacen: "+BA.NumberToString(_almacenes.IndexOf((Object)(_traealmacen(_ba)))),0); + //BA.debugLineNum = 1533;BA.debugLine="If almacenes.IndexOf(traeAlmacen) >= 0 Then ' Si"; +if (_almacenes.IndexOf((Object)(_traealmacen(_ba)))>=0) { + //BA.debugLineNum = 1534;BA.debugLine="Private idRegalo As String = \"PYG1016\""; +_idregalo = "PYG1016"; + //BA.debugLineNum = 1535;BA.debugLine="Private newProdsMap As Map = prodsMap1"; +_newprodsmap = new anywheresoftware.b4a.objects.collections.Map(); +_newprodsmap = _prodsmap1; + //BA.debugLineNum = 1536;BA.debugLine="Private monto As String = 0"; +_monto = BA.NumberToString(0); + //BA.debugLineNum = 1537;BA.debugLine="Private invRegalo As Int = 0"; +_invregalo = (int) (0); + //BA.debugLineNum = 1538;BA.debugLine="Private totalRegalos As Int = 0"; +_totalregalos = (int) (0); + //BA.debugLineNum = 1539;BA.debugLine="Private r As ResultSet = Starter.skmt.ExecQuery("; +_r = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select ifnull(cat_gp_almacen, 0) as CAT_GP_ALMACEN from "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" where cat_gp_id = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idregalo))+"'")))); + //BA.debugLineNum = 1540;BA.debugLine="Do While r.NextRow"; +while (_r.NextRow()) { + //BA.debugLineNum = 1541;BA.debugLine="Log(r.GetString(\"CAT_GP_ALMACEN\"))"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468814",_r.GetString("CAT_GP_ALMACEN"),0); + //BA.debugLineNum = 1542;BA.debugLine="If r.GetString(\"CAT_GP_ALMACEN\") > 0 Then invRe"; +if ((double)(Double.parseDouble(_r.GetString("CAT_GP_ALMACEN")))>0) { +_invregalo = (int)(Double.parseDouble(_r.GetString("CAT_GP_ALMACEN")));}; + } +; + //BA.debugLineNum = 1544;BA.debugLine="Log(\"INV REGALO: \" & invRegalo)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468817","INV REGALO: "+BA.NumberToString(_invregalo),0); + //BA.debugLineNum = 1545;BA.debugLine="r = Starter.skmt.ExecQuery($\"select pe_proid fro"; +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select pe_proid from pedido where pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idregalo))+"' and pe_cedis = 'PRO3009' and pe_cant = 1 and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"' ")))); + //BA.debugLineNum = 1546;BA.debugLine="If r.RowCount > 0 Then totalRegalos = r.RowCount"; +if (_r.getRowCount()>0) { +_totalregalos = _r.getRowCount();}; + //BA.debugLineNum = 1547;BA.debugLine="Log($\"TOTAL REGALOS: ${totalRegalos}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468820",("TOTAL REGALOS: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_totalregalos))+""),0); + //BA.debugLineNum = 1548;BA.debugLine="If prodsMap1.ContainsKey(\"PYG1014\") Then ' Calcu"; +if (_prodsmap1.ContainsKey((Object)("PYG1014"))) { + //BA.debugLineNum = 1549;BA.debugLine="Private m1 As Map = prodsMap1.Get(\"PYG1014\")"; +_m1 = new anywheresoftware.b4a.objects.collections.Map(); +_m1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap1.Get((Object)("PYG1014")))); + //BA.debugLineNum = 1550;BA.debugLine="monto = monto + m1.Get(\"cant\") * m1.Get(\"precio"; +_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(BA.ObjectToNumber(_m1.Get((Object)("cant"))))*(double)(BA.ObjectToNumber(_m1.Get((Object)("precio"))))); + }; + //BA.debugLineNum = 1552;BA.debugLine="If prodsMap1.ContainsKey(\"PYG1025\") Then ' Calc"; +if (_prodsmap1.ContainsKey((Object)("PYG1025"))) { + //BA.debugLineNum = 1553;BA.debugLine="Private m2 As Map = prodsMap1.Get(\"PYG1025\")"; +_m2 = new anywheresoftware.b4a.objects.collections.Map(); +_m2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap1.Get((Object)("PYG1025")))); + //BA.debugLineNum = 1554;BA.debugLine="monto = monto + m2.Get(\"cant\") * m2.Get(\"precio"; +_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(BA.ObjectToNumber(_m2.Get((Object)("cant"))))*(double)(BA.ObjectToNumber(_m2.Get((Object)("precio"))))); + }; + //BA.debugLineNum = 1556;BA.debugLine="Private r2 As ResultSet = Starter.skmt.ExecQuery"; +_r2 = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r2 = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select ifnull(sum(pe_costo_tot),0) as monto from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"' and PE_PROID in (\"PYG1014\", \"PYG1025\")")))); + //BA.debugLineNum = 1557;BA.debugLine="Do While r2.NextRow"; +while (_r2.NextRow()) { + //BA.debugLineNum = 1558;BA.debugLine="monto = monto + r2.GetString(\"monto\")"; +_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_r2.GetString("monto")))); + } +; + //BA.debugLineNum = 1560;BA.debugLine="Log($\"Monto: ${monto}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468833",("Monto: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_monto))+""),0); + //BA.debugLineNum = 1562;BA.debugLine="Log(\"prodsMap.Size: \" & prodsMap1.Size)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468835","prodsMap.Size: "+BA.NumberToString(_prodsmap1.getSize()),0); + //BA.debugLineNum = 1563;BA.debugLine="If prodsMap1.Size > 0 Then"; +if (_prodsmap1.getSize()>0) { + //BA.debugLineNum = 1564;BA.debugLine="If monto > 149 Then"; +if ((double)(Double.parseDouble(_monto))>149) { + //BA.debugLineNum = 1565;BA.debugLine="Log(\"Mas de 149\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468838","Mas de 149",0); + //BA.debugLineNum = 1566;BA.debugLine="If invRegalo > 0 Then"; +if (_invregalo>0) { + //BA.debugLineNum = 1567;BA.debugLine="Log(\"Hay inventario para regalo\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468840","Hay inventario para regalo",0); + //BA.debugLineNum = 1568;BA.debugLine="If totalRegalos = 0 Then"; +if (_totalregalos==0) { + //BA.debugLineNum = 1569;BA.debugLine="guardaProducto(\"PRO3009\", 1, 1, traeProdNomb"; +_guardaproducto(_ba,"PRO3009",BA.NumberToString(1),BA.NumberToString(1),_traeprodnombre(_ba,_idregalo),_idregalo,_traecliente(_ba),_traefecha(_ba),_traeusuariodebd(_ba),_traeruta(_ba),BA.NumberToString(0),mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ); + //BA.debugLineNum = 1571;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 1572;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 1573;BA.debugLine="Msgbox(cs.Color(Colors.red).append(\"PRO3009:"; +anywheresoftware.b4a.keywords.Common.Msgbox(BA.ObjectToCharSequence(_cs.Color(anywheresoftware.b4a.keywords.Common.Colors.Red).Append(BA.ObjectToCharSequence("PRO3009:")).Pop().Append(BA.ObjectToCharSequence(" En la compra de $150 de la linea Oral B Procter & Gamble se agrega 1 Salvo Multiusuos 500 ml.")).Color(anywheresoftware.b4a.keywords.Common.Colors.Red).Append(BA.ObjectToCharSequence(" con precio de $1.00")).PopAll().getObject()),BA.ObjectToCharSequence("Producto de regalo agregado"),_ba); + }; + }else { + //BA.debugLineNum = 1576;BA.debugLine="LogColor(\"NO hay inventario para regalo PRO30"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468849","NO hay inventario para regalo PRO3009 Procter & Gamble.",anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + }else { + //BA.debugLineNum = 1579;BA.debugLine="Log(\"Menos de 149\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468852","Menos de 149",0); + //BA.debugLineNum = 1580;BA.debugLine="If totalRegalos > 0 Then"; +if (_totalregalos>0) { + //BA.debugLineNum = 1581;BA.debugLine="Log(\"Quitamos regalo\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468854","Quitamos regalo",0); + //BA.debugLineNum = 1582;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedid"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis = 'PRO3009' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idregalo))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"' and pe_cant = 1 ")); + //BA.debugLineNum = 1583;BA.debugLine="Log($\"Borramos pe_cedis='PRO3009' and pe_proi"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468856",("Borramos pe_cedis='PRO3009' and pe_proid='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idregalo))+"' and pe_cliente='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'"),0); + //BA.debugLineNum = 1584;BA.debugLine="Private pe As Cursor = Starter.skmt.ExecQuery"; +_pe = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pe = (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(pe_cliente) as cuantosPedidos from pedido where pe_cliente In (select cuenta from cuentaa)"))); + //BA.debugLineNum = 1585;BA.debugLine="pe.Position=0"; +_pe.setPosition((int) (0)); + //BA.debugLineNum = 1586;BA.debugLine="If pe.GetString(\"cuantosPedidos\") = 0 Then"; +if ((_pe.GetString("cuantosPedidos")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1587;BA.debugLine="Log(\"###### delete from pedido_cliente -"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468860","###### delete from pedido_cliente - "+_traecliente(_ba)+"|"+_traecliente(_ba),0); + //BA.debugLineNum = 1588;BA.debugLine="Log($\"delete from pedido_cliente where PC_CL"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468861",("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'"),0); + //BA.debugLineNum = 1589;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedi"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido_cliente where PC_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"'")); + }; + //BA.debugLineNum = 1591;BA.debugLine="ToastMessageShow(\"Quitamos regalo PRO3009\", F"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Quitamos regalo PRO3009"),anywheresoftware.b4a.keywords.Common.False); + }; + }; + }; + }else { + //BA.debugLineNum = 1596;BA.debugLine="LogColor(\"El almacen actual NO esta en la lista"; +anywheresoftware.b4a.keywords.Common.LogImpl("311468869","El almacen actual NO esta en la lista para la promo de Procter & Gamble.",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + }; + //BA.debugLineNum = 1599;BA.debugLine="End Sub"; +return ""; +} +public static String _revisauug(anywheresoftware.b4a.BA _ba) throws Exception{ +int _daa = 0; + //BA.debugLineNum = 347;BA.debugLine="Sub revisaUUG 'ignore"; + //BA.debugLineNum = 348;BA.debugLine="Try"; +try { //BA.debugLineNum = 350;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialize"; +if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { + //BA.debugLineNum = 351;BA.debugLine="Dim daa As Int = Tracker.UUGCoords.DistanceTo(T"; +_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 = 352;BA.debugLine="If Starter.Logger Then LogColor($\"**** UUC \"${f"; +if (mostCurrent._starter._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("38060933",("**** 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 = 353;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocatio"; +if (_daa>40 && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()<35) { + //BA.debugLineNum = 354;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 = 355;BA.debugLine="If Starter.Logger Then Log(\"++++ Distancia a a"; +if (mostCurrent._starter._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("38060936","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);}; + }; + //BA.debugLineNum = 357;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoc"; +mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ = mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation(); + }; + } + catch (Exception e12) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e12); //BA.debugLineNum = 360;BA.debugLine="LogColor(\"If Tracker.FLP.GetLastKnownLocation.Is"; +anywheresoftware.b4a.keywords.Common.LogImpl("38060941","If Tracker.FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 362;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 = 42;BA.debugLine="Sub SetDivider(lv As ListView, Color As Int, Heigh"; + //BA.debugLineNum = 43;BA.debugLine="Dim r As Reflector"; +_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); + //BA.debugLineNum = 44;BA.debugLine="r.Target = lv"; +_r.Target = (Object)(_lv.getObject()); + //BA.debugLineNum = 45;BA.debugLine="Dim CD As ColorDrawable"; +_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); + //BA.debugLineNum = 46;BA.debugLine="CD.Initialize(Color, 0)"; +_cd.Initialize(_color,(int) (0)); + //BA.debugLineNum = 47;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 = 48;BA.debugLine="r.RunMethod2(\"setDividerHeight\", Height, \"java.la"; +_r.RunMethod2("setDividerHeight",BA.NumberToString(_height),"java.lang.int"); + //BA.debugLineNum = 49;BA.debugLine="End Sub"; +return ""; +} +public static String _totalpedido(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _ct = null; +String _ptotal = ""; +String _tempt = ""; + //BA.debugLineNum = 755;BA.debugLine="Sub totalPedido As String"; + //BA.debugLineNum = 756;BA.debugLine="Private cT As Cursor = Starter.skmt.ExecQuery($\"s"; +_ct = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ct = (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(PE_COSTO_TOT) as total from PEDIDO where PE_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traecliente(_ba)))+"' AND PE_CEDIS <> 'DUR'")))); + //BA.debugLineNum = 757;BA.debugLine="Private pTotal As String = \"0\""; +_ptotal = "0"; + //BA.debugLineNum = 758;BA.debugLine="If cT.RowCount > 0 Then"; +if (_ct.getRowCount()>0) { + //BA.debugLineNum = 759;BA.debugLine="cT.Position = 0"; +_ct.setPosition((int) (0)); + //BA.debugLineNum = 761;BA.debugLine="Private tempT As String = cT.GetLong(\"total\")"; +_tempt = BA.NumberToString(_ct.GetLong("total")); + //BA.debugLineNum = 762;BA.debugLine="If tempT <> \"null\" And tempT <> Null Then"; +if ((_tempt).equals("null") == false && _tempt!= null) { + //BA.debugLineNum = 764;BA.debugLine="pTotal = tempT"; +_ptotal = _tempt; + }; + }; + //BA.debugLineNum = 768;BA.debugLine="cT.Close"; +_ct.Close(); + //BA.debugLineNum = 769;BA.debugLine="Return pTotal"; +if (true) return _ptotal; + //BA.debugLineNum = 770;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 = 643;BA.debugLine="Sub traeAlmacen As String 'ignore"; + //BA.debugLineNum = 644;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 645;BA.debugLine="Private a As String = \"NA\""; +_a = "NA"; + //BA.debugLineNum = 646;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select ID_AL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 647;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 648;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 649;BA.debugLine="a = C.GetString(\"ID_ALMACEN\")"; +_a = _c.GetString("ID_ALMACEN"); + }; + //BA.debugLineNum = 651;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 652;BA.debugLine="Return a"; +if (true) return _a; + //BA.debugLineNum = 653;BA.debugLine="End Sub"; +return ""; +} +public static String _traecliente(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _cl = ""; + //BA.debugLineNum = 819;BA.debugLine="Sub traeCliente As String 'ignore"; + //BA.debugLineNum = 820;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 821;BA.debugLine="Private cl As String"; +_cl = ""; + //BA.debugLineNum = 822;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CUENTA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); + //BA.debugLineNum = 823;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 824;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 825;BA.debugLine="cl = c.GetString(\"CUENTA\")"; +_cl = _c.GetString("CUENTA"); + }; + //BA.debugLineNum = 827;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 829;BA.debugLine="Return cl"; +if (true) return _cl; + //BA.debugLineNum = 830;BA.debugLine="End Sub"; +return ""; +} +public static String _traefecha(anywheresoftware.b4a.BA _ba) throws Exception{ +String _sdate = ""; +String _stime = ""; + //BA.debugLineNum = 832;BA.debugLine="Sub traeFecha As String 'ignore"; + //BA.debugLineNum = 833;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 834;BA.debugLine="Private sDate As String =DateTime.Date(DateTime.N"; +_sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 835;BA.debugLine="Private sTime As String =DateTime.Time(DateTime.N"; +_stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 836;BA.debugLine="Return sDate & sTime"; +if (true) return _sdate+_stime; + //BA.debugLineNum = 837;BA.debugLine="End Sub"; +return ""; +} +public static String _traeinventario(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _inventario = ""; + //BA.debugLineNum = 1980;BA.debugLine="Sub traeinventario(id As String) As String"; + //BA.debugLineNum = 1981;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1982;BA.debugLine="Dim inventario As String = \"0\""; +_inventario = "0"; + //BA.debugLineNum = 1983;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select CAT_G"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ALMACEN from "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ )))+" where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 1985;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1986;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1987;BA.debugLine="inventario = c.GetString(\"CAT_GP_ALMACEN\")"; +_inventario = _c.GetString("CAT_GP_ALMACEN"); + }; + //BA.debugLineNum = 1989;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1990;BA.debugLine="Return inventario"; +if (true) return _inventario; + //BA.debugLineNum = 1991;BA.debugLine="End Sub"; +return ""; +} +public static int _traemaxpromos(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _pm) throws Exception{ +boolean _thislog = false; +anywheresoftware.b4a.objects.collections.List _maxpromos = null; +int _vendidas = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 1029;BA.debugLine="Sub traeMaxPromos(pm As Map) As Int"; + //BA.debugLineNum = 1030;BA.debugLine="Private thisLog As Boolean = True 'Si es verdader"; +_thislog = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 1031;BA.debugLine="Private maxPromos As List"; +_maxpromos = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 1032;BA.debugLine="Private vendidas As Int = 0"; +_vendidas = (int) (0); + //BA.debugLineNum = 1033;BA.debugLine="maxPromos.Initialize"; +_maxpromos.Initialize(); + //BA.debugLineNum = 1035;BA.debugLine="If thisLog Then Log(pm)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310354694",BA.ObjectToString(_pm),0);}; + //BA.debugLineNum = 1036;BA.debugLine="If pm.Get(\"historico\") = \"1\" Then maxPromos.Add(p"; +if ((_pm.Get((Object)("historico"))).equals((Object)("1"))) { +_maxpromos.Add(_pm.Get((Object)("maxRecurrente")));}; + //BA.debugLineNum = 1037;BA.debugLine="maxPromos.Add(pm.Get(\"maxPromos\")) 'Agregamos max"; +_maxpromos.Add(_pm.Get((Object)("maxPromos"))); + //BA.debugLineNum = 1038;BA.debugLine="maxPromos.Add(pm.Get(\"maxXcliente\")) 'Agregamos m"; +_maxpromos.Add(_pm.Get((Object)("maxXcliente"))); + //BA.debugLineNum = 1039;BA.debugLine="If thisLog Then Log(maxPromos)"; +if (_thislog) { +anywheresoftware.b4a.keywords.Common.LogImpl("310354698",BA.ObjectToString(_maxpromos),0);}; + //BA.debugLineNum = 1040;BA.debugLine="maxPromos.Sort(True)"; +_maxpromos.Sort(anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 1042;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR"; +if ((mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 1043;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select sum(PE_CANT) as vendidas from PEDIDO where PE_PROID = ? and PE_CLIENTE = ? AND PE_FUTURO = '1' ",new String[]{(BA.ObjectToString(_pm.Get((Object)("id")))).trim(),_traecliente(_ba).trim()}))); + }else { + //BA.debugLineNum = 1045;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exe"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select sum(PE_CANT) as vendidas from PEDIDO where PE_PROID = ? and PE_CLIENTE = ? AND PE_FUTURO = '0' ",new String[]{(BA.ObjectToString(_pm.Get((Object)("id")))).trim(),_traecliente(_ba).trim()}))); + }; + //BA.debugLineNum = 1047;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1048;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1049;BA.debugLine="vendidas = c.GetInt(\"vendidas\")"; +_vendidas = _c.GetInt("vendidas"); + }; + //BA.debugLineNum = 1055;BA.debugLine="Return maxPromos.Get(0) - vendidas 'Regresamos el"; +if (true) return (int) ((double)(BA.ObjectToNumber(_maxpromos.Get((int) (0))))-_vendidas); + //BA.debugLineNum = 1056;BA.debugLine="End Sub"; +return 0; +} +public static boolean _traemontoprod(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _x = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; + //BA.debugLineNum = 1321;BA.debugLine="Sub TraeMontoProd As Boolean"; + //BA.debugLineNum = 1322;BA.debugLine="Private x As Boolean = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1323;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull( SUM (PE_COSTO_TOT),0) As suma FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1324;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1325;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1326;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt.Ex"; +_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)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT DISTINCT CAT_PE_MONTO FROM CAT_PROMO_ESP"))); + //BA.debugLineNum = 1327;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 1328;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 1329;BA.debugLine="If c.GetString(\"suma\") >= c2.GetString(\"CAT_PE"; +if ((double)(Double.parseDouble(_c.GetString("suma")))>=(double)(Double.parseDouble(_c2.GetString("CAT_PE_MONTO")))) { + //BA.debugLineNum = 1330;BA.debugLine="x = True"; +_x = anywheresoftware.b4a.keywords.Common.True; + }else { + //BA.debugLineNum = 1333;BA.debugLine="x = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + }; + }; + }; + //BA.debugLineNum = 1338;BA.debugLine="Return x"; +if (true) return _x; + //BA.debugLineNum = 1339;BA.debugLine="End Sub"; +return false; +} +public static boolean _traemontoprod2(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _x = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; + //BA.debugLineNum = 1343;BA.debugLine="Sub TraeMontoProd2 As Boolean"; + //BA.debugLineNum = 1345;BA.debugLine="Private x As Boolean = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1347;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull( SUM (PE_COSTO_TOT),0) As suma FROM PEDIDO JOIN CAT_PROMO_ESP ON CAT_PE_ID = PE_PROID WHERE PE_CLIENTE IN (Select CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1349;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1351;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1353;BA.debugLine="Private c2 As Cursor = B4XPages.MainPage.skmt.Ex"; +_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)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT DISTINCT CAT_PE_MONTO FROM CAT_PROMO_ESP"))); + //BA.debugLineNum = 1355;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 1357;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 1359;BA.debugLine="If c.GetString(\"suma\") >= 350 And c.GetString(\""; +if ((double)(Double.parseDouble(_c.GetString("suma")))>=350 && (double)(Double.parseDouble(_c.GetString("suma")))<=499.99) { + //BA.debugLineNum = 1361;BA.debugLine="x = True"; +_x = anywheresoftware.b4a.keywords.Common.True; + }else { + //BA.debugLineNum = 1364;BA.debugLine="x = False"; +_x = anywheresoftware.b4a.keywords.Common.False; + }; + }; + }; + //BA.debugLineNum = 1370;BA.debugLine="Return x"; +if (true) return _x; + //BA.debugLineNum = 1372;BA.debugLine="End Sub"; +return false; +} +public static anywheresoftware.b4a.objects.collections.Map _traemosinventariodisponibleparapromo(anywheresoftware.b4a.BA _ba,String _promo) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.objects.collections.Map _prods = null; +int _i = 0; + //BA.debugLineNum = 952;BA.debugLine="Sub traemosInventarioDisponibleParaPromo(promo As"; + //BA.debugLineNum = 953;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 954;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2($\"SELECT CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("SELECT CAT_GP_ID, CAT_GP_ALMACEN FROM "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" WHERE CAT_GP_ID IN (select CAT_DP_IDPROD FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID = ?)"),new String[]{_promo}))); + //BA.debugLineNum = 957;BA.debugLine="Private prods As Map"; +_prods = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 958;BA.debugLine="prods.Initialize"; +_prods.Initialize(); + //BA.debugLineNum = 959;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 960;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 = 961;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 962;BA.debugLine="prods.Put(c.GetString(\"CAT_GP_ID\"), c.GetString"; +_prods.Put((Object)(_c.GetString("CAT_GP_ID")),(Object)(_c.GetString("CAT_GP_ALMACEN"))); + } +}; + }; + //BA.debugLineNum = 967;BA.debugLine="Return prods"; +if (true) return _prods; + //BA.debugLineNum = 968;BA.debugLine="End Sub"; +return null; +} +public static String _traenombrecliente(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _c = null; +String _n = ""; + //BA.debugLineNum = 1506;BA.debugLine="Sub traeNombreCliente(id As String) As String"; + //BA.debugLineNum = 1507;BA.debugLine="Private c As ResultSet = B4XPages.MainPage.skmt.E"; +_c = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_c = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_NOMBRE from kmt_info3 where CAT_CL_CODIGO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 1508;BA.debugLine="Private n As String = \"N/A\""; +_n = "N/A"; + //BA.debugLineNum = 1509;BA.debugLine="Do While c.NextRow"; +while (_c.NextRow()) { + //BA.debugLineNum = 1510;BA.debugLine="n = c.GetString(\"CAT_CL_NOMBRE\")"; +_n = _c.GetString("CAT_CL_NOMBRE"); + } +; + //BA.debugLineNum = 1512;BA.debugLine="Return n"; +if (true) return _n; + //BA.debugLineNum = 1513;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _traeprodiddebd(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 1259;BA.debugLine="Sub traeProdIdDeBD As Map 'ignore"; + //BA.debugLineNum = 1260;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1261;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1262;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select CAT_G"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_TIPO, CAT_GP_SUBTIPO from "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" where CAT_GP_NOMBRE In (Select PDESC from PROID)")))); + //BA.debugLineNum = 1263;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1264;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1265;BA.debugLine="m = CreateMap(\"id\":c.GetString(\"CAT_GP_ID\"), \"no"; +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("id"),(Object)(_c.GetString("CAT_GP_ID")),(Object)("nombre"),(Object)(_c.GetString("CAT_GP_NOMBRE")),(Object)("tipo"),(Object)(_c.GetString("CAT_GP_TIPO")),(Object)("subtipo"),(Object)(_c.GetString("CAT_GP_SUBTIPO"))}); + }else { + //BA.debugLineNum = 1267;BA.debugLine="m = CreateMap(\"id\":\"N/A\", \"nombre\":\"N/A\", \"tipo\""; +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("id"),(Object)("N/A"),(Object)("nombre"),(Object)("N/A"),(Object)("tipo"),(Object)("N/A"),(Object)("subtipo"),(Object)("N/A")}); + }; + //BA.debugLineNum = 1269;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1270;BA.debugLine="Return m"; +if (true) return _m; + //BA.debugLineNum = 1271;BA.debugLine="End Sub"; +return null; +} +public static String _traeprodnombre(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _h = null; +String _n = ""; + //BA.debugLineNum = 656;BA.debugLine="Sub traeProdNombre(id As String) As String"; + //BA.debugLineNum = 657;BA.debugLine="Private h As Cursor"; +_h = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 658;BA.debugLine="Private n As String"; +_n = ""; + //BA.debugLineNum = 659;BA.debugLine="h=B4XPages.MainPage.skmt.ExecQuery2($\"select CAT_"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE from "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" where CAT_GP_ID = ? "),new String[]{_id.trim()}))); + //BA.debugLineNum = 660;BA.debugLine="If h.RowCount > 0 Then"; +if (_h.getRowCount()>0) { + //BA.debugLineNum = 661;BA.debugLine="h.Position = 0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 662;BA.debugLine="n = h.GetString(\"CAT_GP_NOMBRE\")"; +_n = _h.GetString("CAT_GP_NOMBRE"); + }; + //BA.debugLineNum = 665;BA.debugLine="h.Close"; +_h.Close(); + //BA.debugLineNum = 666;BA.debugLine="If n = Null Or n=\"\" Then n = \"N/A\""; +if (_n== null || (_n).equals("")) { +_n = "N/A";}; + //BA.debugLineNum = 668;BA.debugLine="Return n"; +if (true) return _n; + //BA.debugLineNum = 669;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _traepromo(anywheresoftware.b4a.BA _ba,String _promo,String _cliente) throws Exception{ +String _iniciocontador = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _sihistorico = ""; +anywheresoftware.b4a.objects.collections.Map _promomap = null; +anywheresoftware.b4a.objects.collections.List _prodsfijos = null; +anywheresoftware.b4a.objects.collections.List _prodsfijosprecios = null; +anywheresoftware.b4a.objects.collections.List _prodsfijospiezas = null; +anywheresoftware.b4a.objects.collections.List _prodsvariables = null; +anywheresoftware.b4a.objects.collections.List _prodsvariables2 = null; +anywheresoftware.b4a.objects.collections.List _prodsvariablesprecios = null; +anywheresoftware.b4a.objects.collections.List _prodsvariablesprecios2 = null; +anywheresoftware.b4a.objects.collections.Map _prods = null; +anywheresoftware.b4a.objects.collections.Map _tipos = null; +int _i = 0; +String _pvr = ""; +String _pvr2 = ""; + //BA.debugLineNum = 2013;BA.debugLine="Sub traePromo(promo As String, cliente As String)"; + //BA.debugLineNum = 2014;BA.debugLine="Private inicioContador As String = DateTime.Now"; +_iniciocontador = BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 2015;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from promos_comp where cat_pa_id = '"+_promo+"'"))); + //BA.debugLineNum = 2016;BA.debugLine="Private siHistorico As String = 0"; +_sihistorico = BA.NumberToString(0); + //BA.debugLineNum = 2017;BA.debugLine="Private promoMap As Map"; +_promomap = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 2018;BA.debugLine="Private prodsFijos, prodsFijosPrecios, prodsFijos"; +_prodsfijos = new anywheresoftware.b4a.objects.collections.List(); +_prodsfijosprecios = new anywheresoftware.b4a.objects.collections.List(); +_prodsfijospiezas = new anywheresoftware.b4a.objects.collections.List(); +_prodsvariables = new anywheresoftware.b4a.objects.collections.List(); +_prodsvariables2 = new anywheresoftware.b4a.objects.collections.List(); +_prodsvariablesprecios = new anywheresoftware.b4a.objects.collections.List(); +_prodsvariablesprecios2 = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 2019;BA.debugLine="promoMap.Initialize"; +_promomap.Initialize(); + //BA.debugLineNum = 2020;BA.debugLine="prodsFijos.Initialize"; +_prodsfijos.Initialize(); + //BA.debugLineNum = 2021;BA.debugLine="prodsFijosPrecios.Initialize"; +_prodsfijosprecios.Initialize(); + //BA.debugLineNum = 2022;BA.debugLine="prodsFijosPiezas.Initialize"; +_prodsfijospiezas.Initialize(); + //BA.debugLineNum = 2023;BA.debugLine="prodsVariables.Initialize"; +_prodsvariables.Initialize(); + //BA.debugLineNum = 2024;BA.debugLine="prodsVariables2.Initialize"; +_prodsvariables2.Initialize(); + //BA.debugLineNum = 2025;BA.debugLine="prodsVariablesPrecios.Initialize"; +_prodsvariablesprecios.Initialize(); + //BA.debugLineNum = 2026;BA.debugLine="prodsVariablesPrecios2.Initialize"; +_prodsvariablesprecios2.Initialize(); + //BA.debugLineNum = 2027;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2028;BA.debugLine="If c.RowCount > 0 Then promoMap = CreateMap(\"id\":"; +if (_c.getRowCount()>0) { +_promomap = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("id"),(Object)(_promo),(Object)("maxXcliente"),(Object)(_c.GetString("CAT_PA_MAXPROMCLIE")),(Object)("maxRecurrente"),(Object)(_c.GetString("CAT_PA_MAXPROMREC")),(Object)("maxPromos"),(Object)(_c.GetString("CAT_PA_MAXPROM"))});}; + //BA.debugLineNum = 2029;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"Select coun"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as hist from HIST_PROMOS where HP_CLIENTE = '"+_cliente+"' and HP_CODIGO_PROMOCION = '"+_promo+"'"))); + //BA.debugLineNum = 2030;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2031;BA.debugLine="If c.GetString(\"hist\") > 0 Then siHistorico = 1"; +if ((double)(Double.parseDouble(_c.GetString("hist")))>0) { +_sihistorico = BA.NumberToString(1);}; + //BA.debugLineNum = 2032;BA.debugLine="promoMap.Put(\"historico\", siHistorico)"; +_promomap.Put((Object)("historico"),(Object)(_sihistorico)); + //BA.debugLineNum = 2033;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"Select * fr"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from CAT_DETALLES_PAQ where CAT_DP_ID = '"+_promo+"'"))); + //BA.debugLineNum = 2034;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2035;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2036;BA.debugLine="Private prods, tipos As Map"; +_prods = new anywheresoftware.b4a.objects.collections.Map(); +_tipos = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 2037;BA.debugLine="prods.Initialize"; +_prods.Initialize(); + //BA.debugLineNum = 2038;BA.debugLine="tipos.Initialize"; +_tipos.Initialize(); + //BA.debugLineNum = 2039;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step26 = 1; +final int limit26 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit26 ;_i = _i + step26 ) { + //BA.debugLineNum = 2040;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 2041;BA.debugLine="prods.Put(c.GetString(\"CAT_DP_IDPROD\"), CreateM"; +_prods.Put((Object)(_c.GetString("CAT_DP_IDPROD")),(Object)(anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("idProducto"),(Object)(_c.GetString("CAT_DP_IDPROD")),(Object)("precioSimptos"),(Object)(_c.GetString("CAT_DP_PRECIO_SIMPTOS")),(Object)("precio"),(Object)(_c.GetString("CAT_DP_PRECIO")),(Object)("almacen"),(Object)(_c.GetString("CAT_DP_ALMACEN")),(Object)("tipo"),(Object)(_c.GetString("CAT_DP_TIPO")),(Object)("piezas"),(Object)(_c.GetString("CAT_DP_PZAS")),(Object)("usuario"),(Object)(_c.GetString("CAT_DP_USUARIO")),(Object)("regalo"),(Object)(_c.GetString("CAT_DP_REGALO")),(Object)("clasif"),(Object)(_c.GetString("CAT_DP_CLASIF"))}).getObject())); + //BA.debugLineNum = 2042;BA.debugLine="tipos.Put(c.GetString(\"CAT_DP_IDPROD\"), c.GetSt"; +_tipos.Put((Object)(_c.GetString("CAT_DP_IDPROD")),(Object)(_c.GetString("CAT_DP_TIPO"))); + //BA.debugLineNum = 2043;BA.debugLine="If c.GetString(\"CAT_DP_TIPO\") = \"0\" Then"; +if ((_c.GetString("CAT_DP_TIPO")).equals("0")) { + //BA.debugLineNum = 2044;BA.debugLine="prodsFijos.Add(c.GetString(\"CAT_DP_IDPROD\"))"; +_prodsfijos.Add((Object)(_c.GetString("CAT_DP_IDPROD"))); + //BA.debugLineNum = 2045;BA.debugLine="prodsFijosPrecios.Add(c.GetString(\"CAT_DP_PREC"; +_prodsfijosprecios.Add((Object)(_c.GetString("CAT_DP_PRECIO"))); + //BA.debugLineNum = 2046;BA.debugLine="prodsFijosPiezas.Add(c.GetString(\"CAT_DP_PZAS\""; +_prodsfijospiezas.Add((Object)(_c.GetString("CAT_DP_PZAS"))); + }; + //BA.debugLineNum = 2048;BA.debugLine="If c.GetString(\"CAT_DP_TIPO\") = \"1\" Then"; +if ((_c.GetString("CAT_DP_TIPO")).equals("1")) { + //BA.debugLineNum = 2049;BA.debugLine="prodsVariables.Add(c.GetString(\"CAT_DP_IDPROD\""; +_prodsvariables.Add((Object)(_c.GetString("CAT_DP_IDPROD"))); + //BA.debugLineNum = 2050;BA.debugLine="prodsVariablesPrecios.Add(c.GetString(\"CAT_DP_"; +_prodsvariablesprecios.Add((Object)(_c.GetString("CAT_DP_PRECIO"))); + }; + //BA.debugLineNum = 2052;BA.debugLine="If c.GetString(\"CAT_DP_TIPO\") = \"2\" Then"; +if ((_c.GetString("CAT_DP_TIPO")).equals("2")) { + //BA.debugLineNum = 2054;BA.debugLine="prodsVariables2.Add(c.GetString(\"CAT_DP_IDPROD"; +_prodsvariables2.Add((Object)(_c.GetString("CAT_DP_IDPROD"))); + //BA.debugLineNum = 2055;BA.debugLine="prodsVariablesPrecios2.Add(c.GetString(\"CAT_DP"; +_prodsvariablesprecios2.Add((Object)(_c.GetString("CAT_DP_PRECIO"))); + }; + } +}; + //BA.debugLineNum = 2060;BA.debugLine="promoMap.Put(\"productos\", prods) 'Mapa con los p"; +_promomap.Put((Object)("productos"),(Object)(_prods.getObject())); + //BA.debugLineNum = 2061;BA.debugLine="promoMap.Put(\"tipos\", tipos) 'Mapa con los produ"; +_promomap.Put((Object)("tipos"),(Object)(_tipos.getObject())); + //BA.debugLineNum = 2062;BA.debugLine="promoMap.Put(\"prodsFijos\", prodsFijos) 'Lista de"; +_promomap.Put((Object)("prodsFijos"),(Object)(_prodsfijos.getObject())); + //BA.debugLineNum = 2063;BA.debugLine="promoMap.Put(\"prodsVariables\", prodsVariables) '"; +_promomap.Put((Object)("prodsVariables"),(Object)(_prodsvariables.getObject())); + //BA.debugLineNum = 2064;BA.debugLine="promoMap.Put(\"prodsVariables2\", prodsVariables2)"; +_promomap.Put((Object)("prodsVariables2"),(Object)(_prodsvariables2.getObject())); + //BA.debugLineNum = 2065;BA.debugLine="promoMap.Put(\"prodsFijosCant\", prodsFijos.Size)"; +_promomap.Put((Object)("prodsFijosCant"),(Object)(_prodsfijos.getSize())); + //BA.debugLineNum = 2066;BA.debugLine="promoMap.Put(\"prodsFijosPrecios\", prodsFijosPrec"; +_promomap.Put((Object)("prodsFijosPrecios"),(Object)(_prodsfijosprecios.getObject())); + //BA.debugLineNum = 2067;BA.debugLine="promoMap.Put(\"prodsFijosPiezas\", prodsFijosPieza"; +_promomap.Put((Object)("prodsFijosPiezas"),(Object)(_prodsfijospiezas.getObject())); + //BA.debugLineNum = 2068;BA.debugLine="promoMap.Put(\"prodsVariablesCant\", prodsVariable"; +_promomap.Put((Object)("prodsVariablesCant"),(Object)(_prodsvariables.getSize())); + //BA.debugLineNum = 2069;BA.debugLine="promoMap.Put(\"prodsVariables2Cant\", prodsVariabl"; +_promomap.Put((Object)("prodsVariables2Cant"),(Object)(_prodsvariables2.getSize())); + //BA.debugLineNum = 2070;BA.debugLine="promoMap.Put(\"prodsVariablesPrecios\", prodsVaria"; +_promomap.Put((Object)("prodsVariablesPrecios"),(Object)(_prodsvariablesprecios.getObject())); + //BA.debugLineNum = 2071;BA.debugLine="promoMap.Put(\"prodsVariablesPrecios2\", prodsVari"; +_promomap.Put((Object)("prodsVariablesPrecios2"),(Object)(_prodsvariablesprecios2.getObject())); + //BA.debugLineNum = 2072;BA.debugLine="promoMap.Put(\"resultado\", \"ok\")"; +_promomap.Put((Object)("resultado"),(Object)("ok")); + }else { + //BA.debugLineNum = 2074;BA.debugLine="promoMap.Put(\"resultado\", \"No hay datos de la pr"; +_promomap.Put((Object)("resultado"),(Object)("No hay datos de la promoción.")); + }; + //BA.debugLineNum = 2076;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2($\"Select CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("Select CAT_GP_STS, CAT_GP_IMP1, CAT_GP_NOMBRE from "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._starter._tabla /*String*/ ))+" where CAT_GP_ID = ?"),new String[]{_promo}))); + //BA.debugLineNum = 2077;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2078;BA.debugLine="Private pvr As String = 0"; +_pvr = BA.NumberToString(0); + //BA.debugLineNum = 2079;BA.debugLine="Private pvr2 As String = 0"; +_pvr2 = BA.NumberToString(0); + //BA.debugLineNum = 2080;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2081;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2082;BA.debugLine="pvr = c.GetString(\"CAT_GP_STS\")"; +_pvr = _c.GetString("CAT_GP_STS"); + //BA.debugLineNum = 2083;BA.debugLine="pvr2 = c.GetString(\"CAT_GP_IMP1\")"; +_pvr2 = _c.GetString("CAT_GP_IMP1"); + //BA.debugLineNum = 2084;BA.debugLine="If pvr = Null Or pvr = \"null\" Then pvr = 0"; +if (_pvr== null || (_pvr).equals("null")) { +_pvr = BA.NumberToString(0);}; + //BA.debugLineNum = 2085;BA.debugLine="If pvr2 = Null Or pvr2 = \"null\" Then pvr2 = 0"; +if (_pvr2== null || (_pvr2).equals("null")) { +_pvr2 = BA.NumberToString(0);}; + //BA.debugLineNum = 2086;BA.debugLine="promoMap.Put(\"prodsVariablesRequeridos\", pvr) 'C"; +_promomap.Put((Object)("prodsVariablesRequeridos"),(Object)(_pvr)); + //BA.debugLineNum = 2087;BA.debugLine="promoMap.Put(\"prodsVariables2Requeridos\", pvr2)"; +_promomap.Put((Object)("prodsVariables2Requeridos"),(Object)(_pvr2)); + //BA.debugLineNum = 2088;BA.debugLine="promoMap.put(\"descripcion\", c.GetString(\"CAT_GP_"; +_promomap.Put((Object)("descripcion"),(Object)(_c.GetString("CAT_GP_NOMBRE"))); + }; + //BA.debugLineNum = 2090;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 2095;BA.debugLine="Return promoMap"; +if (true) return _promomap; + //BA.debugLineNum = 2096;BA.debugLine="End Sub"; +return null; +} +public static anywheresoftware.b4a.objects.collections.Map _traepromoiddebd(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 1276;BA.debugLine="Sub traePromoIdDeBD As Map 'ignore"; + //BA.debugLineNum = 1277;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1278;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1280;BA.debugLine="Log(\"ENTRE\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("310813444","ENTRE",0); + //BA.debugLineNum = 1281;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select CAT_G"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_ID, CAT_GP_NOMBRE, CAT_GP_TIPO, CAT_GP_SUBTIPO from "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_traetablaprods(_ba,_traetipoventadebd(_ba))))+" where CAT_GP_NOMBRE In (Select PDESC from PROID) and CAT_GP_TIPO = 'PROMOS'")))); + //BA.debugLineNum = 1282;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1283;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1284;BA.debugLine="m = CreateMap(\"id\":c.GetString(\"CAT_GP_ID\"), \"no"; +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("id"),(Object)(_c.GetString("CAT_GP_ID")),(Object)("nombre"),(Object)(_c.GetString("CAT_GP_NOMBRE")),(Object)("tipo"),(Object)(_c.GetString("CAT_GP_TIPO")),(Object)("subtipo"),(Object)(_c.GetString("CAT_GP_SUBTIPO"))}); + }else { + //BA.debugLineNum = 1286;BA.debugLine="m = CreateMap(\"id\":\"N/A\", \"nombre\":\"N/A\", \"tipo\""; +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("id"),(Object)("N/A"),(Object)("nombre"),(Object)("N/A"),(Object)("tipo"),(Object)("N/A"),(Object)("subtipo"),(Object)("N/A")}); + }; + //BA.debugLineNum = 1288;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1290;BA.debugLine="Return m"; +if (true) return _m; + //BA.debugLineNum = 1291;BA.debugLine="End Sub"; +return null; +} +public static int _traepromosvendidas(anywheresoftware.b4a.BA _ba,String _promo,String _cliente) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +int _pv = 0; + //BA.debugLineNum = 1059;BA.debugLine="Sub traePromosVendidas(promo As String, cliente As"; + //BA.debugLineNum = 1060;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1061;BA.debugLine="Private pv As Int = 0"; +_pv = (int) (0); + //BA.debugLineNum = 1062;BA.debugLine="If B4XPages.MainPage.tipo_venta = \"PREVENTA_FUTUR"; +if ((mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._tipo_venta /*String*/ ).equals("PREVENTA_FUTURA")) { + //BA.debugLineNum = 1063;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_CANT from PEDIDO where PE_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_promo))+"' and PE_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' AND PE_FUTURO = '1' ")))); + }else { + //BA.debugLineNum = 1065;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select PE_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_CANT from PEDIDO where PE_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_promo))+"' and PE_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' AND PE_FUTURO = '0' ")))); + }; + //BA.debugLineNum = 1067;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1068;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1069;BA.debugLine="pv = c.GetInt(\"PE_CANT\")"; +_pv = _c.GetInt("PE_CANT"); + }; + //BA.debugLineNum = 1071;BA.debugLine="Return pv"; +if (true) return _pv; + //BA.debugLineNum = 1072;BA.debugLine="End Sub"; +return 0; +} +public static String _traeruta(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _r = ""; +String _idcliente = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _elcc = null; + //BA.debugLineNum = 673;BA.debugLine="Sub traeRuta As String 'ignore"; + //BA.debugLineNum = 674;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 675;BA.debugLine="Private r As String = \"0\""; +_r = "0"; + //BA.debugLineNum = 676;BA.debugLine="Private idCliente As String = \"\""; +_idcliente = ""; + //BA.debugLineNum = 677;BA.debugLine="Try"; +try { //BA.debugLineNum = 678;BA.debugLine="Private elCc As Cursor = Starter.skmt.ExecQuery("; +_elcc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_elcc = (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 = 679;BA.debugLine="If elCc.RowCount > 0 Then"; +if (_elcc.getRowCount()>0) { + //BA.debugLineNum = 680;BA.debugLine="elCc.Position = 0"; +_elcc.setPosition((int) (0)); + //BA.debugLineNum = 681;BA.debugLine="idCliente = elCc.GetString(\"CUENTA\")"; +_idcliente = _elcc.GetString("CUENTA"); + //BA.debugLineNum = 682;BA.debugLine="Log(\"|\"&elCc.GetString(\"CUENTA\")&\"|\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("39437193","|"+_elcc.GetString("CUENTA")+"|",0); + }; + //BA.debugLineNum = 685;BA.debugLine="If idCliente <> \"\" Then"; +if ((_idcliente).equals("") == false) { + //BA.debugLineNum = 687;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery($\"select d"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idcliente))+"'")))); + }else { + //BA.debugLineNum = 690;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select di"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info3 where CAT_CL_RUTA not in (select * from ruta_suplencia)"))); + }; + //BA.debugLineNum = 693;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 695;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 696;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")"; +_r = _c.GetString("CAT_CL_RUTA"); + }; + //BA.debugLineNum = 698;BA.debugLine="c.Close"; +_c.Close(); + } + catch (Exception e22) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e22); //BA.debugLineNum = 700;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("39437211",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + }; + //BA.debugLineNum = 703;BA.debugLine="Return r"; +if (true) return _r; + //BA.debugLineNum = 704;BA.debugLine="End Sub"; +return ""; +} +public static String _traeruta2(anywheresoftware.b4a.BA _ba,String _cliente) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _r = ""; + //BA.debugLineNum = 773;BA.debugLine="Sub traeRuta2 (cliente As String) As String 'ignor"; + //BA.debugLineNum = 774;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 775;BA.debugLine="Private r As String"; +_r = ""; + //BA.debugLineNum = 776;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery($\"select CAT_C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_RUTA from kmt_info3 where CAT_CL_CODIGO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"'")))); + //BA.debugLineNum = 777;BA.debugLine="r = \"0\""; +_r = "0"; + //BA.debugLineNum = 778;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 779;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 780;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")"; +_r = _c.GetString("CAT_CL_RUTA"); + }; + //BA.debugLineNum = 782;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 783;BA.debugLine="Return r"; +if (true) return _r; + //BA.debugLineNum = 784;BA.debugLine="End Sub"; +return ""; +} +public static String _traerutabitacora(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _r = ""; + //BA.debugLineNum = 786;BA.debugLine="Sub traeRutaBitacora As String 'ignore"; + //BA.debugLineNum = 787;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 788;BA.debugLine="Private r As String"; +_r = ""; + //BA.debugLineNum = 789;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_CL"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info3 WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 790;BA.debugLine="r = \"0\""; +_r = "0"; + //BA.debugLineNum = 791;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 792;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 793;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")"; +_r = _c.GetString("CAT_CL_RUTA"); + }; + //BA.debugLineNum = 795;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 796;BA.debugLine="Return r"; +if (true) return _r; + //BA.debugLineNum = 797;BA.debugLine="End Sub"; +return ""; +} +public static String _traerutassup(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _rutas = ""; +int _i = 0; + //BA.debugLineNum = 800;BA.debugLine="Sub traeRutasSup As String"; + //BA.debugLineNum = 801;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 802;BA.debugLine="Dim rutas As String"; +_rutas = ""; + //BA.debugLineNum = 803;BA.debugLine="rutas = \"\""; +_rutas = ""; + //BA.debugLineNum = 805;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"SELECT CAT_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info3"))); + //BA.debugLineNum = 807;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 808;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 = 809;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 810;BA.debugLine="rutas = rutas & c.GetString(\"CAT_CL_RUTA\") & \","; +_rutas = _rutas+_c.GetString("CAT_CL_RUTA")+", "; + } +}; + //BA.debugLineNum = 812;BA.debugLine="If rutas.Length > 0 Then rutas = rutas.SubString"; +if (_rutas.length()>0) { +_rutas = _rutas.substring((int) (0),(int) (_rutas.length()-2));}; + }; + //BA.debugLineNum = 815;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 816;BA.debugLine="Return rutas"; +if (true) return _rutas; + //BA.debugLineNum = 817;BA.debugLine="End Sub"; +return ""; +} +public static String _traetablaprods(anywheresoftware.b4a.BA _ba,String _tipoventa) throws Exception{ +String _tablaprods = ""; + //BA.debugLineNum = 1853;BA.debugLine="Sub traeTablaProds(tipoventa As String) As String"; + //BA.debugLineNum = 1854;BA.debugLine="Log(tipoventa)"; +anywheresoftware.b4a.keywords.Common.LogImpl("312189697",_tipoventa,0); + //BA.debugLineNum = 1855;BA.debugLine="Private tablaProds As String = \"cat_gunaprod2\""; +_tablaprods = "cat_gunaprod2"; + //BA.debugLineNum = 1856;BA.debugLine="If tipoventa = \"ABORDO\" Or tipoventa = \"PREVENTA\""; +if ((_tipoventa).equals("ABORDO") || (_tipoventa).equals("PREVENTA") || (_tipoventa).equals("PREVENTA_FUTURA") || (_tipoventa).equals("MAYOREO")) { +_tablaprods = "cat_gunaprod";}; + //BA.debugLineNum = 1858;BA.debugLine="Return tablaProds"; +if (true) return _tablaprods; + //BA.debugLineNum = 1859;BA.debugLine="End Sub"; +return ""; +} +public static int _traetipocliente(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null; +int _tc = 0; + //BA.debugLineNum = 1967;BA.debugLine="Sub traeTipoCliente As Int"; + //BA.debugLineNum = 1968;BA.debugLine="Private x As Cursor"; +_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1969;BA.debugLine="Private tc As Int = 3"; +_tc = (int) (3); + //BA.debugLineNum = 1970;BA.debugLine="x = Starter.skmt.ExecQuery($\"select IFNULL(cat_cl"; +_x = (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 IFNULL(cat_cl_tipocliente,3) AS CAT_CL_TIPOCLIENTE from kmt_info3 where cat_cl_codigo in (select cuenta from cuentaa)")))); + //BA.debugLineNum = 1971;BA.debugLine="If x.RowCount > 0 Then"; +if (_x.getRowCount()>0) { + //BA.debugLineNum = 1972;BA.debugLine="x.Position = 0"; +_x.setPosition((int) (0)); + //BA.debugLineNum = 1974;BA.debugLine="tc = x.GetInt(\"CAT_CL_TIPOCLIENTE\")"; +_tc = _x.GetInt("CAT_CL_TIPOCLIENTE"); + }; + //BA.debugLineNum = 1977;BA.debugLine="Return tc"; +if (true) return _tc; + //BA.debugLineNum = 1978;BA.debugLine="End Sub"; +return 0; +} +public static String _traetipoventadebd(anywheresoftware.b4a.BA _ba) throws Exception{ +String _tipoventa = ""; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r = null; + //BA.debugLineNum = 1876;BA.debugLine="Sub traeTipoVentaDeBD As String"; + //BA.debugLineNum = 1877;BA.debugLine="Private tipoVenta As String = \"PREVENTA\""; +_tipoventa = "PREVENTA"; + //BA.debugLineNum = 1878;BA.debugLine="Private r As ResultSet = Starter.skmt.ExecQuery(\""; +_r = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'TIPO_VENTA' "))); + //BA.debugLineNum = 1879;BA.debugLine="Do While r.NextRow"; +while (_r.NextRow()) { + //BA.debugLineNum = 1880;BA.debugLine="tipoVenta = r.GetString(\"CAT_VA_VALOR\").As(Strin"; +_tipoventa = (_r.GetString("CAT_VA_VALOR")).toUpperCase(); + } +; + //BA.debugLineNum = 1882;BA.debugLine="If Starter.idCliente = \"0\" Then"; +if ((mostCurrent._starter._idcliente /*String*/ ).equals("0")) { + //BA.debugLineNum = 1883;BA.debugLine="tipoVenta = \"ABORDO\""; +_tipoventa = "ABORDO"; + }; + //BA.debugLineNum = 1886;BA.debugLine="Return tipoVenta"; +if (true) return _tipoventa; + //BA.debugLineNum = 1887;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _traetotalesclienteactual(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.objects.collections.Map _m = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c_prodsx = null; + //BA.debugLineNum = 1994;BA.debugLine="Sub traeTotalesClienteActual As Map"; + //BA.debugLineNum = 1995;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 1996;BA.debugLine="m.Initialize"; +_m.Initialize(); + //BA.debugLineNum = 1997;BA.debugLine="Private c_prodsX As Cursor=B4XPages.MainPage.skmt"; +_c_prodsx = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c_prodsx = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ifnull(sum(PE_CANT), 0) as cantProds, ifnull(sum(PE_COSTO_TOT), 0) as costoTotal FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order by PE_PRONOMBRE asc"))); + //BA.debugLineNum = 1998;BA.debugLine="c_prodsX.Position=0"; +_c_prodsx.setPosition((int) (0)); + //BA.debugLineNum = 2000;BA.debugLine="m = CreateMap(\"productos\": c_prodsX.GetString(\"ca"; +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("productos"),(Object)(_c_prodsx.GetString("cantProds")),(Object)("monto"),(Object)(_c_prodsx.GetString("costoTotal"))}); + //BA.debugLineNum = 2001;BA.debugLine="Return m"; +if (true) return _m; + //BA.debugLineNum = 2002;BA.debugLine="End Sub"; +return null; +} +public static boolean _traeusarintentbdwa(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _bdwa = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null; + //BA.debugLineNum = 1751;BA.debugLine="Sub traeUsarIntentBDWA As Boolean 'ignore"; + //BA.debugLineNum = 1752;BA.debugLine="Private BDWA As Boolean = False"; +_bdwa = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1753;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)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'IMPORTAR_BD_WA'")))); + //BA.debugLineNum = 1754;BA.debugLine="If x.RowCount > 0 Then"; +if (_x.getRowCount()>0) { + //BA.debugLineNum = 1755;BA.debugLine="x.Position = 0"; +_x.setPosition((int) (0)); + //BA.debugLineNum = 1756;BA.debugLine="If x.GetString(\"CAT_VA_VALOR\") = \"true\" Then BDW"; +if ((_x.GetString("CAT_VA_VALOR")).equals("true")) { +_bdwa = anywheresoftware.b4a.keywords.Common.True;}; + }; + //BA.debugLineNum = 1759;BA.debugLine="Return BDWA"; +if (true) return _bdwa; + //BA.debugLineNum = 1760;BA.debugLine="End Sub"; +return false; +} +public static String _traeusuariodebd(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _u = ""; + //BA.debugLineNum = 840;BA.debugLine="Sub traeUsuarioDeBD As String 'ignore"; + //BA.debugLineNum = 841;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 842;BA.debugLine="Private u As String = \"SinUsuario\""; +_u = "SinUsuario"; + //BA.debugLineNum = 843;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 844;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 = 845;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 846;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")"; +if (_c.getRowCount()>0) { +_u = _c.GetString("USUARIO");}; + //BA.debugLineNum = 847;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 848;BA.debugLine="Return u"; +if (true) return _u; + //BA.debugLineNum = 849;BA.debugLine="End Sub"; +return ""; +} +public static String _traevariable(anywheresoftware.b4a.BA _ba,String _nombre) throws Exception{ +String _valor = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _lavc = null; + //BA.debugLineNum = 1896;BA.debugLine="Sub traeVariable(nombre As String) As String"; + //BA.debugLineNum = 1897;BA.debugLine="Private valor As String = \"\""; +_valor = ""; + //BA.debugLineNum = 1898;BA.debugLine="Private laVc As Cursor = Starter.skmt.ExecQuery($"; +_lavc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_lavc = (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_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_nombre))+"'")))); + //BA.debugLineNum = 1899;BA.debugLine="If laVc.RowCount > 0 Then"; +if (_lavc.getRowCount()>0) { + //BA.debugLineNum = 1900;BA.debugLine="laVc.Position = 0"; +_lavc.setPosition((int) (0)); + //BA.debugLineNum = 1901;BA.debugLine="valor = laVc.GetString(\"CAT_VA_VALOR\")"; +_valor = _lavc.GetString("CAT_VA_VALOR"); + }; + //BA.debugLineNum = 1903;BA.debugLine="Return valor"; +if (true) return _valor; + //BA.debugLineNum = 1904;BA.debugLine="End Sub"; +return ""; +} +public static String _validapromoprocterpro3009(anywheresoftware.b4a.BA _ba) throws Exception{ +String _idregalo = ""; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r = null; +String _monto = ""; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _r2 = null; + //BA.debugLineNum = 1602;BA.debugLine="Sub validaPromoProcterPRO3009"; + //BA.debugLineNum = 1603;BA.debugLine="Private idRegalo As String = \"PYG1016\""; +_idregalo = "PYG1016"; + //BA.debugLineNum = 1604;BA.debugLine="Private r As ResultSet = Starter.skmt.ExecQuery($"; +_r = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select pe_cliente from pedido where pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idregalo))+"' and pe_cedis = 'PRO3009'")))); + //BA.debugLineNum = 1606;BA.debugLine="Do While r.NextRow"; +while (_r.NextRow()) { + //BA.debugLineNum = 1607;BA.debugLine="Private monto As String = 0"; +_monto = BA.NumberToString(0); + //BA.debugLineNum = 1608;BA.debugLine="Private r2 As ResultSet = Starter.skmt.ExecQuery"; +_r2 = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_r2 = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select ifnull(sum(pe_costo_tot),0) as monto from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r.GetString("PE_CLIENTE")))+"' and PE_PROID in (\"PYG1014\", \"PYG1025\")")))); + //BA.debugLineNum = 1609;BA.debugLine="Do While r2.NextRow"; +while (_r2.NextRow()) { + //BA.debugLineNum = 1610;BA.debugLine="Log($\"Cliente: ${r.GetString(\"PE_CLIENTE\")}, mo"; +anywheresoftware.b4a.keywords.Common.LogImpl("311534344",("Cliente: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r.GetString("PE_CLIENTE")))+", monto: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r2.GetString("monto")))+""),0); + //BA.debugLineNum = 1613;BA.debugLine="If r2.GetString(\"monto\") < 150 Then"; +if ((double)(Double.parseDouble(_r2.GetString("monto")))<150) { + //BA.debugLineNum = 1614;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedido"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido where pe_cedis = 'PRO3009' and pe_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_idregalo))+"' and pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r.GetString("PE_CLIENTE")))+"' and pe_cant = 1 ")); + //BA.debugLineNum = 1616;BA.debugLine="Msgbox($\"Regalo de la promoción PRO3009 borrad"; +anywheresoftware.b4a.keywords.Common.Msgbox(BA.ObjectToCharSequence(("Regalo de la promoción PRO3009 borrado por no cumplir con los requisitos mínimos.")),BA.ObjectToCharSequence("Regalo Borrado"),_ba); + }; + } +; + //BA.debugLineNum = 1620;BA.debugLine="r2 = Starter.skmt.ExecQuery($\"select count(pe_pr"; +_r2 = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(pe_proid) as cuantos from pedido where pe_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r.GetString("PE_CLIENTE")))+"'")))); + //BA.debugLineNum = 1621;BA.debugLine="Do While r2.NextRow"; +while (_r2.NextRow()) { + //BA.debugLineNum = 1623;BA.debugLine="If r2.GetString(\"cuantos\") = 0 Then"; +if ((_r2.GetString("cuantos")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 1624;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from pedido"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from pedido_cliente where pc_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r.GetString("PE_CLIENTE")))+"'")); + //BA.debugLineNum = 1625;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info3 s"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update kmt_info3 set gestion = 0 where cat_cl_codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_r.GetString("PE_CLIENTE")))+"'")); + }; + } +; + } +; + //BA.debugLineNum = 1629;BA.debugLine="End Sub"; +return ""; +} +public static boolean _vendidopromoesp(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _w = false; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 1396;BA.debugLine="Sub vendidoPromoEsp As Boolean"; + //BA.debugLineNum = 1397;BA.debugLine="Private w As Boolean = False"; +_w = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 1398;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HP_CLIENTE, HP_CODIGO_PROMOCION from HIST_PROMOS WHERE HP_CODIGO_PROMOCION IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP) AND HP_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1399;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1400;BA.debugLine="w = True"; +_w = anywheresoftware.b4a.keywords.Common.True; + }; + //BA.debugLineNum = 1402;BA.debugLine="Log(w)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311206662",BA.ObjectToString(_w),0); + //BA.debugLineNum = 1403;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1404;BA.debugLine="Private c As Cursor = B4XPages.MainPage.skmt.Exec"; +_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._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (_ba)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PE_PROID from PEDIDO WHERE PE_PROID IN (SELECT DISTINCT CAT_PE_IDPROMO FROM CAT_PROMO_ESP) AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1405;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1406;BA.debugLine="w = True"; +_w = anywheresoftware.b4a.keywords.Common.True; + }; + //BA.debugLineNum = 1408;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1409;BA.debugLine="Log(w)"; +anywheresoftware.b4a.keywords.Common.LogImpl("311206669",BA.ObjectToString(_w),0); + //BA.debugLineNum = 1410;BA.debugLine="Return w"; +if (true) return _w; + //BA.debugLineNum = 1411;BA.debugLine="End Sub"; +return false; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/swiftbutton.java b/B4A/Objects/src/gunav2/keymon/com/mx/swiftbutton.java new file mode 100644 index 0000000..87908e1 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/swiftbutton.java @@ -0,0 +1,319 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx.swiftbutton"); + if (htSubs == null) { + ba.loadHtSubs(this.getClass()); + htSubs = ba.htSubs; + } + + } + if (BA.isShellModeRuntimeCheck(ba)) + this.getClass().getMethod("_class_globals", gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.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/gunav2/keymon/com/mx/tracker.java b/B4A/Objects/src/gunav2/keymon/com/mx/tracker.java new file mode 100644 index 0000000..b69113a --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/tracker.java @@ -0,0 +1,815 @@ +package gunav2.keymon.com.mx; + + +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, "gunav2.keymon.com.mx", "gunav2.keymon.com.mx.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, "gunav2.keymon.com.mx.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 anywheresoftware.b4a.gps.LocationWrapper _uugcoords = null; +public b4a.example.dateutils _dateutils = null; +public gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.httputils2service _httputils2service = null; +public gunav2.keymon.com.mx.xuiviewsutils _xuiviewsutils = null; +public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequest() throws Exception{ +uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null; + //BA.debugLineNum = 430;BA.debugLine="Private Sub CreateLocationRequest As LocationReque"; + //BA.debugLineNum = 431;BA.debugLine="Log(\"CreateLocationRequest\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392274689","CreateLocationRequest",0); + //BA.debugLineNum = 432;BA.debugLine="Dim lr As LocationRequest"; +_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); + //BA.debugLineNum = 433;BA.debugLine="lr.Initialize"; +_lr.Initialize(); + //BA.debugLineNum = 434;BA.debugLine="lr.SetInterval(2000) 'Intervalo deseado para actu"; +_lr.SetInterval((long) (2000)); + //BA.debugLineNum = 435;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; +_lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2)); + //BA.debugLineNum = 436;BA.debugLine="lr.SetSmallestDisplacement(15) 'Solo registra cam"; +_lr.SetSmallestDisplacement((float) (15)); + //BA.debugLineNum = 437;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; +_lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY); + //BA.debugLineNum = 438;BA.debugLine="actualLR=lr"; +_actuallr = _lr; + //BA.debugLineNum = 439;BA.debugLine="Return lr"; +if (true) return _lr; + //BA.debugLineNum = 440;BA.debugLine="End Sub"; +return null; +} +public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequest2() throws Exception{ +boolean _logger = false; +uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null; + //BA.debugLineNum = 455;BA.debugLine="Private Sub CreateLocationRequest2 As LocationRequ"; + //BA.debugLineNum = 456;BA.debugLine="Private logger As Boolean = True"; +_logger = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 457;BA.debugLine="If logger Then Log(\"Iniciamos CreateLocationReque"; +if (_logger) { +anywheresoftware.b4a.keywords.Common.LogImpl("392405762","Iniciamos CreateLocationRequest2",0);}; + //BA.debugLineNum = 458;BA.debugLine="Dim lr As LocationRequest"; +_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); + //BA.debugLineNum = 459;BA.debugLine="lr.Initialize"; +_lr.Initialize(); + //BA.debugLineNum = 460;BA.debugLine="lr.SetInterval(1000) 'Intervalo deseado para actu"; +_lr.SetInterval((long) (1000)); + //BA.debugLineNum = 461;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; +_lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2)); + //BA.debugLineNum = 462;BA.debugLine="lr.setNumUpdates(2) 'Solicitamos solo x actualiza"; +_lr.SetNumUpdates((int) (2)); + //BA.debugLineNum = 463;BA.debugLine="lr.SetSmallestDisplacement(1) 'Solo registra camb"; +_lr.SetSmallestDisplacement((float) (1)); + //BA.debugLineNum = 464;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; +_lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY); + //BA.debugLineNum = 465;BA.debugLine="actualLR=lr"; +_actuallr = _lr; + //BA.debugLineNum = 466;BA.debugLine="Return lr"; +if (true) return _lr; + //BA.debugLineNum = 467;BA.debugLine="End Sub"; +return null; +} +public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequestsmalld() throws Exception{ +uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null; + //BA.debugLineNum = 442;BA.debugLine="Private Sub CreateLocationRequestSmallD As Locatio"; + //BA.debugLineNum = 443;BA.debugLine="Log(\"Iniciamos CreateLocationRequestSmallD\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392340225","Iniciamos CreateLocationRequestSmallD",0); + //BA.debugLineNum = 444;BA.debugLine="Dim lr As LocationRequest"; +_lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); + //BA.debugLineNum = 445;BA.debugLine="lr.Initialize"; +_lr.Initialize(); + //BA.debugLineNum = 446;BA.debugLine="lr.SetInterval(2000) 'Intervalo deseado para actu"; +_lr.SetInterval((long) (2000)); + //BA.debugLineNum = 447;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; +_lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2)); + //BA.debugLineNum = 448;BA.debugLine="lr.setNumUpdates(2) 'Solicitamos solo x actualiza"; +_lr.SetNumUpdates((int) (2)); + //BA.debugLineNum = 449;BA.debugLine="lr.SetSmallestDisplacement(3) 'Solo registra camb"; +_lr.SetSmallestDisplacement((float) (3)); + //BA.debugLineNum = 450;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; +_lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY); + //BA.debugLineNum = 451;BA.debugLine="actualLR=lr"; +_actuallr = _lr; + //BA.debugLineNum = 452;BA.debugLine="Return lr"; +if (true) return _lr; + //BA.debugLineNum = 453;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 = 534;BA.debugLine="Sub CreateNotification (Body As String) As Notific"; + //BA.debugLineNum = 535;BA.debugLine="Dim notification As Notification"; +_notification = new anywheresoftware.b4a.objects.NotificationWrapper(); + //BA.debugLineNum = 536;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_"; +_notification.Initialize2(_notification.IMPORTANCE_LOW); + //BA.debugLineNum = 537;BA.debugLine="notification.Icon = \"icon\""; +_notification.setIcon("icon"); + //BA.debugLineNum = 538;BA.debugLine="notification.SetInfo(\"GUNA\", Body, Main)"; +_notification.SetInfoNew(processBA,BA.ObjectToCharSequence("GUNA"),BA.ObjectToCharSequence(_body),(Object)(mostCurrent._main.getObject())); + //BA.debugLineNum = 539;BA.debugLine="Return notification"; +if (true) return _notification; + //BA.debugLineNum = 540;BA.debugLine="End Sub"; +return null; +} +public static String _dameultimaubicacionconocida() throws Exception{ +String _coords = ""; + //BA.debugLineNum = 469;BA.debugLine="Sub dameUltimaUbicacionConocida"; + //BA.debugLineNum = 470;BA.debugLine="If FLP.GetLastKnownLocation.IsInitialized Then 'M"; +if (_flp.GetLastKnownLocation().IsInitialized()) { + //BA.debugLineNum = 472;BA.debugLine="If Starter.Logger Then LogColor($\"Mandamos UUC \""; +if (mostCurrent._starter._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("392471299",("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 = 473;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 = 477;BA.debugLine="End Sub"; +return ""; +} +public static String _flp_connectionfailed(int _connectionresult1) throws Exception{ + //BA.debugLineNum = 360;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)"; + //BA.debugLineNum = 361;BA.debugLine="Log(\"Failed to connect to location provider\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("391881473","Failed to connect to location provider",0); + //BA.debugLineNum = 362;BA.debugLine="End Sub"; +return ""; +} +public static String _flp_connectionsuccess() throws Exception{ + //BA.debugLineNum = 355;BA.debugLine="Sub flp_ConnectionSuccess"; + //BA.debugLineNum = 358;BA.debugLine="End Sub"; +return ""; +} +public static String _flp_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ +String _sdate = ""; +String _stime = ""; +String _coords = ""; + //BA.debugLineNum = 487;BA.debugLine="Sub flp_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 488;BA.debugLine="Log($\"Loc changed:${Location1.Longitude},${Locati"; +anywheresoftware.b4a.keywords.Common.LogImpl("392602369",("Loc changed:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_location1.getLongitude()))+","+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_location1.getLatitude()))+""),0); + //BA.debugLineNum = 490;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ = BA.NumberToString(_location1.getLatitude()); + //BA.debugLineNum = 491;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lon_gps /*String*/ = BA.NumberToString(_location1.getLongitude()); + //BA.debugLineNum = 492;BA.debugLine="UUGCoords = Location1"; +_uugcoords = _location1; + //BA.debugLineNum = 500;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 501;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 502;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 503;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 504;BA.debugLine="If Not(B4XPages.MainPage.skmt.IsInitialized) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .IsInitialized())) { +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);}; + //BA.debugLineNum = 505;BA.debugLine="Try"; +try { //BA.debugLineNum = 506;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._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 /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._lon_gps /*String*/ )})); + //BA.debugLineNum = 507;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS"); + } + catch (Exception e14) { + processBA.setLastException(e14); //BA.debugLineNum = 509;BA.debugLine="LogColor(LastException, Colors.Red)"; +anywheresoftware.b4a.keywords.Common.LogImpl("392602390",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 512;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 = 517;BA.debugLine="If Location1.Accuracy < 100 Then"; +if (_location1.getAccuracy()<100) { + }; + //BA.debugLineNum = 521;BA.debugLine="CallSub2(Starter, \"GPS_LocationChanged\", Location"; +anywheresoftware.b4a.keywords.Common.CallSubNew2(processBA,(Object)(mostCurrent._starter.getObject()),"GPS_LocationChanged",(Object)(_location1)); + //BA.debugLineNum = 525;BA.debugLine="If B4XPages.MainPage.cliente.IsInitialized And St"; +if (mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._cliente /*gunav2.keymon.com.mx.c_cliente*/ .IsInitialized /*boolean*/ () && mostCurrent._starter._encliente /*boolean*/ ) { + //BA.debugLineNum = 526;BA.debugLine="CallSub2(B4XPages.GetPage(\"Cliente\"), \"GPS_Locat"; +anywheresoftware.b4a.keywords.Common.CallSubNew2(processBA,mostCurrent._b4xpages._getpage /*Object*/ (processBA,"Cliente"),"GPS_LocationChanged",(Object)(_location1)); + }; + //BA.debugLineNum = 528;BA.debugLine="If B4XPages.MainPage.nuevoCliente.IsInitialized T"; +if (mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._nuevocliente /*gunav2.keymon.com.mx.c_nuevocliente*/ .IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 529;BA.debugLine="CallSub2(B4XPages.GetPage(\"nuevocliente\"), \"GPS_"; +anywheresoftware.b4a.keywords.Common.CallSubNew2(processBA,mostCurrent._b4xpages._getpage /*Object*/ (processBA,"nuevocliente"),"GPS_LocationChanged",(Object)(_location1)); + }; + //BA.debugLineNum = 532;BA.debugLine="End Sub"; +return ""; +} +public static String _formatofecha(String _fecha) throws Exception{ +String _origformat = ""; +String _lastupdate = ""; + //BA.debugLineNum = 550;BA.debugLine="Sub formatoFecha(fecha As String) As String 'Convi"; + //BA.debugLineNum = 552;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 553;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss"); + //BA.debugLineNum = 554;BA.debugLine="Dim lastUpdate As String=DateTime.Date(fecha)"; +_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); + //BA.debugLineNum = 555;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 557;BA.debugLine="Return lastUpdate"; +if (true) return _lastupdate; + //BA.debugLineNum = 558;BA.debugLine="End Sub"; +return ""; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 334;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 335;BA.debugLine="Private nid As Int = 51042"; +_nid = (int) (51042); + //BA.debugLineNum = 336;BA.debugLine="Private Tracking As Boolean"; +_tracking = false; + //BA.debugLineNum = 337;BA.debugLine="Private lock As PhoneWakeState"; +_lock = new anywheresoftware.b4a.phone.Phone.PhoneWakeState(); + //BA.debugLineNum = 339;BA.debugLine="Public FLP As FusedLocationProvider"; +_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper(); + //BA.debugLineNum = 340;BA.debugLine="Dim actualLR As LocationRequest"; +_actuallr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); + //BA.debugLineNum = 341;BA.debugLine="Private flpStarted As Boolean"; +_flpstarted = false; + //BA.debugLineNum = 343;BA.debugLine="Dim UUGCoords As Location 'Ultima Ubicacion Guard"; +_uugcoords = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 344;BA.debugLine="End Sub"; +return ""; +} +public static String _revisaflp() throws Exception{ +boolean _todobienflp = false; + //BA.debugLineNum = 561;BA.debugLine="Sub revisaFLP 'ignore"; + //BA.debugLineNum = 562;BA.debugLine="LogColor(\"**** **** Revisamos FLP **** ****\", Col"; +anywheresoftware.b4a.keywords.Common.LogImpl("392864513","**** **** Revisamos FLP **** ****",anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227))); + //BA.debugLineNum = 563;BA.debugLine="Private todoBienFLP As Boolean = True"; +_todobienflp = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 564;BA.debugLine="Try"; +try { //BA.debugLineNum = 565;BA.debugLine="If Not(FLP.IsInitialized) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(_flp.IsInitialized())) { + //BA.debugLineNum = 566;BA.debugLine="Subs.log2DB(\"revisaFLP: No esta inicializado .."; +mostCurrent._subs._log2db /*String*/ (processBA,"revisaFLP: No esta inicializado ... 'Reinicializando FLP'"); + //BA.debugLineNum = 567;BA.debugLine="FLP.Initialize(\"flp\")"; +_flp.Initialize(processBA,"flp"); + //BA.debugLineNum = 568;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + } + catch (Exception e10) { + processBA.setLastException(e10); //BA.debugLineNum = 571;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsInitialized) -->"; +anywheresoftware.b4a.keywords.Common.LogImpl("392864522","If Not(Tracker.FLP.IsInitialized) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 573;BA.debugLine="Try"; +try { //BA.debugLineNum = 574;BA.debugLine="If FLP.IsInitialized Then"; +if (_flp.IsInitialized()) { + //BA.debugLineNum = 575;BA.debugLine="Try"; +try { //BA.debugLineNum = 576;BA.debugLine="If Not(FLP.IsConnected) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(_flp.IsConnected())) { + //BA.debugLineNum = 577;BA.debugLine="Subs.log2DB(\"revisaFLP: No esta conectado ..."; +mostCurrent._subs._log2db /*String*/ (processBA,"revisaFLP: No esta conectado ... 'Reconectando FLP'"); + //BA.debugLineNum = 579;BA.debugLine="StartFLP"; +_startflp(); + //BA.debugLineNum = 580;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + } + catch (Exception e21) { + processBA.setLastException(e21); //BA.debugLineNum = 583;BA.debugLine="LogColor(\"If Not(Tracker.FLP.IsConnected) -->"; +anywheresoftware.b4a.keywords.Common.LogImpl("392864534","If Not(Tracker.FLP.IsConnected) --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 585;BA.debugLine="Try"; +try { //BA.debugLineNum = 586;BA.debugLine="If FLP.IsConnected And _ FLP.GetLastKnown"; +if (_flp.IsConnected() && _flp.GetLastKnownLocation().IsInitialized() && _flp.GetLastKnownLocation().DistanceTo((android.location.Location)(_uugcoords.getObject()))>500) { + //BA.debugLineNum = 589;BA.debugLine="Subs.log2DB(\"revisaFLP: 'No se esta actualiza"; +mostCurrent._subs._log2db /*String*/ (processBA,"revisaFLP: 'No se esta actualizando, lo reiniciamos ...'"); + //BA.debugLineNum = 590;BA.debugLine="StartService(Me)"; +anywheresoftware.b4a.keywords.Common.StartService(processBA,tracker.getObject()); + //BA.debugLineNum = 591;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + } + catch (Exception e30) { + processBA.setLastException(e30); //BA.debugLineNum = 594;BA.debugLine="LogColor(\"If FLP.IsConnectctd and FLP.getLKL.I"; +anywheresoftware.b4a.keywords.Common.LogImpl("392864545","If FLP.IsConnectctd and FLP.getLKL.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + }; + //BA.debugLineNum = 597;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin error"; +if (_todobienflp) { +anywheresoftware.b4a.keywords.Common.LogImpl("392864548"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);}; + } + catch (Exception e35) { + processBA.setLastException(e35); //BA.debugLineNum = 599;BA.debugLine="LogColor(\"If Tracker.FLP.IsInitialized --> \"&Las"; +anywheresoftware.b4a.keywords.Common.LogImpl("392864550","If Tracker.FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 602;BA.debugLine="End Sub"; +return ""; +} +public static String _revisauug() throws Exception{ +int _daa = 0; + //BA.debugLineNum = 606;BA.debugLine="Sub revisaUUG 'ignore"; + //BA.debugLineNum = 607;BA.debugLine="Try"; +try { //BA.debugLineNum = 609;BA.debugLine="If FLP.IsInitialized And FLP.IsConnected Then"; +if (_flp.IsInitialized() && _flp.IsConnected()) { + //BA.debugLineNum = 610;BA.debugLine="Try"; +try { //BA.debugLineNum = 611;BA.debugLine="If FLP.GetLastKnownLocation.IsInitialized Then"; +if (_flp.GetLastKnownLocation().IsInitialized()) { + //BA.debugLineNum = 613;BA.debugLine="Dim daa As Int = UUGCoords.DistanceTo(FLP.Get"; +_daa = (int) (_uugcoords.DistanceTo((android.location.Location)(_flp.GetLastKnownLocation().getObject()))); + //BA.debugLineNum = 614;BA.debugLine="If Starter.Logger Then LogColor($\"**** UUC \"$"; +if (mostCurrent._starter._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("392930056",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|"+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()))+"|"+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 = 615;BA.debugLine="If daa > 40 And FLP.GetLastKnownLocation.Accu"; +if (_daa>40 && _flp.GetLastKnownLocation().getAccuracy()<35) { + //BA.debugLineNum = 616;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT"; +mostCurrent._b4xpages._mainpage /*gunav2.keymon.com.mx.b4xmainpage*/ (processBA)._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))),(Object)(_flp.GetLastKnownLocation().getLatitude()),(Object)(_flp.GetLastKnownLocation().getLongitude())})); + //BA.debugLineNum = 617;BA.debugLine="If Starter.Logger Then Log(\"++++ Distancia a"; +if (mostCurrent._starter._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("392930059","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(_flp.GetLastKnownLocation().getAccuracy()),0);}; + }; + //BA.debugLineNum = 619;BA.debugLine="UUGCoords = FLP.GetLastKnownLocation"; +_uugcoords = _flp.GetLastKnownLocation(); + }; + } + catch (Exception e14) { + processBA.setLastException(e14); //BA.debugLineNum = 622;BA.debugLine="LogColor(\"FLP.GetLastKnownLocation.IsInitializ"; +anywheresoftware.b4a.keywords.Common.LogImpl("392930064","FLP.GetLastKnownLocation.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + }else { + //BA.debugLineNum = 625;BA.debugLine="Log(\"StartFLP\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392930067","StartFLP",0); + //BA.debugLineNum = 626;BA.debugLine="StartFLP"; +_startflp(); + }; + } + catch (Exception e21) { + processBA.setLastException(e21); //BA.debugLineNum = 629;BA.debugLine="LogColor(\"If FLP.IsInitialized --> \"&LastExcepti"; +anywheresoftware.b4a.keywords.Common.LogImpl("392930071","If FLP.IsInitialized --> "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),anywheresoftware.b4a.keywords.Common.Colors.Red); + }; + //BA.debugLineNum = 631;BA.debugLine="End Sub"; +return ""; +} +public static String _service_create() throws Exception{ + //BA.debugLineNum = 346;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 347;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT"; +mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER; + //BA.debugLineNum = 349;BA.debugLine="FLP.Initialize(\"flp\")"; +_flp.Initialize(processBA,"flp"); + //BA.debugLineNum = 350;BA.debugLine="FLP.Connect"; +_flp.Connect(); + //BA.debugLineNum = 351;BA.debugLine="lock.PartialLock"; +_lock.PartialLock(processBA); + //BA.debugLineNum = 352;BA.debugLine="StartFLP"; +_startflp(); + //BA.debugLineNum = 353;BA.debugLine="End Sub"; +return ""; +} +public static String _service_destroy() throws Exception{ + //BA.debugLineNum = 542;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 543;BA.debugLine="If Tracking Then"; +if (_tracking) { + //BA.debugLineNum = 544;BA.debugLine="StopFLP"; +_stopflp(); + }; + //BA.debugLineNum = 546;BA.debugLine="Tracking = False"; +_tracking = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 547;BA.debugLine="lock.ReleasePartialLock"; +_lock.ReleasePartialLock(); + //BA.debugLineNum = 548;BA.debugLine="End Sub"; +return ""; +} +public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ + //BA.debugLineNum = 364;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; + //BA.debugLineNum = 366;BA.debugLine="Service.StopAutomaticForeground"; +mostCurrent._service.StopAutomaticForeground(); + //BA.debugLineNum = 367;BA.debugLine="Service.StartForeground(nid, CreateNotification(\""; +mostCurrent._service.StartForeground(_nid,(android.app.Notification)(_createnotification("...").getObject())); + //BA.debugLineNum = 368;BA.debugLine="Track"; +_track(); + //BA.debugLineNum = 369;BA.debugLine="StartServiceAt(Me, DateTime.Now + 5 * DateTime.Ti"; +anywheresoftware.b4a.keywords.Common.StartServiceAt(processBA,tracker.getObject(),(long) (anywheresoftware.b4a.keywords.Common.DateTime.getNow()+5*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute),anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 370;BA.debugLine="FLP.GetLastKnownLocation.Initialize"; +_flp.GetLastKnownLocation().Initialize(); + //BA.debugLineNum = 371;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(gunav2.keymon.com.mx.tracker parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 390;BA.debugLine="Log(\"StartFLP - flpStarted=\"&flpStarted)"; +anywheresoftware.b4a.keywords.Common.LogImpl("392078081","StartFLP - flpStarted="+BA.ObjectToString(parent._flpstarted),0); + //BA.debugLineNum = 391;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 = 392;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 = 397;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest)"; +parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequest().getObject())); + //BA.debugLineNum = 400;BA.debugLine="flpStarted = True"; +parent._flpstarted = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 402;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public static void _startflp2() throws Exception{ +ResumableSub_StartFLP2 rsub = new ResumableSub_StartFLP2(null); +rsub.resume(processBA, null); +} +public static class ResumableSub_StartFLP2 extends BA.ResumableSub { +public ResumableSub_StartFLP2(gunav2.keymon.com.mx.tracker parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.tracker parent; +boolean _logger = 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 = 405;BA.debugLine="Log(\"StartFLP2\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392143617","StartFLP2",0); + //BA.debugLineNum = 406;BA.debugLine="Private logger As Boolean = True"; +_logger = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 407;BA.debugLine="If logger Then Log(\"StartFLP2 - flpStarted=\"&flpS"; +if (true) break; + +case 1: +//if +this.state = 6; +if (_logger) { +this.state = 3; +;}if (true) break; + +case 3: +//C +this.state = 6; +anywheresoftware.b4a.keywords.Common.LogImpl("392143619","StartFLP2 - flpStarted="+BA.ObjectToString(parent._flpstarted),0); +if (true) break; + +case 6: +//C +this.state = 7; +; + //BA.debugLineNum = 408;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 = 409;BA.debugLine="Sleep(500)"; +anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (500)); +this.state = 23; +return; +case 23: +//C +this.state = 10; +; + //BA.debugLineNum = 410;BA.debugLine="If logger Then Log(\"kll - sleeping\")"; +if (true) break; + +case 10: +//if +this.state = 15; +if (_logger) { +this.state = 12; +;}if (true) break; + +case 12: +//C +this.state = 15; +anywheresoftware.b4a.keywords.Common.LogImpl("392143622","kll - sleeping",0); +if (true) break; + +case 15: +//C +this.state = 7; +; + if (true) break; + +case 16: +//C +this.state = 17; +; + //BA.debugLineNum = 412;BA.debugLine="dameUltimaUbicacionConocida 'Regresamos ultima ub"; +_dameultimaubicacionconocida(); + //BA.debugLineNum = 413;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest2"; +parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequest2().getObject())); + //BA.debugLineNum = 414;BA.debugLine="If logger Then LogColor(\"Buscamos ubicacion (movi"; +if (true) break; + +case 17: +//if +this.state = 22; +if (_logger) { +this.state = 19; +;}if (true) break; + +case 19: +//C +this.state = 22; +anywheresoftware.b4a.keywords.Common.LogImpl("392143626","Buscamos ubicacion (movimientoMinimo = "+BA.NumberToString(parent._actuallr.GetSmallestDisplacement())+")",anywheresoftware.b4a.keywords.Common.Colors.Magenta); +if (true) break; + +case 22: +//C +this.state = -1; +; + //BA.debugLineNum = 416;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public static void _startflpsmall() throws Exception{ +ResumableSub_StartFLPSmall rsub = new ResumableSub_StartFLPSmall(null); +rsub.resume(processBA, null); +} +public static class ResumableSub_StartFLPSmall extends BA.ResumableSub { +public ResumableSub_StartFLPSmall(gunav2.keymon.com.mx.tracker parent) { +this.parent = parent; +} +gunav2.keymon.com.mx.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 = 419;BA.debugLine="Log(\"StartFLPSmall - flpStarted=\"&flpStarted)"; +anywheresoftware.b4a.keywords.Common.LogImpl("392209153","StartFLPSmall - flpStarted="+BA.ObjectToString(parent._flpstarted),0); + //BA.debugLineNum = 420;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 = 421;BA.debugLine="Sleep(500)"; +anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (500)); +this.state = 5; +return; +case 5: +//C +this.state = 1; +; + //BA.debugLineNum = 422;BA.debugLine="Log(\"sleeping\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392209156","sleeping",0); + if (true) break; + +case 4: +//C +this.state = -1; +; + //BA.debugLineNum = 424;BA.debugLine="dameUltimaUbicacionConocida 'Regresamos ultima ub"; +_dameultimaubicacionconocida(); + //BA.debugLineNum = 425;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequestS"; +parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequestsmalld().getObject())); + //BA.debugLineNum = 428;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public static String _stopflp() throws Exception{ + //BA.debugLineNum = 479;BA.debugLine="Public Sub StopFLP"; + //BA.debugLineNum = 480;BA.debugLine="Log(\"StopFLP\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392536833","StopFLP",0); + //BA.debugLineNum = 481;BA.debugLine="If flpStarted Then"; +if (_flpstarted) { + //BA.debugLineNum = 482;BA.debugLine="FLP.RemoveLocationUpdates 'Eliminamos todas las"; +_flp.RemoveLocationUpdates(); + //BA.debugLineNum = 483;BA.debugLine="flpStarted = False"; +_flpstarted = anywheresoftware.b4a.keywords.Common.False; + }; + //BA.debugLineNum = 485;BA.debugLine="End Sub"; +return ""; +} +public static String _track() throws Exception{ + //BA.debugLineNum = 373;BA.debugLine="Public Sub Track"; + //BA.debugLineNum = 374;BA.debugLine="Log(\"Inicia Track - Tracking : \"&Tracking)"; +anywheresoftware.b4a.keywords.Common.LogImpl("392012545","Inicia Track - Tracking : "+BA.ObjectToString(_tracking),0); + //BA.debugLineNum = 375;BA.debugLine="If Not(FLP.IsInitialized) Then FLP.Initialize(\"fl"; +if (anywheresoftware.b4a.keywords.Common.Not(_flp.IsInitialized())) { +_flp.Initialize(processBA,"flp");}; + //BA.debugLineNum = 376;BA.debugLine="If Not(FLP.IsConnected) Then FLP.Connect"; +if (anywheresoftware.b4a.keywords.Common.Not(_flp.IsConnected())) { +_flp.Connect();}; + //BA.debugLineNum = 377;BA.debugLine="If Tracking And actualLR.IsInitialized Then"; +if (_tracking && _actuallr.IsInitialized()) { + //BA.debugLineNum = 379;BA.debugLine="Return 'Si ya estamos \"rastreando\" no hacemos na"; +if (true) return ""; + }; + //BA.debugLineNum = 381;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 = 382;BA.debugLine="Log(\"No permission\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("392012553","No permission",0); + //BA.debugLineNum = 383;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 385;BA.debugLine="StartFLP 'Iniciamos FusedLocationProvider"; +_startflp(); + //BA.debugLineNum = 386;BA.debugLine="Tracking = True"; +_tracking = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 387;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/gunav2/keymon/com/mx/xuiviewsutils.java b/B4A/Objects/src/gunav2/keymon/com/mx/xuiviewsutils.java new file mode 100644 index 0000000..ceeb9a3 --- /dev/null +++ b/B4A/Objects/src/gunav2/keymon/com/mx/xuiviewsutils.java @@ -0,0 +1,158 @@ +package gunav2.keymon.com.mx; + + +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 gunav2.keymon.com.mx.main _main = null; +public gunav2.keymon.com.mx.starter _starter = null; +public gunav2.keymon.com.mx.subs _subs = null; +public gunav2.keymon.com.mx.appupdater _appupdater = null; +public gunav2.keymon.com.mx.firebasemessaging _firebasemessaging = null; +public gunav2.keymon.com.mx.mapa_rutas _mapa_rutas = null; +public gunav2.keymon.com.mx.tracker _tracker = null; +public gunav2.keymon.com.mx.newinst2 _newinst2 = null; +public gunav2.keymon.com.mx.b4xpages _b4xpages = null; +public gunav2.keymon.com.mx.b4xcollections _b4xcollections = null; +public gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.b4ximageview _createb4ximageview(anywheresoftware.b4a.BA _ba) throws Exception{ +gunav2.keymon.com.mx.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 gunav2.keymon.com.mx.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 index c96d726..48253b2 100644 --- a/B4A/Starter.bas +++ b/B4A/Starter.bas @@ -115,8 +115,25 @@ Sub ENVIA_ULTIMA_GPS Dim cmd As DBCommand cmd.Initialize cmd.Name = "UPDATE_GUNA_ACTUAL2_GPS2" + Private s7 As Cursor = B4XPages.MainPage.skmt.ExecQuery("select SUM(PE_CANT) AS PE_CANT, PE_PROID FROM PEDIDO WHERE PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO') GROUP BY PE_PROID") + If s7.RowCount > 0 Then + Dim totalstick As Int = 0 + For sfsdf = 0 To s7.RowCount -1 + s7.Position= sfsdf + Log("ENTRE AQUI") + Dim s8 As Cursor = B4XPages.MainPage.skmt.ExecQuery($"SELECT ifnull(CAT_GP_CONVERSION3,0) as CAT_GP_CONVERSION3 FROM CAT_GUNAPROD WHERE CAT_GP_ID = '${s7.GetString("PE_PROID")}'"$) + s8.Position = 0 + totalstick = totalstick + (s7.GetString("PE_CANT")* s8.GetString("CAT_GP_CONVERSION3")) + Dim totalpaquete As Int = 0 + + totalpaquete = totalpaquete +(totalstick/200) + Log(totalpaquete) + Next + End If - cmd.Parameters = Array As Object(NumberFormat2(B4XPages.MainPage.montoActual,0,2,2,False), B4XPages.MainPage.clientestotal, B4XPages.MainPage.clientesventa,B4XPages.MainPage.clientesvisitados,B4XPages.MainPage.lat_gps,B4XPages.MainPage.lon_gps,B4XPages.MainPage.batt,0, 0, 0,encuesta,B4XPages.MainPage.ALMACEN,B4XPages.MainPage.rutapreventa) + + + cmd.Parameters = Array As Object(NumberFormat2(B4XPages.MainPage.montoActual,0,2,2,False), B4XPages.MainPage.clientestotal, B4XPages.MainPage.clientesventa,B4XPages.MainPage.clientesvisitados,B4XPages.MainPage.lat_gps,B4XPages.MainPage.lon_gps,B4XPages.MainPage.batt,0, totalpaquete,totalstick,encuesta,B4XPages.MainPage.ALMACEN,B4XPages.MainPage.rutapreventa) ' 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}, 0, 0, 0, Almacen: ${B4XPages.MainPage.ALMACEN}, Ruta: ${B4XPages.MainPage.rutapreventa}"$) reqManager.ExecuteCommand(cmd, "actualizaUltimaGPS") skmt.ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ? WHERE CAT_VA_DESCRIPCION = ?" , Array As String(DateTime.Time(DateTime.Now),"HoraIngreso")) diff --git a/B4A/Subs.bas b/B4A/Subs.bas index 1af317b..77aee83 100644 --- a/B4A/Subs.bas +++ b/B4A/Subs.bas @@ -1859,7 +1859,7 @@ End Sub Sub traeTablaProds(tipoventa As String) As String Log(tipoventa) Private tablaProds As String = "cat_gunaprod2" - If tipoventa = "ABORDO" Or tipoventa = "PREVENTA" Or tipoventa = "PREVENTA_FUTURA" Then tablaProds = "cat_gunaprod" + If tipoventa = "ABORDO" Or tipoventa = "PREVENTA" Or tipoventa = "PREVENTA_FUTURA" Or tipoventa = "MAYOREO" Then tablaProds = "cat_gunaprod" ' LogColor($"Tipo= ${tipoventa}, tabla=${tablaProds}"$, Colors.RGB(200,136,0)) Return tablaProds End Sub @@ -2419,6 +2419,77 @@ Sub calculaTotalConPromoXRango4(idCliente As String) As String Return total End Sub +'Calcula el total de pedido tomando en cuenta si hay productos con promos por rango y si es pedido preacordado. +Sub calculaTotalConPromoXRango5(idCliente As String) As String +' caso 1 pe_recant = Null +' monto del pedido = pe_costo_tot +' caso 2 pe_recant = pe_cant (solo prods dentro de rango) +' monto del pedido = pe_recalculotot +' caso 3 pe_recant <> pe_cant (hay prod dentro de rango y producto extra +' monto del pedido = ((pe_cant - pe_reccant) * pe_costou) + pe_recalculotot +' Log("888888888888") + Private totalParcial As String = 0 + Private total As String = 0 + Private cx As Cursor = Starter.skmt.ExecQuery($"select *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '${idCliente}' and PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'CIGARRO')"$) + If cx.RowCount > 0 Then + For i = 0 To cx.RowCount - 1 +' Log("999999999999999999999999999999999999") + cx.Position = i +' Log("***************************************") + If cx.getstring("RECANT") = "N" Then ' Sin productos dentro de rango. + totalParcial = cx.getstring("PE_COSTO_TOT") + else if cx.getstring("RECANT") = cx.getstring("PE_CANT") Then ' Solo productos dentro de rango. + totalParcial = cx.getstring("PE_RECALCULOTOT") + Else ' hay productos dentro de rango y productos arriba del rango. + totalParcial = ((cx.getstring("PE_CANT") - cx.getstring("PE_RECCANT")) * cx.getstring("PE_COSTOU")) + (cx.getstring("PE_RECALCULO") * cx.getstring("PE_RECCANT")) + Log($"${((cx.getstring("PE_CANT") - cx.getstring("PE_RECCANT")) * cx.getstring("PE_COSTOU"))} + ${(cx.getstring("PE_RECALCULO") * cx.getstring("PE_RECCANT"))} "$) + End If +' Log($"Total:${total} + Total Parcial: ${totalParcial}"$) + total = total + totalParcial + Next + End If + cx.Close + total = NumberFormat2(total, 1, 2, 2, False) +' Log($"Total con promocXrango = ${total}"$) + Return total +End Sub + + +'Calcula el total de pedido tomando en cuenta si hay productos con promos por rango y si es pedido normal. +Sub calculaTotalConPromoXRango6(idCliente As String) As String +' caso 1 pe_recant = Null +' monto del pedido = pe_costo_tot +' caso 2 pe_recant = pe_cant (solo prods dentro de rango) +' monto del pedido = pe_recalculotot +' caso 3 pe_recant <> pe_cant (hay prod dentro de rango y producto extra +' monto del pedido = ((pe_cant - pe_reccant) * pe_costou) + pe_recalculotot +' Log("888888888888") + Private totalParcial As String = 0 + Private total As String = 0 + Private cx As Cursor = Starter.skmt.ExecQuery($"select *, ifnull(pe_reccant, 'N') as RECANT from pedido where pe_cliente = '${idCliente}' AND PE_PROID IN (SELECT CAT_GP_ID FROM CAT_GUNAPROD WHERE CAT_GP_TIPO = 'PARTNERSHIP') "$) + If cx.RowCount > 0 Then + For i = 0 To cx.RowCount - 1 +' Log("999999999999999999999999999999999999") + cx.Position = i + Log("***************************************") + If cx.getstring("RECANT") = "N" Then ' Sin productos dentro de rango. + totalParcial = cx.getstring("PE_COSTO_TOT") + else if cx.getstring("RECANT") = cx.getstring("PE_CANT") Then ' Solo productos dentro de rango. + totalParcial = cx.getstring("PE_RECALCULOTOT") + Else ' hay productos dentro de rango y productos arriba del rango. + totalParcial = ((cx.getstring("PE_CANT") - cx.getstring("PE_RECCANT")) * cx.getstring("PE_COSTOU")) + (cx.getstring("PE_RECALCULO") * cx.getstring("PE_RECCANT")) + Log($"${((cx.getstring("PE_CANT") - cx.getstring("PE_RECCANT")) * cx.getstring("PE_COSTOU"))} + ${(cx.getstring("PE_RECALCULO") * cx.getstring("PE_RECCANT"))} "$) + End If + Log($"Total:${total} + Total Parcial: ${totalParcial}"$) + total = total + totalParcial + Next + End If + cx.Close + total = NumberFormat2(total, 1, 2, 2, False) + Log($"Total con promocXrango = ${total}"$) + Return total +End Sub + 'Muestra en el Log los campos y valores que regresan en el JobDone. Sub logJobDoneResultados(resultado As DBResult) For Each records() As Object In resultado.Rows diff --git a/B4A/Tracker.bas b/B4A/Tracker.bas index b5b18dd..4b7ffe6 100644 --- a/B4A/Tracker.bas +++ b/B4A/Tracker.bas @@ -541,7 +541,7 @@ Sub CreateNotification (Body As String) As Notification Dim notification As Notification notification.Initialize2(notification.IMPORTANCE_LOW) notification.Icon = "icon" - notification.SetInfo("ADM", Body, Main) + notification.SetInfo("GUNA", Body, Main) Return notification End Sub diff --git a/B4A/_git_tag.ps1 b/B4A/_git_tag.ps1 deleted file mode 100644 index 89e7105..0000000 --- a/B4A/_git_tag.ps1 +++ /dev/null @@ -1,110 +0,0 @@ -# --- SCRIPT DE AUTODESCUBRIMIENTO CON GUI MEJORADA --- - -# Cargar librería visual -Add-Type -AssemblyName System.Windows.Forms -Add-Type -AssemblyName System.Drawing - -# 1. AUTODESCUBRIMIENTO -$projectPath = $PSScriptRoot -Write-Host "Ruta: $projectPath" - -$b4aFileItem = Get-ChildItem -Path $projectPath -Filter "*.b4a" | Select-Object -First 1 - -if (-Not $b4aFileItem) { - [System.Windows.Forms.MessageBox]::Show("No hay archivo .b4a en esta carpeta.", "Error", "OK", "Error") - return -} - -$b4aFile = $b4aFileItem.FullName -$projectName = $b4aFileItem.BaseName -Write-Host "Proyecto: $projectName" - -# 2. LIMPIEZA -# $objectsPath = Join-Path $projectPath "Objects" -# if (Test-Path $objectsPath) { - # Write-Host "Limpiando Objects..." - # Remove-Item -Path "$objectsPath\*" -Recurse -Force -ErrorAction SilentlyContinue -# } - -# 3. LEER VERSIÓN -$versionLine = Get-Content $b4aFile | Select-String "#VersionName:" -if (-Not $versionLine) { Write-Error "Falta #VersionName"; return } -$version = ($versionLine -split ":")[1].Trim() -$tagName = "v$version" - -Set-Location $projectPath - -# 4. COMMIT -$oldCommit = git rev-parse HEAD - -Write-Host "----------------------------------------" -Write-Host "Versión: $version" -Write-Host "Abriendo TortoiseGit..." - -# Argumentos limpios -$pathArg = '/path:"{0}"' -f $projectPath -$msgArg = '/logmsg:"VERSION {0}"' -f $version -$cmdArg = "/command:commit" - -$process = Start-Process "TortoiseGitProc.exe" -ArgumentList $cmdArg, $pathArg, $msgArg -Wait -PassThru - -$newCommit = git rev-parse HEAD - -# 5. VALIDACIÓN -if ($oldCommit -eq $newCommit) { - Write-Warning "Commit cancelado." - git tag -d $tagName 2>$null # Borra tag local previo si existe para actualizarlo al nuevo commit - return -} - -Write-Host ">> Commit detectado." - -# 6. GESTIÓN DE TAGS (VISUAL TOPMOST) -Write-Host "git ls-remote --tags origin $tagName" -$remoteTagInfo = git ls-remote --tags origin $tagName - -if ($remoteTagInfo) { - # --- TRUCO PARA QUE LA VENTANA SALGA AL FRENTE --- - # Creamos un formulario invisible que esté "Siempre Visible" (TopMost) - Write-Host "Recibimos remoteTagInfo" - $topForm = New-Object System.Windows.Forms.Form - $topForm.TopMost = $true - $topForm.Opacity = 0 # Invisible - $topForm.ShowInTaskbar = $false - $topForm.StartPosition = "CenterScreen" - $topForm.Show() - $topForm.Activate() - - [System.Console]::Beep(1000, 200) - [System.Console]::Beep(1000, 200) - - $msgBody = "El tag '$tagName' YA EXISTE en GitHub.`n`nDeseas SOBRESCRIBIRLO?`n`nSi = Borrar anterior y actualizar (Force Push).`nNo = Subir solo codigo (mantener tag viejo)." - $msgTitle = "⚠️ Conflicto de Versiones - $projectName" - - # El mensaje ahora es "hijo" del formulario invisible, heredando su propiedad TopMost - Write-Host "Preguntamos que hacer con el tag" - $respuesta = [System.Windows.Forms.MessageBox]::Show($topForm, $msgBody, $msgTitle, "YesNo", "Warning") - - $topForm.Dispose() # Limpiamos el formulario invisible - - if ($respuesta -eq "Yes") { - Write-Host "Sobrescribiendo..." - git tag -d $tagName 2>$null - git tag -a $tagName -m "Release version $version (Updated)" - - git push origin - git push origin $tagName --force - Write-Host ">> Tag actualizado (Force Push)." - } else { - Write-Host "Conservando tag anterior..." - git push origin - Write-Host ">> Código subido." - } -} else { - # Tag Nuevo - git tag -a $tagName -m "Release version $version" - git push origin --follow-tags - Write-Host ">> Versión publicada." -} - -Write-Host "----------------------------------------" \ No newline at end of file diff --git a/B4A/appUpdater.bas b/B4A/appUpdater.bas index 7b2f36f..0f69699 100644 --- a/B4A/appUpdater.bas +++ b/B4A/appUpdater.bas @@ -7,7 +7,7 @@ Version=10.2 #Region Service Attributes #StartAtBoot: False #End Region - + '//////////////////////////////////////////////////////////////////////////////////////////// '//// Servicio para revisar si hay actualizacion de aplicación, usa la '//// actividad "updateAvailable" para mostrar mensajes.